writeString method
- String value
 
Implementation
void writeString(String value) {
  final encoded = utf8.encode(value);
  writeShort(encoded.length);
  _ensureCapacity(encoded.length);
  _byteBuffer.setAll(_position, encoded);
  _position += encoded.length;
  dirty();
}