Dart SDK
dart:convert
AsciiCodec
class
AsciiCodec
Properties
Constructors
Methods
Properties
name
encoder
decoder
inverted
inverted
Constructors
AsciiCodec
Methods
decode
encode
fuse
decodeStream
encode
fuse
An
AsciiCodec
allows encoding strings as ASCII bytes and decoding ASCII bytes to strings.
Extends
Object
Codec
<
String
,
List
<
int
>>
Encoding
AsciiCodec
Properties
String
name
read-only
AsciiEncoder
encoder
read-only
AsciiDecoder
decoder
read-only
Codec
<
List
<
int
>,
String
>
inverted
read-only ,
inherited
Inverts this.
Codec
<
List
<
int
>,
String
>
inverted
read-only ,
inherited
Inverts this.
Constructors
AsciiCodec
({
bool
allowInvalid
:
false
})
const
Instantiates a new
AsciiCodec
.
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
input
) →
List
<
int
>
inherited
fuse
(
Codec
<
List
<
int
>>
other
) →
Codec
<
String
>
inherited
Fuses this with other.
decodeStream
(
Stream
<
List
<
int
>>
byteStream
) →
Future
<
String
>
inherited
encode
(
String
input
) →
List
<
int
>
inherited
fuse
(
Codec
<
List
<
int
>>
other
) →
Codec
<
String
>
inherited
Fuses this with other.