Packs block indices into the buffer using the same scheme as the read loop.
The buffer to write into.
The offset where block data begins in the buffer.
The list of block indices to pack.
The number of bits used per block.
How many blocks fit inside one 32-bit integer.
Packs block indices into the buffer using the same scheme as the read loop.