decodeUtf32leAsIterable function
Decodes the UTF-32LE bytes as an iterable. Thus, the consumer can only convert
as much of the input as needed. This method strips a leading BOM by default,
but can be overridden by setting the optional parameter stripBom
to false.
Set the replacementCharacter to null to throw an ArgumentError
rather than replace the bad value.
Implementation
IterableUtf32Decoder decodeUtf32leAsIterable(List<int> bytes,
[int offset = 0,
int? length,
bool stripBom = true,
int replacementCodepoint = UNICODE_REPLACEMENT_CHARACTER_CODEPOINT]) {
return IterableUtf32Decoder._(() => Utf32leBytesDecoder(
bytes, offset, length, stripBom, replacementCodepoint));
}