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

Function SDKGetAddrLength

src/sdk/sql_request_row.cc:45–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43 {::hybridse::sdk::kTypeDouble, sizeof(double)}};
44
45static inline uint8_t SDKGetAddrLength(uint32_t size) {
46 if (size <= UINT8_MAX) {
47 return 1;
48 } else if (size <= UINT16_MAX) {
49 return 2;
50 } else if (size <= SDK_UINT24_MAX) {
51 return 3;
52 } else {
53 return 4;
54 }
55}
56
57inline uint32_t SDKGetStartOffset(int32_t column_count) {
58 return SDK_HEADER_LENGTH + BitMapSize(column_count);

Callers 1

InitMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected