dart:convert
AsciiCodec class
An AsciiCodec allows encoding strings as ASCII bytes and decoding ASCII bytes to strings.
- Inheritance
Constructors
- AsciiCodec({bool allowInvalid: false })
const
- Instantiates a new AsciiCodec. [...]
Properties
- decoder → AsciiDecoder
read-only
- encoder → AsciiEncoder
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> bytes, { bool allowInvalid }) → String
- Decodes the ASCII
bytes
(a list of unsigned 7-bit integers) to the corresponding string. [...] - encode(String source) → Uint8List
- Encodes
input
. [...] - decodeStream(Stream<List<int>> byteStream) → Future<String>
inherited
- 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. [...]