MCPcopy Create free account
hub / github.com/apache/impala / EncodeInt

Function EncodeInt

be/src/kudu/util/cache-test.cc:49–53  ·  view source on GitHub ↗

Conversions between numeric keys/values and the types expected by Cache.

Source from the content-addressed store, hash-verified

47
48// Conversions between numeric keys/values and the types expected by Cache.
49static std::string EncodeInt(int k) {
50 faststring result;
51 PutFixed32(&result, k);
52 return result.ToString();
53}
54static int DecodeInt(const Slice& k) {
55 CHECK_EQ(4, k.size());
56 return DecodeFixed32(k.data());

Callers 4

LookupMethod · 0.70
InsertMethod · 0.70
EraseMethod · 0.70
TEST_PFunction · 0.70

Calls 2

PutFixed32Function · 0.85
ToStringMethod · 0.45

Tested by

no test coverage detected