| 96 | } |
| 97 | |
| 98 | void WriteBatch::Put(const Slice& key, const Slice& value) { |
| 99 | WriteBatchInternal::SetCount(this, WriteBatchInternal::Count(this) + 1); |
| 100 | rep_.push_back(static_cast<char>(kTypeValue)); |
| 101 | PutLengthPrefixedSlice(&rep_, key); |
| 102 | PutLengthPrefixedSlice(&rep_, value); |
| 103 | } |
| 104 | |
| 105 | void WriteBatch::Delete(const Slice& key) { |
| 106 | WriteBatchInternal::SetCount(this, WriteBatchInternal::Count(this) + 1); |
no test coverage detected