include/events/common.h
static inline void caerEventPacketHeaderSetEventSize(caerEventPacketHeader header, int32_t eventSize) {
	if (eventSize < 0) {
		// Negative numbers (bit 31 set) are not allowed!
#if !defined(LIBCAER_LOG_NONE)
		caerLog(CAER_LOG_CRITICAL, "EventPacket Header",
			"Called caerEventPacketHeaderSetEventSize() with negative value!");
#endif
		return;
	}

	header->eventSize = htole32(eventSize);
}
/**
 * Set the size of a single event, in bytes.
 * All events inside an event packet always have the same size.
 *
 * @param header a valid EventPacket header pointer. Cannot be NULL.
 * @param eventSize the event size in bytes.
 */
Set the size of a single event, in bytes.
All events inside an event packet always have the same size.

@param header a valid EventPacket header pointer. Cannot be NULL.
@param eventSize the event size in bytes.
Set the size of a single event in bytes . All events inside an event packet always have the same size . @param header a valid EventPacket header pointer . Cannot be NULL . @param eventSize the event size in bytes .
static inline void caerEventPacketHeaderSetEventSize(caerEventPacketHeader header, int32_t eventSize) {
	if (eventSize < 0) {
#if !defined(LIBCAER_LOG_NONE)
		caerLog(CAER_LOG_CRITICAL, "EventPacket Header",
			"Called caerEventPacketHeaderSetEventSize() with negative value!");
#endif
		return;
	}
	header->eventSize = htole32(eventSize);
}
static inline void caerEventPacketHeaderSetEventSize ( caerEventPacketHeader header , int32_t eventSize ) { if ( eventSize < 0 ) { #if ! defined ( LIBCAER_LOG_NONE ) caerLog ( CAER_LOG_CRITICAL , " " , " " ) ; #endif return ; } header -> eventSize = htole32 ( eventSize ) ; }
Set the size of a single event, in bytes.
Set the size of a single event in bytes .
// Negative numbers (bit 31 set) are not allowed!