Class CLValueUInt32

Represents a 32-bit unsigned integer value in the Casper type system.

Hierarchy

  • CLValueNumeric
    • CLValueUInt32

Constructors

Properties

Methods

Constructors

Properties

value: BigNumber

Methods

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

    Returns

    A Uint8Array representing the bytes of the UInt32 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 CLValueUInt32 instance from a Uint8Array. Parses the byte array to retrieve the UInt32 value.

    Returns

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

    Throws

    Error if the source array is too short for a UInt32 value.

    Parameters

    • source: Uint8Array

      The Uint8Array containing the byte representation of the UInt32 value.

    Returns IResultWithBytes<CLValueUInt32>

Generated using TypeDoc