mirror of
https://github.com/danog/byte-stream.git
synced 2024-11-26 20:04:51 +01:00
Add stdinbuffer
This commit is contained in:
parent
ce038f298d
commit
5d3fd73325
@ -137,6 +137,16 @@ function getStdinLineReader(): LineReader
|
|||||||
return $stream;
|
return $stream;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get data eventually buffered by the STDIN LineReader
|
||||||
|
*
|
||||||
|
* @return LineReader
|
||||||
|
*/
|
||||||
|
function getStdinBuffer(): string
|
||||||
|
{
|
||||||
|
return getStdinLineReader()->getBuffer();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The STDOUT stream for the process associated with the currently active event loop.
|
* The STDOUT stream for the process associated with the currently active event loop.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user