mirror of
https://github.com/danog/byte-stream.git
synced 2024-11-30 04:19:23 +01:00
Update functions.php
This commit is contained in:
parent
b3e9bdb04f
commit
ff425ff87c
@ -140,26 +140,6 @@ function getStdinLineReader(): LineReader
|
|||||||
return $stream;
|
return $stream;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Get data eventually buffered by the STDIN LineReader.
|
|
||||||
*
|
|
||||||
* @return LineReader
|
|
||||||
*/
|
|
||||||
function getStdinBuffer(): string
|
|
||||||
{
|
|
||||||
return getStdinLineReader()->getBuffer();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Clear data eventually buffered by the STDIN LineReader.
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
function clearStdinBuffer()
|
|
||||||
{
|
|
||||||
return getStdinLineReader()->clearBuffer();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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