readString method
Reads a length-prefixed string.
Implementation
String readString() {
final length = readUint16();
final bytes = _data.sublist(_offset, _offset + length);
_offset += length;
return utf8.decode(bytes);
}
Reads a length-prefixed string.
String readString() {
final length = readUint16();
final bytes = _data.sublist(_offset, _offset + length);
_offset += length;
return utf8.decode(bytes);
}