decode_UTF16 function
dynamic
decode_UTF16(
- dynamic data,
- dynamic offset,
- dynamic numBytes
@param {DataView} data @param {number} offset @param {number} numBytes @returns {string}
Implementation
decode_UTF16(data, offset, numBytes) {
List<int> codePoints = [];
var numChars = numBytes / 2;
for (var j = 0; j < numChars; j++, offset += 2) {
// codePoints[j] = data.getUint16(offset);
codePoints.add( data.getUint16(offset) );
}
return String.fromCharCodes(codePoints);
}