Internal interface to ensure all integer types can be used equally

Implements

Constructors

  • Parameters

    • input: number

    Returns Uint32

Properties

data: number

Methods

  • Returns bigint

  • Returns number

  • Returns string

  • Parameters

    Returns Uint32

    use Uint32.fromBytes

  • Creates a Uint32 from a fixed length byte array.

    Parameters

    • bytes: ArrayLike<number>

      a list of exactly 4 bytes

    • Optionalendianess: "be" | "le"

      defaults to big endian

    Returns Uint32

  • Parameters

    • str: string

    Returns Uint32