convertArrayBufferToString function

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

Implementation

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

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

  return str;
}