dart:convert
Utf8Codec class
A Utf8Codec encodes strings to utf-8 code units (bytes) and decodes UTF-8 code units to strings.
- Inheritance
Constructors
- Utf8Codec({bool allowMalformed: false })
const
- Instantiates a new Utf8Codec. [...]
Properties
- decoder → Utf8Decoder
read-only
- encoder → Utf8Encoder
read-only
- name → String
read-only
- Name of the encoding. [...]
- hashCode → int
read-only, inherited
- The hash code for this object. [...]
- inverted → Codec<List<int>, String>
read-only, inherited
- Inverts
this
. [...] - runtimeType → Type
read-only, inherited
- A representation of the runtime type of the object.
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
- Encodes
input
. [...] - fuse<R>(Codec<List<int>, R> other) → Codec<String, R>
inherited
- Fuses
this
with other
. [...] - noSuchMethod(Invocation invocation) → dynamic
inherited
- Invoked when a non-existent method or property is accessed. [...]
- toString() → String
inherited
- Returns a string representation of this object.
Operators
- operator ==(dynamic other) → bool
inherited
- The equality operator. [...]