decode_UTF8 function
@param {DataView} data @param {number} offset @param {number} numBytes @returns {string}
Implementation
decode_UTF8(ByteData data, int offset, numBytes) {
List<int> codePoints = List<int>.filled(numBytes, 0);
var numChars = numBytes;
for (var j = 0; j < numChars; j++, offset += 1) {
codePoints[j] = data.getUint8(offset);
}
return String.fromCharCodes(codePoints);
}