public readInto(notnull buffer as Byte[], offset as Long = 0l, length as Long = -1l) as Long
Reads into an existing byte buffer without reopening the file or allocating another buffer. A zero return value means end-of-stream.
| Parameter | Description |
|---|---|
buffer | Destination buffer. |
offset | First destination index. |
length | Maximum bytes to read; -1 fills the remaining buffer. |
Number of bytes actually read.
count = stream.readInto(buffer)