Utf16beBytesToCodeUnitsDecoder class

Convert UTF-16BE encoded bytes to utf16 code units by grouping 1-2 bytes to produce the code unit (0-(2^16)-1).

Inheritance

Constructors

Utf16beBytesToCodeUnitsDecoder(List<int> utf16EncodedBytes, [int offset = 0, int? length, bool stripBom = true, int replacementCodepoint = unicodeReplacementCharacterCodepoint])
Utf16beBytesToCodeUnitsDecoder

Properties

current → int
The current element.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
position → int
cuttent position
no setterinherited
remaining → int
remaining of the iterator
no setterinherited
replacementCodepoint → int?
replacement of invalid character
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
utf16EncodedBytesIterator → ListRangeIterator
TODO(kevmoo): should this field be private?
finalinherited

Methods

backup([int by = 1]) → void
backup
inherited
decode() → int
decode current character
override
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.
inherited
moveNext() → bool
Advances the iterator to the next element of the iteration.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
skip([int count = 1]) → void
skip count
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited