Utf32BytesDecoder constructor
Utf32BytesDecoder(])
Implementation
factory Utf32BytesDecoder(List<int> utf32EncodedBytes,
[int offset = 0,
int? length,
int replacementCodepoint = UNICODE_REPLACEMENT_CHARACTER_CODEPOINT]) {
length ??= utf32EncodedBytes.length - offset;
if (hasUtf32beBom(utf32EncodedBytes, offset, length)) {
return Utf32beBytesDecoder(utf32EncodedBytes, offset + 4, length - 4,
false, replacementCodepoint);
} else if (hasUtf32leBom(utf32EncodedBytes, offset, length)) {
return Utf32leBytesDecoder(utf32EncodedBytes, offset + 4, length - 4,
false, replacementCodepoint);
} else {
return Utf32beBytesDecoder(
utf32EncodedBytes, offset, length, false, replacementCodepoint);
}
}