Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Uint32

Implements

  • Integer
  • WithByteConverters

Index

Constructors

  • new Uint32(input: number): Uint32

Properties

data: number

Methods

  • toBigInt(): bigint
  • toBytesBigEndian(): Uint8Array
  • Returns Uint8Array

  • toBytesLittleEndian(): Uint8Array
  • Returns Uint8Array

  • toNumber(): number
  • toString(): string
  • fromBigEndianBytes(bytes: ArrayLike<number>): Uint32
  • deprecated

    use Uint32.fromBytes

    Parameters

    • bytes: ArrayLike<number>

    Returns Uint32

  • fromBytes(bytes: ArrayLike<number>, endianess?: "be" | "le"): Uint32
  • Creates a Uint32 from a fixed length byte array.

    Parameters

    • bytes: ArrayLike<number>

      a list of exactly 4 bytes

    • endianess: "be" | "le" = "be"

      defaults to big endian

    Returns Uint32

  • fromString(str: string): Uint32

Generated using TypeDoc