MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / decodeOverflowPtr

Function decodeOverflowPtr

src/include/common/type_utils.h:68–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66 memcpy(((uint8_t*)&overflowPtr) + 4, &pageOffset, 4);
67 }
68 static inline void decodeOverflowPtr(uint64_t overflowPtr, page_idx_t& pageIdx,
69 uint32_t& pageOffset) {
70 pageIdx = 0;
71 memcpy(&pageIdx, &overflowPtr, 4);
72 memcpy(&pageOffset, ((uint8_t*)&overflowPtr) + 4, 4);
73 }
74
75 template<typename T>
76 static inline constexpr common::PhysicalTypeID getPhysicalTypeIDForType() {

Callers 2

readStringMethod · 0.85
equalsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected