示例#1
0
        public KeyValuePair <IData, IData>?FindPrev(IData key)
        {
            var operation = new FindPrevOperation(key);

            Execute(operation);

            return(operation.KeyValue);
        }
示例#2
0
        private void WriteFindPrevOperation(BinaryWriter writer, FindPrevOperation operation)
        {
            KeyPersist.Write(writer, operation.FromKey);

            writer.Write(operation.KeyValue.HasValue);
            if (operation.KeyValue.HasValue)
            {
                KeyPersist.Write(writer, operation.KeyValue.Value.Key);
                RecordPersist.Write(writer, operation.KeyValue.Value.Value);
            }
        }