Represents an IDL fixed-width Nat(n)

Hierarchy (view full)

Constructors

Properties

_bits: number

Accessors

  • get name(): string
  • Returns string

Methods

  • Returns string

  • Parameters

    • typeTable: TypeTable

    Returns void

  • Parameters

    • typeTable: TypeTable

    Returns void

  • Assert that JavaScript's x is the proper type represented by this Type.

    Parameters

    • x: any

    Returns x is bigint

  • Internal

    Encode the value. This needs to be public because it is used by encodeValue() from different types.

    Parameters

    • x: number | bigint

    Returns ArrayBuffer

  • Parameters

    • x: number | bigint

    Returns string