TwclCustomDataProcessor.ProcessData(Pointer,Cardinal) Method

The method called by the Connection when data has been received from a remote device.

Namespace: wclConnections
public
 procedure ProcessData(const Data: Pointer;
 const Size: Cardinal); virtual; abstract;

Parameters

Data
Type: Pointer

The pointer to the received data buffer. The data buffer is valid only inside the event handler. If an application needs to use the data outside the method it must allocate own buffer and copy data.

Size
Type: Cardinal

The data buffer size.

A derived classes must override this method to process the received data.

The Data parameter is valid only inside the procedure. If a derived class needs to use data outside the method it must copy the data into internal buffer.