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

Method getObjChildrenFirst

include/sonic/dom/dynamicnode.h:568–575  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

566 }
567
568 sonic_force_inline DNode* getObjChildrenFirst() const {
569 sonic_assert(this->IsObject());
570 if (nullptr == children()) {
571 return nullptr;
572 }
573 return (DNode*)((char*)this->a.next.children +
574 sizeof(MetaNode) / sizeof(char));
575 }
576
577 sonic_force_inline DNode* getObjChildrenFirstUnsafe() const {
578 sonic_assert(this->IsObject());

Callers 2

addMemberImplMethod · 0.95
DNodeMethod · 0.80

Calls 1

IsObjectMethod · 0.80

Tested by

no test coverage detected