writeLengthEncodedString method

void writeLengthEncodedString(
  1. String value
)

Implementation

void writeLengthEncodedString(String value) {
  final encoded = encodeString(value);
  writeUint32(5 + encoded.bytesLength);
  write(encoded._bytes);
  writeInt8(0);
}