public receiveInto(notnull buffer as Byte[], offset as Long = 0l, length as Long = -1l) as Long
Receives bytes directly into a reusable buffer without changing its size. The call may return fewer bytes than requested; zero indicates TLS EOF.
| Parameter | Description |
|---|---|
buffer | Destination Byte array; never retained by the socket. |
offset | First destination byte. |
length | Maximum count; -1 uses the remaining buffer capacity. |
Received byte count.
count = socket.receiveInto(buffer, 0l, 65536l)