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

Inheritance

Properties

decoder AsciiDecoder
read-only

encoder AsciiEncoder
read-only

inverted Codec<List<int>,String>
read-only, inherited

Inverts this.

name String
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.