Function caerEventPacketAppend

Function Documentation

static inline caerEventPacketHeader caerEventPacketAppend(caerEventPacketHeader packet, caerEventPacketHeader appendPacket)

Appends an event packet to another. This is a simple append operation, no timestamp reordering is done. Please ensure time is monotonically increasing over the two packets! Use free() to reclaim this memory afterwards.

Parameters:
  • packet – the main events packet.

  • appendPacket – the events packet to append on the main one.

Returns:

a valid event packet handle or NULL on error. On success, the old packet handle is to be considered invalid and not to be used anymore. On failure, the old packet handle is not touched in any way. The appendPacket handle is never touched in any way.