FixedBytes class abstract
Abstract class for handling fixed length bytes.
- Implemented types
- Mixed in types
- Implementers
Constructors
-
FixedBytes(List<
int> hashBytes, int length) - Constructs a FixedBytes object with hash bytes data and length for validate.
- FixedBytes.fromHex(String hexBytes, int length)
- Constructs a FixedBytes object from a hexadecimal string and length for validate.
Properties
Methods
-
compareTo(
FixedBytes other) → int -
Compares this object to another object.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
serialize(
) → List< int> -
Serializes the object to CBOR bytes.
inherited
-
serializeHex(
) → String -
Serializes the object to hexadecimal string.
inherited
-
toCbor(
) → CborObject -
Converts the object to a CBOR object.
override
-
toHex(
) → String - Converts the hash bytes to a hexadecimal string.
-
toJson(
) → dynamic -
Converts the object to a JSON representation.
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override