BcsType<T, Input> class

Constructors

BcsType({required String name, required T read(BcsReader), required void write(Input, BcsWriter), Uint8List serialize(Input, {BcsWriterOptions? options})?, int? serializedSize(Input, {BcsWriterOptions? options})?, void validate(Input)?})

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
final
read → T Function(BcsReader)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serializedSize int? Function(Input, {BcsWriterOptions? options})
final
validate → void Function(Input)
final

Methods

fromBase58(String b58) → T
fromBase64(String b64) → T
fromHex(String hex) → T
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parse(Uint8List bytes) → T
serialize(Input value, {BcsWriterOptions? options}) SerializedBcs
toString() String
A string representation of this object.
inherited
transform<T2, Input2>({String? name, required Input input(Input2), required T2 output(T), void validate(Input2)?}) BcsType<T2, Input2>
write(Input value, BcsWriter writer) → void

Operators

operator ==(Object other) bool
The equality operator.
inherited