An AsciiCodec allows encoding strings as ASCII bytes and decoding ASCII bytes to strings.
Properties
- AsciiDecoder decoder
-
read-only
- AsciiEncoder encoder
-
read-only
- Codec<List<int>,String> inverted
-
read-only, inheritedInverts
this
. - String name
-
read-only
Constructors
- AsciiCodec({bool allowInvalid: false})
-
constInstantiates 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> -
inheritedFuses
this
withother
.