ChonkReader.receiveUntilClose

Some applications have no header for length but demarcate the data ending by closing the socket here one would want to chunk read as making an assumption about how much data is sent would be futile

This will read in chunks of chunkSize whilst stiching an array toghether. It will take in a pointer to (len, ptr) (a.k.a. an array) and set those for you.

The total number of bytes is returned

class ChonkReader
ulong
receiveUntilClose
(
ref byte[] buffer
)

Meta