function ReadBuffer(var Buffer; const Count: integer): integer; overload;
function ReadBuffer(var Buffer: TBytes; const Offset, Count: integer): integer; overload;
Description
Call ReadBuffer to read Count bytes from the stream into Buffer. ReadBuffer returns bytes count that was actually read.
If size of the received data is less than Count bytes, ReadBuffer waits during amount of time specified in Timeout, and then returns control.
See Also