buf_get_u32() function
Retrieves @c num bits from @c _buffer, starting at the @c first bit, returning the bits in a 32-bit word. This routine fast-paths reads of little-endian, byte-aligned, 32-bit words.
Syntax
static inline uint32_t buf_get_u32(const uint8_t *_buffer,
unsigned first,
unsigned num);
Arguments
_buffer
The buffer whose bits will be read.
first
The bit offset in @c _buffer to start reading (0-31).
num
The number of bits from @c _buffer to read (1-32).
Return value
Up to 32-bits that were read from @c _buffer.