Function caerEventPacketCopyOnlyValidEvents

Function Documentation

static inline caerEventPacketHeader caerEventPacketCopyOnlyValidEvents(caerEventPacketHeaderConst packet)

Make a copy of an event packet, sized down to only include the currently valid events (eventValid), and discarding everything else.

Parameters:

packet – an event packet to copy.

Returns:

a copy of an event packet, containing only valid events.