Returns the user key portion of an internal key.
| 93 | |
| 94 | // Returns the user key portion of an internal key. |
| 95 | inline Slice ExtractUserKey(const Slice& internal_key) { |
| 96 | assert(internal_key.size() >= 8); |
| 97 | return Slice(internal_key.data(), internal_key.size() - 8); |
| 98 | } |
| 99 | |
| 100 | // A comparator for internal keys that uses a specified comparator for |
| 101 | // the user key portion and breaks ties by decreasing sequence number. |
no test coverage detected