GATE
Loading...
Searching...
No Matches
blobs.h File Reference

BLOB (binary large objects) handling. More...

#include "gate/gatetypes.h"
#include "gate/atomics.h"

Functions

GATE_CORE_API gate_bool_t gate_bit_is_set (void const *data, gate_size_t bitindex)
 Reads a bit of a binary field at a specific bit position.
 
GATE_CORE_API void gate_bit_set (void *data, gate_size_t bitindex)
 Sets a bit in a binary field.
 
GATE_CORE_API void gate_bit_clear (void *data, gate_size_t bitindex)
 Sets a bit in a binary field.
 

Detailed Description

BLOB (binary large objects) handling.

Function Documentation

◆ gate_bit_is_set()

GATE_CORE_API gate_bool_t gate_bit_is_set ( void const * data,
gate_size_t bitindex )

Reads a bit of a binary field at a specific bit position.

Parameters
[in]datapointer to bit-data to be evaluated
[in]bitindexindex of bit to be accessed
Returns
TRUE if bit was set, FALSE if bit was cleared

◆ gate_bit_set()

GATE_CORE_API void gate_bit_set ( void * data,
gate_size_t bitindex )

Sets a bit in a binary field.

Parameters
[in]datapointer to bit-data to be updated
[in]bitindexindex of bit to be set

◆ gate_bit_clear()

GATE_CORE_API void gate_bit_clear ( void * data,
gate_size_t bitindex )

Sets a bit in a binary field.

Parameters
[in]datapointer to bit-data to be updated
[in]bitindexindex of bit to be cleared