BorshBufferCodec class
Buffer Codec
A codec for byte data.
Constructors
- BorshBufferCodec(int byteLength)
-
Creates a codec for byte data.
const
Properties
- byteLength → int
-
The number of bytes required to store
anyinstance ofT(i.e. max size).final -
decoder
→ BorshDecoder<
Iterable< int> > -
Returns the decoder of
this, converting fromTtoS.no setteroverride -
encoder
→ BorshEncoder<
Iterable< int> > -
Returns the encoder from
StoT.no setteroverride - hashCode → int
-
The hash code for this object.
no setterinherited
-
inverted
→ Codec<
Iterable< int> , Iterable<int> > -
Inverts
this.no setterinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
cOption(
) → BorshOptionSizedCodec< Iterable< int> > -
Converts this codec to an c-option code of type
T.inherited -
decode(
Iterable< int> encoded) → Iterable<int> -
Decodes
encodeddata.inherited -
encode(
Iterable< int> input) → Iterable<int> -
Encodes
input.inherited -
fuse<
R> (Codec< Iterable< other) → Codec<int> , R>Iterable< int> , R> -
Fuses
thiswithother.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
option(
) → BorshOptionSizedCodec< Iterable< int> > -
Converts this codec to an option code of type
T.inherited -
pack(
BufferWriter buffer, Iterable< int> input) → void -
Writes
inputtobuffer.inherited -
size(
Iterable< int> input) → int -
Returns the serialized byte length of
input.override -
toString(
) → String -
A string representation of this object.
inherited
-
unpack(
BufferReader buffer) → Iterable< int> -
Reads
Tfrombuffer.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited