public KeyValuePair <IData, IData>?FindPrev(IData key) { var operation = new FindPrevOperation(key); Execute(operation); return(operation.KeyValue); }
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); } }