| 78 | enum UserKeyType { UKT_VALUE = 0, UKT_FORSEEK }; |
| 79 | |
| 80 | inline uint64_t PackTimestampAndType(int64_t timestamp, UserKeyType key_type) { |
| 81 | uint64_t stamp = 0; |
| 82 | if (timestamp >= 0) { |
| 83 | stamp = static_cast<uint64_t>(timestamp); |
| 84 | } |
| 85 | return (stamp << sizeof(UserKeyType)) | key_type; |
| 86 | } |
| 87 | |
| 88 | bool ParseKeySlice(const leveldb::Slice& key, int64_t* timestamp, UserKeyType* type, |
| 89 | leveldb::Slice* short_key, leveldb::Slice* time_key); |
no outgoing calls
no test coverage detected