Class CLValueUInt8

Represents an 8-bit unsigned integer value in the Casper type system.

Hierarchy

  • CLValueNumeric
    • CLValueUInt8

Constructors

Properties

Methods

Constructors

Properties

value: BigNumber

Methods

  • Converts the UInt8 value to its byte representation.

    Returns

    A Uint8Array containing a single byte representing the UInt8 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 CLValueUInt8 instance from a Uint8Array. Parses the first byte to retrieve the UInt8 value.

    Returns

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

    Throws

    Error if the source array is empty.

    Parameters

    • source: Uint8Array

      The Uint8Array containing the byte representation of the UInt8 value.

    Returns IResultWithBytes<CLValueUInt8>

Generated using TypeDoc