The decode method will only be used in testing scenarios. In production code, we have no scenarios that require decoding a normalized key.
| 36 | /// The decode method will only be used in testing scenarios. In production |
| 37 | /// code, we have no scenarios that require decoding a normalized key. |
| 38 | void decodeNoNulls(char* encoded, int64_t& value) { |
| 39 | value = *reinterpret_cast<uint64_t*>(encoded); |
| 40 | value = __builtin_bswap64(value ^ 128); |
| 41 | } |
| 42 | |
| 43 | } // namespace |
| 44 |