function ReadBuffer(var Buffer; const Count: integer): integer; overload;

function ReadBuffer(var Buffer: TBytes; const Offset, Count: integer): integer; overload;

 

Description

Reads Count bytes from the stream of client data into Buffer. ReadBuffer returns the count of bytes that were actually read.

If the size of the received data is less than Count bytes, ReadBuffer waits the amount of time specified in the Timeout property, and then returns control.

 

See Also

ReadNoWait

Timeout

WriteBuffer

 

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