We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c3c4ea commit c6f3c20Copy full SHA for c6f3c20
src/Core/Streams/IReadableStream.php
@@ -73,4 +73,16 @@ function resume() : void;
73
* @return IReadableStream A readable stream from the destination.
74
*/
75
function pipe(IWritableStream $destination, bool $autoEnd = true) : IReadableStream;
76
+
77
+ /**
78
+ * Reads the amount length of data from the stream.
79
+ *
80
+ * This method will emit a {@see StreamEvent::EVENT_DATA} event
81
+ * with the read buffer as event data.
82
83
+ * @param integer $length The length of data to read.
84
85
+ * @return void
86
+ */
87
+ function read(int $length) : void;
88
}
0 commit comments