encode method

  1. @override
Uint8List encode()
override

Implementation

@override
Uint8List encode() {
  final buffer = ByteDataWriter(endian: Endian.little);

  // command type
  buffer.writeUint8(3);
  buffer.write(utf8.encode(query));

  return buffer.toBytes();
}