parseString method

dynamic parseString(
  1. int length
)

Implementation

parseString(int length) {
  var dataView = this.data;
  var offset = this.offset + this.relativeOffset;
  var string = '';
  this.relativeOffset += length;
  for (var i = 0; i < length; i++) {
      string += String.fromCharCode(dataView.getUint8(offset + i));
  }

  return string;
}