W3cubDocs

/Dart 2

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

decoderAsciiDecoder
read-only, override
Returns the decoder of this, converting from List<int> to String. [...]
encoderAsciiEncoder
read-only, override
Returns the encoder from String to List<int>. [...]
nameString
read-only, override
The name of this codec, "us-ascii".
hashCodeint
read-only, inherited
The hash code for this object. [...]
invertedCodec<List<int>, String>
read-only, inherited
Inverts this. [...]
runtimeTypeType
read-only, inherited
A representation of the runtime type of the object.

Methods

decode(List<int> bytes, { bool allowInvalid }) → String
override
Decodes the ASCII bytes (a list of unsigned 7-bit integers) to the corresponding string. [...]
encode(String source) → Uint8List
override
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. [...]

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-convert/AsciiCodec-class.html