AsciiCodec class

An AsciiCodec allows encoding strings as ASCII bytes and decoding ASCII bytes to strings.

An AsciiCodec allows encoding strings as ASCII bytes and decoding ASCII bytes to strings.

Extends

Constructors

AsciiCodec({bool allowInvalid: false})
const
Instantiates a new AsciiCodec.

Instance Properties

name String
read-only
encoder AsciiEncoder
read-only
decoder AsciiDecoder
read-only
inverted Codec<List<int>,String> Inherited
read-only
inverted Codec<List<int>,String> Inherited
read-only

Instance Methods

decode(List<int> bytes, {bool allowInvalid}) → String
Decodes the ASCII bytes (a list of unsigned 7-bit integers) to the corresponding string.
encode(String input) → List<int> Inherited
fuse(Codec<List<int>> other) → Codec<String> Inherited
Fuses this with other.
decodeStream(Stream<List<int>> byteStream) → Future<String> Inherited
encode(String input) → List<int> Inherited
fuse(Codec<List<int>> other) → Codec<String> Inherited
Fuses this with other.