Return the slice of key in optimal mode, which is the hash code plus the total length of a full key.
| 108 | /// Return the slice of key in optimal mode, which is the hash code plus the total |
| 109 | /// length of a full key. |
| 110 | Slice optimal_key_slice() const { |
| 111 | DCHECK_LE(OptimalKeySize, key_.size()); |
| 112 | return Slice(key_.c_str(), OptimalKeySize); |
| 113 | } |
| 114 | |
| 115 | /// Return the hash code from a key of type Slice. |
| 116 | static HashCode hash_code(Slice key) { |
no test coverage detected