1
0
mirror of https://github.com/danog/byte-stream.git synced 2024-11-30 04:19:23 +01:00

Add stdinbuffer

This commit is contained in:
Daniil Gentili 2019-08-22 22:58:19 +02:00
parent ce038f298d
commit 5d3fd73325

View File

@ -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.
* *