Utf16beBytesToCodeUnitsDecoder constructor

Utf16beBytesToCodeUnitsDecoder(
  1. List<int> utf16EncodedBytes, [
  2. int offset = 0,
  3. int? length,
  4. bool stripBom = true,
  5. int replacementCodepoint = UNICODE_REPLACEMENT_CHARACTER_CODEPOINT,
])

Implementation

Utf16beBytesToCodeUnitsDecoder(List<int> utf16EncodedBytes,
    [int offset = 0,
    int? length,
    bool stripBom = true,
    int replacementCodepoint = UNICODE_REPLACEMENT_CHARACTER_CODEPOINT])
    : super._fromListRangeIterator(
          (ListRange(utf16EncodedBytes, offset, length)).iterator,
          replacementCodepoint) {
  if (stripBom && hasUtf16beBom(utf16EncodedBytes, offset, length)) {
    skip();
  }
}