internal override void WriteHeaderTo(BsonStreamWriter streamWriter) { base.WriteHeaderTo(streamWriter); streamWriter.WriteInt32(0); // reserved streamWriter.WriteCString(_collectionFullName); streamWriter.WriteInt32(_numberToReturn); }
internal override void WriteHeaderTo(BsonStreamWriter buffer) { if ((_flags & QueryFlags.Exhaust) != 0) { throw new NotSupportedException("The Exhaust QueryFlag is not yet supported."); } base.WriteHeaderTo(buffer); buffer.WriteInt32((int)_flags); buffer.WriteCString(_collectionFullName); buffer.WriteInt32(_numberToSkip); buffer.WriteInt32(_numberToReturn); }