TCnSerialPort.Read(TArray,Integer,Integer) Method
Reads a number of characters from the SerialPort input buffer and writes them into an array of characters at a given offset.
public function Read(Buffer: TArray<Char>; Offset: Integer; Count: Integer): Integer; overload;
Parameters
- Buffer
- Type: TArray<Char>
The character array to write the input to.
- Offset
- Type: Integer
The offset in buffer at which to write the characters.
- Count
- Type: Integer
The maximum number of characters to read. Fewer characters are read if count is greater than the number of characters in the input buffer.
Return Value
Type: Integer
The number of characters read.