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

Method AllocateSpace

src/proxy/ControlMatcher.cc:132–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130//
131template <class Data, class MatchResult>
132void
133HostMatcher<Data, MatchResult>::AllocateSpace(int num_entries)
134{
135 // Should not have been allocated before
136 ink_assert(array_len == -1);
137
138 host_lookup->AllocateSpace(num_entries);
139
140 data_array = new Data[num_entries];
141 array_len = num_entries;
142 num_el = 0;
143}
144
145// void HostMatcher<Data,MatchResult>::Match(RequestData* rdata, MatchResult* result)
146//

Callers 1

BuildTableFromStringMethod · 0.45

Calls 2

memsetFunction · 0.85
ats_mallocFunction · 0.85

Tested by

no test coverage detected