writeString method

dynamic writeString(
  1. ByteBuffer out,
  2. String str
)

Implementation

writeString(nio.ByteBuffer out, String str) {
  Int8List buf = Int8List.fromList(utf8.encode(str));
  writeVarint(out, buf.length);
  out.putByte(buf);
}