unpackStr method

String unpackStr()

Unpacks a string from the buffer.

Implementation

String unpackStr() {
  final int length = unpack(ConstStructs.ushort);
  final Uint8List bytes_ = unpackF(length);
  return utf8.decode(bytes_);
}