convertArrayBufferToString function

dynamic convertArrayBufferToString(
  1. Uint8List buffer, [
  2. int? from,
  3. int? to
])

Implementation

convertArrayBufferToString(Uint8List buffer, [int? from, int? to]) {
  from ??= 0;
  to ??= buffer.lengthInBytes;

  var str = LoaderUtils.decodeText(Uint8List.view(buffer.buffer, from, to).toList());

  return str;
}