public void WriteToBatch(FrameWriter wb) { wb.WriteByte(1); //prepared query wb.WriteShortBytes(_id); wb.WriteUInt16((ushort)_queryOptions.Values.Length); foreach (var queryParameter in _queryOptions.Values) { wb.WriteAsBytes(queryParameter); } }
public void WriteToBatch(FrameWriter wb) { //not a prepared query wb.WriteByte(0); wb.WriteLongString(_cqlQuery); if (_queryOptions.Values == null || _queryOptions.Values.Length == 0) { // No values wb.WriteUInt16(0); } else { wb.WriteUInt16((ushort)_queryOptions.Values.Length); foreach (var queryParameter in _queryOptions.Values) { wb.WriteAsBytes(queryParameter); } } }
public void WriteToBatch(FrameWriter wb) { //not a prepared query wb.WriteByte(0); wb.WriteLongString(_cqlQuery); if (_queryOptions.Values == null || _queryOptions.Values.Length == 0) { //not values wb.WriteInt16(0); } else { wb.WriteUInt16((ushort) _queryOptions.Values.Length); foreach (var queryParameter in _queryOptions.Values) { wb.WriteAsBytes(queryParameter); } } }