Options
All
  • Public
  • Public/Protected
  • All
Menu

UInt64 data model

Hierarchy

  • UInt64

Index

Constructors

constructor

  • new UInt64(uintArray: number[]): UInt64

Properties

Readonly higher

higher: number

uint64 higher part

Readonly lower

lower: number

uint64 lower part

Methods

add

compact

  • compact(): number
  • Compact higher and lower uint parts into a uint

    Returns number

compare

  • compare(other: UInt64): number

equals

  • equals(other: UInt64): boolean

Private longToUint64

  • longToUint64(longValue: Long): UInt64

subtract

toDTO

  • toDTO(): number[]
  • Get DTO representation with format: [lower, higher]

    Returns number[]

toHex

  • toHex(): string

toString

  • toString(): string

Static fromHex

  • fromHex(input: string): UInt64
  • Parses a hex string into a UInt64.

    Parameters

    • input: string

      A hex encoded string.

    Returns UInt64

    The uint64 representation of the input.

Static fromNumericString

  • fromNumericString(input: string): UInt64
  • Parses a numeric string into a UInt64.

    Parameters

    • input: string

      A numeric string.

    Returns UInt64

    The uint64 representation of the input.

Static fromUint

  • fromUint(value: number): UInt64

Static isLongNumericString

  • isLongNumericString(input: string): boolean
  • Check if input string is a numeric string or not

    Parameters

    • input: string

      A string.

    Returns boolean

Generated using TypeDoc