Utf16BytesToCodeUnitsDecoder class abstract
Convert UTF-16 encoded bytes to UTF-16 code units by grouping 1-2 bytes to produce the code unit (0-(2^16)-1). Relies on BOM to determine endian-ness, and defaults to BE.
- Implemented types
- Implementers
Constructors
Properties
- current → int
-
The current element.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- position → int
-
cuttent position
no setter
- remaining → int
-
remaining of the iterator
no setter
- replacementCodepoint → int?
-
replacement of invalid character
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- utf16EncodedBytesIterator → ListRangeIterator
-
TODO(kevmoo): should this field be private?
final
Methods
-
backup(
[int by = 1]) → void - backup
-
decode(
) → int - decode current character
-
decodeRest(
) → List< int> - Provides a fast way to decode the rest of the source bytes in a single call. This method trades memory for improved speed in that it potentially over-allocates the List containing results.
-
moveNext(
) → bool - Advances the iterator to the next element of the iteration.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
skip(
[int count = 1]) → void - skip count
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited