Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Uint64

Implements

  • Integer
  • WithByteConverters

Index

Methods

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

  • toBytesLittleEndian(): Uint8Array
  • Returns Uint8Array

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

    Parameters

    • bytes: ArrayLike<number>

      a list of exactly 8 bytes

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

      defaults to big endian

    Returns Uint64

  • fromBytesBigEndian(bytes: ArrayLike<number>): Uint64
  • deprecated

    use Uint64.fromBytes

    Parameters

    • bytes: ArrayLike<number>

    Returns Uint64

  • fromNumber(input: number): Uint64
  • fromString(str: string): Uint64

Generated using TypeDoc