protected override void WriteData(Stream buffer) { buffer.WriteLongString(Cql); if(ProtocolVersion == 1) buffer.WriteConsistency(CqlConsistency); else WriteQueryParameters(buffer); }
protected override void WriteData(Stream buffer) { buffer.WriteShortByteArray(QueryId); if(ProtocolVersion == 1) { if(Parameters == null) buffer.WriteShort(0); else { buffer.WriteShort((ushort)Parameters.Count); foreach(var prm in Parameters) buffer.WriteByteArray(prm); } buffer.WriteConsistency(CqlConsistency); } else WriteQueryParameters(buffer); }