MCPcopy Create free account
hub / github.com/apache/httpd / h2_proxy_ihash_shift

Function h2_proxy_ihash_shift

modules/http2/h2_proxy_util.c:161–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159}
160
161size_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
177typedef struct {
178 h2_proxy_ihash_t *ih;

Callers

nothing calls this directly

Calls 2

h2_proxy_ihash_iterFunction · 0.85

Tested by

no test coverage detected