| 130 | // |
| 131 | template <class Data, class MatchResult> |
| 132 | void |
| 133 | HostMatcher<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 | // |
no test coverage detected