Class CLValueInt64

Represents a 64-bit signed integer value in the Casper type system. This class provides methods for handling 64-bit integers, including byte conversion and CLValue integration.

Hierarchy

  • CLValueNumeric
    • CLValueInt64

Constructors

Properties

Methods

Constructors

Properties

value: BigNumber

Methods

  • Converts the Int64 value to its byte representation in little-endian format.

    Returns

    A Uint8Array representing the bytes of the Int64 value.

    Returns Uint8Array

  • Retrieves the numeric value.

    Returns

    The numeric representation of the value.

    Returns BigNumber

  • Converts the instance to a JSON-compatible string.

    Returns

    The string representation of the instance.

    Returns string

  • Converts the numeric value to a JavaScript number.

    Returns

    The numeric value as a JavaScript number.

    Returns number

  • Provides a string representation of the numeric value.

    Returns

    The string representation of the value.

    Returns string

  • Creates a CLValueInt64 instance from a Uint8Array. Interprets the first 8 bytes of the array as a 64-bit integer in little-endian format.

    Returns

    An object containing the new CLValueInt64 instance and any remaining bytes.

    Throws

    Will throw an error if the source array is smaller than Int64ByteSize.

    Parameters

    • source: Uint8Array

      The Uint8Array containing the byte representation of the Int64 value.

    Returns IResultWithBytes<CLValueInt64>

Generated using TypeDoc