Function caerEventPacketGetDataSizeEvents

Function Documentation

static inline int64_t caerEventPacketGetDataSizeEvents(caerEventPacketHeaderConst header)

Get the data size of an event packet, in bytes, up to its last actual event. This means only up to EventNumber, not up to EventCapacity. This is only the size of the data portion, excluding the header.

Parameters:

header – a valid EventPacket header pointer. Cannot be NULL.

Returns:

the event packet data size in bytes (up to event number).