| 159 | } |
| 160 | |
| 161 | size_t h2_proxy_ihash_shift(h2_proxy_ihash_t *ih, void **buffer, size_t max) |
| 162 | { |
| 163 | collect_ctx ctx; |
| 164 | size_t i; |
| 165 | |
| 166 | ctx.ih = ih; |
| 167 | ctx.buffer = buffer; |
| 168 | ctx.max = max; |
| 169 | ctx.len = 0; |
| 170 | h2_proxy_ihash_iter(ih, collect_iter, &ctx); |
| 171 | for (i = 0; i < ctx.len; ++i) { |
| 172 | h2_proxy_ihash_remove_val(ih, buffer[i]); |
| 173 | } |
| 174 | return ctx.len; |
| 175 | } |
| 176 | |
| 177 | typedef struct { |
| 178 | h2_proxy_ihash_t *ih; |
nothing calls this directly
no test coverage detected