MCPcopy Create free account
hub / github.com/apache/trafficserver / AllocateChild

Method AllocateChild

include/tscore/Trie.h:100–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98 return children[static_cast<unsigned char>(index)];
99 }
100 inline Node *
101 AllocateChild(char index)
102 {
103 Node *&child = children[static_cast<unsigned char>(index)];
104 ink_assert(child == nullptr);
105 child = static_cast<Node *>(ats_malloc(sizeof(Node)));
106 child->Clear();
107 return child;
108 }
109
110 private:
111 Node *children[N_NODE_CHILDREN];

Callers 1

InsertMethod · 0.80

Calls 2

ats_mallocFunction · 0.85
ClearMethod · 0.45

Tested by

no test coverage detected