Constructor

new

Long

()

Long constructor, wrapper of the internal library used: Long.js.

Methods

Long.fromBuffer

()

Returns a long representation. Used internally for deserialization

Static
This function is static

inspect

()

Provide the name of the constructor and the string representation

Returns:
Type Description
string

Long.toBuffer

(Long value)

Returns a big-endian buffer representation of the Long instance

Static
This function is static
Parameters:
Name Type Description
value Long

toJSON

()

Returns the string representation. Method used by the native JSON.stringify() to serialize this instance