Gjsify LogoGjsify Logo

An opaque type representing a MBIM TLV.

record

Hierarchy

  • Tlv

Index

Constructors

  • new Tlv(type: TlvType, data: number, data_length: number): Tlv
  • Create a #MbimTlv with the given contents.

    Parameters

    • type: TlvType

      a #MbimTlvType.

    • data: number

      contents of the TLV.

    • data_length: number

      length of the message.

    Returns Tlv

Properties

name: string

Methods

  • get_raw(): [number, number]
  • get_tlv_data(): [number, number]
  • guint16_array_get(): [boolean, number, number]
  • Get an array of #guint16 values with the contents in the #MbimTlv.

    The method may return a successful return even with on empty arrays (i.e. with array_size set to 0 and array set to %NULL).

    Returns [boolean, number, number]

  • string_get(): string
  • unref(): void
  • Atomically decrements the reference count of self by one. If the reference count drops to 0, self is completely disposed.

    Returns void

  • wake_command_get(): [boolean, Uuid, number, number, number]
  • Get the contents of a wake command TLV.

    The method may return a successful return even with on empty payload (i.e. with payload_size set to 0 and payload set to %NULL).

    Returns [boolean, Uuid, number, number, number]

  • wake_packet_get(): [boolean, number, number, number, number]
  • new(type: TlvType, data: number, data_length: number): Tlv
  • Create a #MbimTlv with the given contents.

    Parameters

    • type: TlvType

      a #MbimTlvType.

    • data: number

      contents of the TLV.

    • data_length: number

      length of the message.

    Returns Tlv

  • string_new(str: string): Tlv
  • Create a #MbimTlv of type %MBIM_TLV_TYPE_WCHAR_STR with the given contents.

    Parameters

    • str: string

      a string.

    Returns Tlv

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