Function caerGenericEventGetEvent
Defined in File common.h
Function Documentation
-
static inline const void *caerGenericEventGetEvent(caerEventPacketHeaderConst headerPtr, int32_t n)
Get a generic pointer to an event, without having to know what event type the packet is containing.
- Parameters:
headerPtr – a valid EventPacket header pointer. Cannot be NULL.
n – the index of the returned event. Must be within [0,eventNumber[ bounds.
- Returns:
a generic pointer to the requested event. NULL on error. This points to unmodifiable memory, as it should never be used for anything other than read operations, such as caerGenericEventGetTimestamp(). Don’t modify the memory, you have no idea what it is! If you do know, just use the proper typed packet functions.