Function caerEventPacketCopyOnlyEvents

Function Documentation

static inline caerEventPacketHeader caerEventPacketCopyOnlyEvents(caerEventPacketHeaderConst packet)

Make a copy of an event packet, sized down to only include the currently present events (eventNumber, valid+invalid), and not including the possible extra unused events (up to eventCapacity).

Parameters:

packet – an event packet to copy.

Returns:

a sized down copy of an event packet.