BorshStringDecoder class

String Decoder

A decoder for string data types.

Inheritance

Constructors

BorshStringDecoder.new({int lengthPadding = 0, BufferEncoding encoding = BufferEncoding.utf8})
Creates a decoder for string data types.
const

Properties

encoding BufferEncoding
The encoding.
final
hashCode int
The hash code for this object.
no setterinherited
lengthPadding int
The number of zeros added to the end of the encoded length.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

bind(Stream<Iterable<int>> stream) Stream<String>
Transforms the provided stream.
inherited
cast<RS, RT>() Converter<RS, RT>
Provides a Converter<RS, RT> view of this stream transformer.
inherited
convert(Iterable<int> input) String
Decodes T from input.
inherited
fuse<TT>(Converter<String, TT> other) Converter<Iterable<int>, TT>
Fuses this with other.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
startChunkedConversion(Sink<String> sink) Sink<Iterable<int>>
Starts a chunked conversion.
inherited
toString() String
A string representation of this object.
inherited
unpack(BufferReader buffer) String
Reads T from buffer.
override

Operators

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