| 1366 | } |
| 1367 | |
| 1368 | apr_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 | /******************************************************************************* |
no outgoing calls
no test coverage detected