BorshOptionEncoder<T> class
Option Encoder
An encoder for optional values.
- Inheritance
-
- Object
- Converter<
T?, Iterable< int> > - BorshEncoder<
T?> - BorshOptionEncoder
Constructors
-
BorshOptionEncoder.new(BorshCodec<
T> subtype, BorshOptionType? type) -
Creates an encoder for optional values.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
subtype
→ BorshCodec<
T> -
The data type's codec.
finalinherited
- type → BorshOptionType
-
The option flag's byte length (default: BorshOptionType.rust).
finalinherited
Methods
-
bind(
Stream< T?> stream) → Stream<Iterable< int> > -
Transforms the provided
stream
.inherited -
cast<
RS, RT> () → Converter< RS, RT> -
Provides a
Converter<RS, RT>
view of this stream transformer.inherited -
convert(
T? input) → Iterable< int> -
Encodes
input
to byte data.inherited -
fuse<
TT> (Converter< Iterable< other) → Converter<int> , TT>T?, TT> -
Fuses
this
withother
.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pack(
BufferWriter buffer, T? input) → void -
Writes
input
tobuffer
.inherited -
startChunkedConversion(
Sink< Iterable< sink) → Sink<int> >T?> -
Starts a chunked conversion.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited