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

Extends

Properties

AsciiDecoder decoder
read-only
AsciiEncoder encoder
read-only
Codec<List<int>,String> inverted
read-only, inherited
Inverts this.
String name
read-only

Constructors

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

Methods

decode(List<int> bytes, {bool allowInvalid}) → String
Decodes the ASCII bytes (a list of unsigned 7-bit integers) to the corresponding string.
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.