Spec-Zone.ru › Dart 2

dart:convert

Utf8Codec class

A Utf8Codec encodes strings to utf-8 code units (bytes) and decodes UTF-8 code units to strings.

Inheritance
  • Object
  • Codec<String, List<int>>
  • Encoding
  • Utf8Codec

Constructors

Utf8Codec({bool allowMalformed = false})
const
Instantiates a new Utf8Codec.

Properties

decoder → Utf8Decoder
read-onlyoverride
Returns the decoder of this, converting from List<int> to String.
encoder → Utf8Encoder
read-onlyoverride
Returns the encoder from String to List<int>.
hashCode → int
read-onlyinherited
The hash code for this object.
inverted → Codec<List<int>, String>
read-onlyinherited
Inverts this.
name → String
read-onlyoverride
The name of this codec is "utf-8".
runtimeType → Type
read-onlyinherited
A representation of the runtime type of the object.

Methods

decode(List<int> codeUnits, {bool? allowMalformed}) → String
override
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
A string representation of this object.

Operators

operator ==(Object other) → bool
inherited
The equality operator.

© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.19.6/dart-convert/Utf8Codec-class.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API