Represents a Unit value in the Casper type system. A Unit value is similar to 'null' or 'void' in other languages.
Constructs a new CLValueUnit instance.
Private
Returns the byte representation of the Unit value. For Unit type, this is always an empty array.
An empty Uint8Array.
Returns the value of the Unit type.
Always returns null.
Converts the instance to a JSON-compatible null value.
Always returns null, representing the absence of a value.
null
Returns a string representation of the Unit value.
The string 'null' to represent the Unit value.
Static
Creates a CLValueUnit instance from a byte array.
A new CLValueUnit instance.
Will throw an error if the source is not empty.
The source Uint8Array.
Generated using TypeDoc
Represents a Unit value in the Casper type system. A Unit value is similar to 'null' or 'void' in other languages.