getString method
Implementation
String getString(int length) {
if (offset + length > maxlen) {
throw MobiBufferOverflowException();
}
final val = String.fromCharCodes(data.sublist(offset, offset + length));
offset += length;
return val;
}