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
String
toList<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
bytes
usingencoder.convert
.override -
decodeStream(
Stream< List< byteStream) → Future<int> >String> -
inherited
-
encode(
String input, {int? invalidCharacter}) → Uint8List -
Encodes
input
usingencoder.convert
.override -
fuse<
R> (Codec< List< other) → Codec<int> , R>String, R> -
Fuses
this
withother
.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.