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

Function h2_brigade_mem_size

modules/http2/h2_util.c:1368–1386  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1366}
1367
1368apr_off_t h2_brigade_mem_size(apr_bucket_brigade *bb)
1369{
1370 apr_bucket *b;
1371 apr_off_t total = 0;
1372
1373 for (b = APR_BRIGADE_FIRST(bb);
1374 b != APR_BRIGADE_SENTINEL(bb);
1375 b = APR_BUCKET_NEXT(b))
1376 {
1377 total += sizeof(*b);
1378 if (b->length > 0) {
1379 if (APR_BUCKET_IS_HEAP(b)
1380 || APR_BUCKET_IS_POOL(b)) {
1381 total += b->length;
1382 }
1383 }
1384 }
1385 return total;
1386}
1387
1388
1389/*******************************************************************************

Callers 1

buffer_output_receiveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected