public readInto(notnull buffer as Byte[], offset as Long = 0l, length as Long = -1l) as Long
Reads raw bytes into an existing buffer. A positive result may be shorter than length, including for interactive input; zero means EOF. A zero-byte request returns immediately. No source stream is closed or reopened.
| Parameter | Description |
|---|---|
buffer | Destination byte array, never null. |
offset | First destination index. |
length | Maximum bytes; -1 selects the remainder of the buffer. |
Actual byte count, in 0..length.
count = input.readInto(buffer, 8l, 128l)