readCommonString method

String readCommonString(
  1. StringEncoding encoding,
  2. StringLocation location,
  3. Object? relatedKey
)

Implementation

String readCommonString(
    StringEncoding encoding, StringLocation location, Object? relatedKey) {
  var byteCount = reader.getVarint();
  if (byteCount < 0) {
    throw RangeError("readString out range error, bytgeCount : $byteCount");
  }
  var byteData = reader.getBytes(byteCount);
  return stringTable.lookup(byteData, encoding, location, relatedKey);
}