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

Method findFromMap

include/sonic/dom/dynamicnode.h:613–619  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

611 }
612
613 sonic_force_inline MemberIterator findFromMap(StringView key) const {
614 auto it = getMap()->find(MSType(key.data(), key.size()));
615 if (it != getMap()->end()) {
616 return memberBeginUnsafe() + it->second;
617 }
618 return memberEndUnsafe();
619 }
620
621 sonic_force_inline MemberIterator findMemberImpl(StringView key) const {
622 if (nullptr != getMap()) {

Callers

nothing calls this directly

Calls 1

findMethod · 0.80

Tested by

no test coverage detected