Gjsify LogoGjsify Logo

#GstBitWriter provides a bit writer that can write any number of bits into a memory buffer. It provides functions for writing any number of bits into 8, 16, 32 and 64 bit variables.

record

Hierarchy

  • BitWriter

Index

Constructors

Properties

bit_size: number

Size of written data in bits

field
data: number

Allocated data for bit writer to write

field
name: string

Methods

  • align_bytes(trailing_bit: number): boolean
  • Write trailing bit to align last byte of data. trailing_bit can only be 1 or 0.

    Parameters

    • trailing_bit: number

      trailing bits of last byte, 0 or 1

    Returns boolean

  • free(): void
  • free_and_get_data(): Uint8Array
  • get_data(): Uint8Array
  • get_remaining(): number
  • get_size(): number
  • put_bits_uint16(value: number, nbits: number): boolean
  • Write nbits bits of value to #GstBitWriter.

    Parameters

    • value: number

      value of #guint16 to write

    • nbits: number

      number of bits to write

    Returns boolean

  • put_bits_uint32(value: number, nbits: number): boolean
  • Write nbits bits of value to #GstBitWriter.

    Parameters

    • value: number

      value of #guint32 to write

    • nbits: number

      number of bits to write

    Returns boolean

  • put_bits_uint64(value: number, nbits: number): boolean
  • Write nbits bits of value to #GstBitWriter.

    Parameters

    • value: number

      value of #guint64 to write

    • nbits: number

      number of bits to write

    Returns boolean

  • put_bits_uint8(value: number, nbits: number): boolean
  • Write nbits bits of value to #GstBitWriter.

    Parameters

    • value: number

      value of #guint8 to write

    • nbits: number

      number of bits to write

    Returns boolean

  • put_bytes(data: Uint8Array, nbytes: number): boolean
  • Write nbytes bytes of data to #GstBitWriter.

    Parameters

    • data: Uint8Array

      pointer of data to write

    • nbytes: number

      number of bytes to write

    Returns boolean

  • reset(): void
  • reset_and_get_data(): Uint8Array
  • set_pos(pos: number): 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