Dart API Referencedart:utfUtf32leBytesDecoder

Utf32leBytesDecoder Class

Convert UTF-32BE encoded bytes to codepoints by grouping 4 bytes to produce the unicode codepoint.

Extends

Utf32BytesDecoder > Utf32leBytesDecoder

Constructors

Code new Utf32leBytesDecoder(List<int> utf32EncodedBytes, [int offset = 0, int length, bool stripBom = true, int replacementCodepoint = UNICODE_REPLACEMENT_CHARACTER_CODEPOINT]) #

Utf32leBytesDecoder(List<int> utf32EncodedBytes, [int offset = 0,
    int length, bool stripBom = true,
    int replacementCodepoint = UNICODE_REPLACEMENT_CHARACTER_CODEPOINT]) :
    super._fromListRangeIterator((new _ListRange(utf32EncodedBytes, offset,
    length)).iterator(), replacementCodepoint) {
  if (stripBom && hasUtf32leBom(utf32EncodedBytes, offset, length)) {
    skip();
  }
}

Methods

Code int decode() #

int decode() {
  int value = (utf32EncodedBytesIterator.next());
  value += (utf32EncodedBytesIterator.next() << 8);
  value += (utf32EncodedBytesIterator.next() << 16);
  value += (utf32EncodedBytesIterator.next() << 24);
  return value;
}