algonim
    Preparing search index...

    Class BitVector

    Collects bits into bytes.

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Adds the lowest n bits of a number. This might result in a partial byte, so if this is the last write using this instance, make sure to call flush.

      Parameters

      • num: number
      • bits: number | undefined

      Returns void

    • If there's an unfinished byte, writes it to the underlying vector.

      Returns void