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

Function getData

src/include/common/types/string_t.h:30–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28 static bool isShortString(uint32_t len) { return len <= SHORT_STR_LENGTH; }
29
30 const uint8_t* getData() const {
31 return isShortString(len) ? prefix : reinterpret_cast<uint8_t*>(overflowPtr);
32 }
33
34 uint8_t* getDataUnsafe() {
35 return isShortString(len) ? prefix : reinterpret_cast<uint8_t*>(overflowPtr);

Callers

nothing calls this directly

Calls 1

isShortStringFunction · 0.85

Tested by

no test coverage detected