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

Method setMap

include/sonic/dom/dynamicnode.h:596–600  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

594 }
595
596 sonic_force_inline void setMap(map_type* new_map) {
597 sonic_assert(this->IsObject());
598 sonic_assert(this->o.next.children != nullptr);
599 ((MetaNode*)(this->o.next.children))->map = new_map;
600 }
601
602 sonic_force_inline map_type* getMap() const {
603 sonic_assert(this->IsObject());

Callers

nothing calls this directly

Calls 1

IsObjectMethod · 0.80

Tested by

no test coverage detected