Gjsify LogoGjsify Logo

#GstBitReader provides a bit reader that can read any number of bits from a memory buffer. It provides functions for reading any number of bits into 8, 16, 32 and 64 bit variables.

record

Hierarchy

  • BitReader

Index

Constructors

Properties

bit: number

Bit position in the current byte

field
byte: number

Current byte position

field
data: Uint8Array

Data from which the bit reader will read

field
size: number

Size of data in bytes

field
name: string

Methods

  • free(): void
  • get_bits_uint16(nbits: number): [boolean, number]
  • Read nbits bits into val and update the current position.

    Parameters

    • nbits: number

      number of bits to read

    Returns [boolean, number]

  • get_bits_uint32(nbits: number): [boolean, number]
  • Read nbits bits into val and update the current position.

    Parameters

    • nbits: number

      number of bits to read

    Returns [boolean, number]

  • get_bits_uint64(nbits: number): [boolean, number]
  • Read nbits bits into val and update the current position.

    Parameters

    • nbits: number

      number of bits to read

    Returns [boolean, number]

  • get_bits_uint8(nbits: number): [boolean, number]
  • Read nbits bits into val and update the current position.

    Parameters

    • nbits: number

      number of bits to read

    Returns [boolean, number]

  • get_pos(): number
  • get_remaining(): number
  • get_size(): number
  • init(data: Uint8Array): void
  • Initializes a #GstBitReader instance to read from data. This function can be called on already initialized instances.

    Parameters

    • data: Uint8Array

      data from which the bit reader should read

    Returns void

  • peek_bits_uint16(nbits: number): [boolean, number]
  • Read nbits bits into val but keep the current position.

    Parameters

    • nbits: number

      number of bits to read

    Returns [boolean, number]

  • peek_bits_uint32(nbits: number): [boolean, number]
  • Read nbits bits into val but keep the current position.

    Parameters

    • nbits: number

      number of bits to read

    Returns [boolean, number]

  • peek_bits_uint64(nbits: number): [boolean, number]
  • Read nbits bits into val but keep the current position.

    Parameters

    • nbits: number

      number of bits to read

    Returns [boolean, number]

  • peek_bits_uint8(nbits: number): [boolean, number]
  • Read nbits bits into val but keep the current position.

    Parameters

    • nbits: number

      number of bits to read

    Returns [boolean, number]

  • set_pos(pos: number): boolean
  • Sets the new position of a #GstBitReader instance to pos in bits.

    Parameters

    • pos: number

      The new position in bits

    Returns boolean

  • skip(nbits: number): boolean
  • skip_to_byte(): boolean

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method