Hierarchy

  • LongConstructor

Constructors

  • Constructs a 64 bit two's-complement integer, given its low and high 32 bit values as signed integers. See the from* functions below for more convenient ways of constructing Longs.

    Parameters

    • low: number
    • Optional high: number
    • Optional unsigned: boolean

    Returns Long.Long

Properties

MAX_UNSIGNED_VALUE: Long.Long

Maximum unsigned value.

MAX_VALUE: Long.Long

Maximum signed value.

MIN_VALUE: Long.Long

Minimum signed value.

NEG_ONE: Long.Long

Signed negative one.

ONE: Long.Long

Signed one.

UONE: Long.Long

Unsigned one.

UZERO: Long.Long

Unsigned zero.

ZERO: Long.Long

Signed zero

prototype: Long.Long

Methods

  • Returns a Long representing the 64 bit integer that comes by concatenating the given low and high bits. Each is assumed to use 32 bits.

    Parameters

    • lowBits: number
    • highBits: number
    • Optional unsigned: boolean

    Returns Long.Long

  • Creates a Long from its byte representation.

    Parameters

    • bytes: number[]
    • Optional unsigned: boolean
    • Optional le: boolean

    Returns Long.Long

  • Creates a Long from its little endian byte representation.

    Parameters

    • bytes: number[]
    • Optional unsigned: boolean

    Returns Long.Long

  • Creates a Long from its little endian byte representation.

    Parameters

    • bytes: number[]
    • Optional unsigned: boolean

    Returns Long.Long

  • Returns a Long representing the given 32 bit integer value.

    Parameters

    • value: number
    • Optional unsigned: boolean

    Returns Long.Long

  • Returns a Long representing the given value, provided that it is a finite number. Otherwise, zero is returned.

    Parameters

    • value: number
    • Optional unsigned: boolean

    Returns Long.Long

  • Returns a Long representation of the given string, written using the specified radix.

    Parameters

    • str: string
    • Optional unsigned: number | boolean
    • Optional radix: number

    Returns Long.Long

  • Converts the specified value to a Long.

    Parameters

    • val: string | number | Long.Long | {
          high: number;
          low: number;
          unsigned: boolean;
      }
    • Optional unsigned: boolean

    Returns Long.Long

  • Tests if the specified object is a Long.

    Parameters

    • obj: any

    Returns obj is Long.Long

Generated using TypeDoc