Function writeBlockIndices

  • Packs block indices into the buffer using the same scheme as the read loop.

    Parameters

    • buffer: Buffer

      The buffer to write into.

    • blockDataOffset: number

      The offset where block data begins in the buffer.

    • block_indices: number[]

      The list of block indices to pack.

    • bitsPerBlock: number

      The number of bits used per block.

    • blocksPerWord: number

      How many blocks fit inside one 32-bit integer.

    Returns void