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

Method getAsStringView

src/common/types/string_t.cpp:43–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43std::string_view string_t::getAsStringView() const {
44 if (len <= SHORT_STR_LENGTH) {
45 return std::string_view((char*)prefix, len);
46 } else {
47 return std::string_view(reinterpret_cast<char*>(overflowPtr), len);
48 }
49}
50
51bool string_t::operator==(const string_t& rhs) const {
52 // First compare the length and prefix of the strings.

Callers 10

appendMethod · 0.80
writeMethod · 0.80
encodeMethod · 0.80
jsonifyFunction · 0.80
operationMethod · 0.80
lookupMethod · 0.80
delete_Method · 0.80
discardLocalMethod · 0.80
lookupMethod · 0.80
delete_Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected