writeString method
Writes a length-prefixed string.
Implementation
void writeString(String s) {
final encoded = utf8.encode(s);
writeUint16(encoded.length);
_bytes.add(encoded);
}
Writes a length-prefixed string.
void writeString(String s) {
final encoded = utf8.encode(s);
writeUint16(encoded.length);
_bytes.add(encoded);
}