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

Method stringImpl

include/sonic/dom/schema_handler.h:307–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

305 friend class GenericDocument<NodeType>;
306
307 sonic_force_inline bool stringImpl(StringView s) {
308 SONIC_ADD_NODE();
309 st_[np_ - 1].setLength(s.size(), kStringCopy);
310 st_[np_ - 1].sv.p = s.data();
311 return true;
312 }
313
314#undef SONIC_ADD_NODE
315

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected