MCPcopy Create free account
hub / github.com/OpenArkStudio/ARK / FindNode

Method FindNode

src/base/AFStringPod.hpp:548–572  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

546 }
547
548 node_t* FindNode(const TYPE* name) const
549 {
550 assert(name != nullptr);
551
552 if (0 == mnSize)
553 {
554 return nullptr;
555 }
556
557 size_t hash = TRAITS::Hash(name);
558 size_t bucket = GetBucket(hash);
559 node_t* node = mpBuckets[bucket];
560
561 while (node)
562 {
563 if ((node->hash == hash) && TRAITS::Equal(node->name, name))
564 {
565 return node;
566 }
567
568 node = node->next;
569 }
570
571 return nullptr;
572 }
573
574 void Expand()
575 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected