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

Method Key

include/sonic/dom/handler.h:266–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

264 }
265
266 sonic_force_inline bool Key(const char *data, size_t len, size_t allocated) {
267 new (stack_.PushSize<NodeType>(1)) NodeType();
268 NodeType *key = stack_.Top<NodeType>();
269 key->setLength(len, allocated ? kStringFree : kStringCopy);
270 key->sv.p = data;
271 return true;
272 }
273
274 sonic_force_inline bool Raw(const char *data, size_t len) {
275 new (stack_.PushSize<NodeType>(1)) NodeType();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected