lpfnRawDataCallback

A user-defined callback that is triggered when the transport receives any non-debug-protocol data, such as logging or I/O port trace data.

Syntax

typedef void (*lpfnRawDataCallback)(uintptr_t Context, void *pRawDataBuffer, uint32_t RawDataSize);

Parameters

uintptr_t Context

A user-defined context set by the TransportSetRawDataCallback function.

void *pRawDataBuffer

Raw data received by the transport.

uint32_t RawDataSize

The size of the "pRawDataBuffer" data in bytes.

Return value

None.

Remarks

This callback is executed in a dedicated thread. You cannot call any other PulseSDK function within it. The engine will not continue working until the callback function returns.

It can be set at any moment during its lifetime.

It can be set to NULL, preventing any callbacks on non-debug-protocol data.