CodePage class
A mapping between bytes and characters.
A code page is a way to map bytes to character. As such, it can only represent 256 different characters.
Constructors
Properties
- decoder → CodePageDecoder
-
Returns the decoder of
this, converting fromList<int>toString.final - encoder → CodePageEncoder
-
Returns the encoder from
StringtoList<int>.no setteroverride - hashCode → int
-
The hash code for this object.
no setterinherited
-
inverted
→ Codec<
List< int> , String> -
Inverts
this.no setterinherited - name → String
-
Name of the encoding.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
decode(
List< int> bytes, {bool allowInvalid = false}) → String -
Decodes
bytesusingencoder.convert.override -
decodeStream(
Stream< List< byteStream) → Future<int> >String> -
inherited
-
encode(
String input, {int? invalidCharacter}) → Uint8List -
Encodes
inputusingencoder.convert.override -
fuse<
R> (Codec< List< other) → Codec<int> , R>String, R> -
Fuses
thiswithother.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
int byte) → int - The character associated with a particular byte in this code page.