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

OnAsyncReceive

ReadNoWait

ReadString

 

SecureBridge Components, Copyright © 2007-2024 Devart. All Rights Reserved. Provide Feedback Visit Forum Request Support