MCPcopy Create free account
hub / github.com/Snapchat/Valdi / hash

Method hash

valdi_core/src/valdi_core/cpp/Utils/StringBox.cpp:118–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118size_t StringBox::hash() const noexcept {
119 // Use the interned string address as the hash, since
120 // it's guaranteed to be unique.
121 return reinterpret_cast<size_t>(_internedString.get());
122}
123
124std::string indentString(const std::string& input) noexcept {
125 std::stringstream ss(input);

Callers 1

operator()Method · 0.45

Calls 1

getMethod · 0.65

Tested by

no test coverage detected