Interface LongStatic

Index

Construct signatures

Properties

Methods

Construct signatures

constructor(low: number, high: number, unsigned?: boolean): Long

Parameters

  • low: number
  • high: number
  • unsigned?: boolean optional

Returns

Long

Properties

public MAX_SIGNED_VALUE: Long

public MAX_UNSIGNED_VALUE: Long

public MAX_VALUE: Long

public MIN_SIGNED_VALUE: Long

public MIN_UNSIGNED_VALUE: Long

public MIN_VALUE: Long

public NEG_ONE: Long

public ONE: Long

public ZERO: Long

Methods

public from28Bits(part0: number, part1: number, part2: number, unsigned?: boolean): Long

Parameters

  • part0: number
  • part1: number
  • part2: number
  • unsigned?: boolean optional

Returns

Long

public fromBits(lowBits: number, highBits: number, unsigned?: boolean): Long

Parameters

  • lowBits: number
  • highBits: number
  • unsigned?: boolean optional

Returns

Long

public fromInt(value: number, unsigned?: boolean): Long

Parameters

  • value: number
  • unsigned?: boolean optional

Returns

Long

public fromNumber(value: number, unsigned?: boolean): Long

Parameters

  • value: number
  • unsigned?: boolean optional

Returns

Long

public fromString(str: string, unsigned?: boolean, radix?: number): Long

Parameters

  • str: string
  • unsigned?: boolean optional
  • radix?: number optional

Returns

Long

public fromString(str: string, unsigned?: number, radix?: number): Long

Parameters

  • str: string
  • unsigned?: number optional
  • radix?: number optional

Returns

Long

public fromString(str: string, unsigned?: any, radix?: number): Long

Parameters

  • str: string
  • unsigned?: any optional
  • radix?: number optional

Returns

Long