TFramedTransport.read

Attempts to read data into the given buffer, stopping when the buffer is exhausted or the frame end is reached.

TODO: Contrary to the C++ implementation, this never does cross-frame reads – is there actually a valid use case for that?

class TFramedTransport
override
size_t
read
(
ubyte[] buf
)

Parameters

buf ubyte[]

Slice to use as buffer.

Return Value

Type: size_t

How many bytes were actually read.

Throws

TTransportException if an error occurs.

Meta