Amazon Vinyl
    Preparing search index...

    Class BitReader

    Reads big-endian bit fields, for bit-packed syntax such as MPEG sections whose fields are not byte aligned. For byte-aligned data, use BufferReader.

    Fields of up to 53 bits are read exactly.

    Index
    position: number = 0

    The position in bits.

    • get bytePosition(): number

      The position in bytes, rounded up to the next byte boundary.

      Returns number

    • Reads an unsigned value of count bits.

      Parameters

      • count: number

      Returns number

    • Reads count bytes, which need not be byte aligned.

      Parameters

      • count: number

      Returns Uint8Array

    • Moves to the given byte position.

      Parameters

      • bytePosition: number

      Returns void