public readInto(notnull buffer as Byte[], offset as Long = 0l, length as Long = -1l, timeout as ULong = 0ul) as Long
Reads raw stdout into existing contiguous byte storage without boxing. One reader and one writer may operate concurrently. Calls on the same direction are serialized; the caller owns its buffer during a transfer.
| Parameter | Description |
|---|---|
buffer | Destination bytes. |
offset | First destination index. |
length | Maximum count; -1 uses the remaining buffer. |
timeout | Milliseconds to wait; 0 waits until bytes, EOF or close. |
Positive count, 0 on EOF/close or zero length, -1 on timeout.
count = channel.readInto(buffer, timeout=50ul)