| 26 | size_t MemTable::ApproximateMemoryUsage() { return arena_.MemoryUsage(); } |
| 27 | |
| 28 | int MemTable::KeyComparator::operator()(const char* aptr, |
| 29 | const char* bptr) const { |
| 30 | // Internal keys are encoded as length-prefixed strings. |
| 31 | Slice a = GetLengthPrefixedSlice(aptr); |
| 32 | Slice b = GetLengthPrefixedSlice(bptr); |
| 33 | return comparator.Compare(a, b); |
| 34 | } |
| 35 | |
| 36 | // Encode a suitable internal key target for "target" and return it. |
| 37 | // Uses *scratch as scratch space, and the returned pointer will point |
nothing calls this directly
no test coverage detected