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

Method stringImpl

include/sonic/dom/handler.h:185–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183 friend class GenericDocument<NodeType>;
184
185 sonic_force_inline bool stringImpl(StringView s) {
186 SONIC_ADD_NODE();
187 st_[np_ - 1].setLength(s.size(), kStringCopy);
188 st_[np_ - 1].sv.p = s.data();
189 return true;
190 }
191
192#undef SONIC_ADD_NODE
193

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected