BorshStringEncoder class

String Encoder

An encoder for string data types.

Inheritance

Constructors

BorshStringEncoder.new({int lengthPadding = 0, BufferEncoding encoding = BufferEncoding.utf8})
Creates an encoder 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<String> 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(String input) Iterable<int>
Encodes input to byte data.
inherited
fuse<TT>(Converter<Iterable<int>, TT> other) Converter<String, TT>
Fuses this with other.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pack(BufferWriter buffer, String input) → void
Writes input to buffer.
override
startChunkedConversion(Sink<Iterable<int>> sink) Sink<String>
Starts a chunked conversion.
inherited
toString() String
A string representation of this object.
inherited

Operators

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