Class BitView

Hierarchy

  • BitView

Constructors

  • Parameters

    • buffer: ArrayBuffer
    • Optional byteOffset: number
    • Optional byteLength: number

    Returns BitView

Properties

buffer: ArrayBuffer

Methods

  • Reads bits number of bits starting at offset, twiddling the bits appropriately to return a proper 32-bit signed or unsigned value. NOTE: While JavaScript numbers are 64-bit floating-point values, we don't bother with anything other than the first 32 bits.

    Parameters

    • offset: number
    • bits: number
    • signed: boolean

    Returns number

  • Set bits number of bits at offset.

    Parameters

    • offset: number
    • value: number
    • bits: number

    Returns void

  • Parameters

    • offset: number
    • value: number

    Returns number

  • Parameters

    • offset: number
    • value: number

    Returns number

  • Parameters

    • offset: number
    • value: number

    Returns number

  • Parameters

    • offset: number
    • value: number

    Returns number

  • Parameters

    • offset: number
    • value: number

    Returns number

  • Parameters

    • offset: number
    • value: number

    Returns number

  • Parameters

    • offset: number
    • value: number

    Returns number

  • Parameters

    • offset: number
    • value: number

    Returns number

Generated using TypeDoc