include/events/common.h
static inline bool caerGenericEventIsValid(void *eventPtr) {
	// Look at first byte of event memory's lowest bit.
	// This should always work since first event member must contain the valid mark
	// and memory is little-endian, so lowest bit must be in first byte of memory.
	return (*((uint8_t *) eventPtr) & VALID_MARK_MASK);
}
/**
 * Check if the given generic event is valid or not.
 *
 * @param eventPtr a generic pointer to an event. Cannot be NULL.
 *
 * @return true if the event is valid, false otherwise.
 */
Check if the given generic event is valid or not.
@param eventPtr a generic pointer to an event. Cannot be NULL.

@return true if the event is valid, false otherwise.
Check if the given generic event is valid or not . @param eventPtr a generic pointer to an event . Cannot be NULL . @return true if the event is valid false otherwise .
static inline bool caerGenericEventIsValid(void *eventPtr) {
	return (*((uint8_t *) eventPtr) & VALID_MARK_MASK);
}
static inline bool caerGenericEventIsValid ( void * eventPtr ) { return ( * ( ( uint8_t * ) eventPtr ) & VALID_MARK_MASK ) ; }
Check if the given generic event is valid or not.
Check if the given generic event is valid or not .
// Look at first byte of event memory's lowest bit. // This should always work since first event member must contain the valid mark // and memory is little-endian, so lowest bit must be in first byte of memory.