docs: public void writeQuery(Query query) {
      ensureBuffer();
      int pos = out.writerIndex();
      out.writeByte(QUERY);
      out.writeInt(0);
      Util.writeCStringUTF8(out, query.sql);
      out.setInt(pos + 1, out.writerIndex() - pos - 1);
    }