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

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

function ReadNoWait(Stream: TStream): integer; overload;

 

Description

Call ReadNoWait to read Count bytes from the channel stream into Buffer or Stream. ReadNoWait returns bytes count that was actually read.

If the size of the received data is equal to 0, ReadNoWait waits for receiving at least one byte, but no longer than the amount of the time specified in Timeout, and then returns control.

If the channel contain at least one received byte, then, unlike the ReadBuffer method, it immediately returns the available number of bytes.

 

See Also

OnAsyncReceive

ReadBuffer

ReadString

 

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