Ejemplo n.º 1
0
        protected override void WriteData(Stream buffer)
        {
            buffer.WriteLongString(Cql);

            if(ProtocolVersion == 1)
                buffer.WriteConsistency(CqlConsistency);
            else
                WriteQueryParameters(buffer);
        }
Ejemplo n.º 2
0
        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);
        }