| 12 | namespace leveldb { |
| 13 | |
| 14 | static Slice GetLengthPrefixedSlice(const char* data) { |
| 15 | uint32_t len; |
| 16 | const char* p = data; |
| 17 | p = GetVarint32Ptr(p, p + 5, &len); // +5: we assume "p" is not corrupted |
| 18 | return Slice(p, len); |
| 19 | } |
| 20 | |
| 21 | MemTable::MemTable(const InternalKeyComparator& comparator) |
| 22 | : comparator_(comparator), refs_(0), table_(comparator_, &arena_) {} |
no test coverage detected