Dart API Referencedart:utfUtf32beBytesDecoder

Utf32beBytesDecoder Class

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

Extends

Utf32BytesDecoder > Utf32beBytesDecoder

Constructors

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

Utf32beBytesDecoder(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 && hasUtf32beBom(utf32EncodedBytes, offset, length)) {
    skip();
  }
}

Methods

Code int decode() #

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