TBlockSerial.RecvBufferEx
TBlockSerial

function RecvBufferEx(buffer: Pointer; length, Timeout: Integer): Integer;

Unit
SynaSer

Description
Method waits until data is received. If no data is received within TIMEOUT (in milliseconds)period, LastError is set to 30. Methods serves for reading any size of data (i.e. one megabyte...), and may be freely combine with RecvString or RecvTerminated method.

Timeout is defined as maximum time between two bytes of data, not as timeout for all operation!