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

Function encode

bolt/common/hyperloglog/SparseHll.cpp:39–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37const int8_t kIndexBitLength = 26;
38
39inline uint32_t encode(uint32_t index, uint32_t value) {
40 return index << kValueBitLength | value;
41}
42
43inline uint32_t decodeIndex(uint32_t entry) {
44 return entry >> kValueBitLength;

Callers 15

serializeMethod · 0.85
serializeMethod · 0.85
writeVslongMethod · 0.85
writeVslongMethod · 0.85
TESTFunction · 0.85
encodeVariantJsonFunction · 0.85
WrapKeyMethod · 0.85
encodeInPlaceFunction · 0.85
callMethod · 0.85
generateJsonTypedFunction · 0.85
base64GroupPointerMethod · 0.85
encodeMethod · 0.85

Calls

no outgoing calls

Tested by 4

TESTFunction · 0.68
encodeVariantJsonFunction · 0.68
encodeInPlaceFunction · 0.68
TEST_FFunction · 0.68