Serial Framework C++ Edition

◆ OnWrite()

__event void OnWrite ( void *  Sender,
const void *const  Data,
const unsigned long  Size,
unsigned long &  Written,
int &  WriteResult 
)

The event fires when the Data Processor needs to write data to a connection but a connection is not assigned.

Parameters
SenderThe object that initiated the event.
DataThe pointer to the data buffer that a Data Processor needs to send to a connection.
SizeThe data buffer size.
WrittenThe amount of bytes actually written to the device.
WriteResultThe write operation result.