MCPcopy Create free account
hub / github.com/bytedance/bolt / decodeNoNulls

Function decodeNoNulls

bolt/exec/prefixsort/tests/utils/EncoderTestUtils.cpp:38–41  ·  view source on GitHub ↗

The decode method will only be used in testing scenarios. In production code, we have no scenarios that require decoding a normalized key.

Source from the content-addressed store, hash-verified

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.
38void decodeNoNulls(char* encoded, int64_t& value) {
39 value = *reinterpret_cast<uint64_t*>(encoded);
40 value = __builtin_bswap64(value ^ 128);
41}
42
43} // namespace
44

Callers 1

decodeInPlaceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected