buf_set_u32() function
@file Support functions to access arbitrary bits in a byte array Sets @c num bits in @c _buffer, starting at the @c first bit, using the bits in @c value. This routine fast-paths writes of little-endian, byte-aligned, 32-bit words.
Arguments
_buffer
The buffer whose bits will be set. Do not use uninitialized buffer or clang static analyzer emits a warning.
first
The bit offset in @c _buffer to start writing (0-31).
num
The number of bits from @c value to copy (1-32).
value
Up to 32 bits that will be copied to _buffer.