A Utf8Codec encodes strings to utf-8 code units (bytes) and decodes UTF-8 code units to strings.
Properties
- Utf8Decoder decoder
-
read-only
- Utf8Encoder encoder
-
read-only
- Codec<List<int>,String> inverted
-
read-only, inheritedInverts
this
. - String name
-
read-only
Constructors
Methods
-
decode(
List<int> codeUnits, {bool allowMalformed}) → String -
Decodes the UTF-8
codeUnits
(a list of unsigned 8-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
.