MCPcopy Create free account
hub / github.com/bytedance/sonic-cpp / setEmptyString

Function setEmptyString

include/sonic/dom/genericnode.h:1052–1055  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1050 return downCast()->setRawImpl(s.data(), s.size());
1051 }
1052 void setEmptyString() noexcept {
1053 sv.p = "";
1054 setLength(0, kStringConst);
1055 }
1056
1057 sonic_force_inline int64_t getIntMax() const {
1058 return std::numeric_limits<int>::max();

Callers 2

StringCopyMethod · 0.85
setTypeFunction · 0.85

Calls 1

setLengthFunction · 0.85

Tested by

no test coverage detected