buf_get_u64() function
Retrieves @c num bits from @c _buffer, starting at the @c first bit, returning the bits in a 64-bit word. This routine fast-paths reads of little-endian, byte-aligned, 64-bit words.
Syntax
static inline uint64_t buf_get_u64(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-63).
num
The number of bits from @c _buffer to read (1-64).
Return value
Up to 64-bits that were read from @c _buffer.