Typeberry by Fluffy Labs - v0.4.0
    Preparing search index...

    Class BitVec

    A sequence of bits with a packed in-memory representation.

    Index

    Properties

    bitLength: number
    byteLength: number

    Accessors

    Methods

    • Iterate over indices of bits that are set.

      Returns Generator<number, void, unknown>

    • Set the bit at index idx to value val.

      Parameters

      • idx: number
      • val: boolean

      Returns void