TCnSerialPort.Write(_ByteArray,Integer,Integer) Method
Writes a specified number of bytes to the serial port using data from a buffer.
public procedure Write(Buffer: _ByteArray; Offset: Integer; Count: Integer); overload;
Parameters
- Buffer
- Type: _ByteArray
The byte array that contains the data to write to the port.
- Offset
- Type: Integer
The zero-based byte offset in the buffer parameter at which to begin copying bytes to the port.
- Count
- Type: Integer
The number of bytes to write.
Use this method when you want to write to a byte buffer to create output to a serial port.