MCPcopy Create free account
hub / github.com/4paradigm/OpenMLDB / GetAddrLength

Function GetAddrLength

src/codec/codec.cc:49–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47};
48
49static inline uint8_t GetAddrLength(uint32_t size) {
50 if (size <= UINT8_MAX) {
51 return 1;
52 } else if (size <= UINT16_MAX) {
53 return 2;
54 } else if (size <= UINT24_MAX) {
55 return 3;
56 } else {
57 return 4;
58 }
59}
60
61RowBuilder::RowBuilder(const Schema& schema)
62 : schema_(schema),

Callers 3

SetBufferMethod · 0.85
ResetMethod · 0.85
GetValueMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected