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 were 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.
Note:
This method works only if the Direct property is set to True. Otherwise, an exception is raised.
See Also