Gjsify LogoGjsify Logo

An opaque type representing a MBIM TLV.

record

Hierarchy

  • Tlv

Index

Constructors

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

    Parameters

    • type: TlvType

      a #MbimTlvType.

    • data: number

      contents of the TLV.

    • dataLength: number

      length of the message.

    Returns Tlv

Properties

name: string

Methods

  • getRaw(): [number, number]
  • Gets the whole raw data buffer of the #MbimTlv.

    Returns [number, number]

  • getTlvData(): [number, number]
  • guint16ArrayGet(): [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]

  • stringGet(): string
  • Get a string with the contents in the #MbimTlv.

    Returns 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

  • wakeCommandGet(): [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]

  • wakePacketGet(): [boolean, number, number, number, number]
  • Get the contents of a wake packet TLV.

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

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

    Parameters

    • type: TlvType

      a #MbimTlvType.

    • data: number

      contents of the TLV.

    • dataLength: number

      length of the message.

    Returns Tlv

  • stringNew(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