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

Function h2_util_bb_print

modules/http2/h2_util.c:1290–1318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1288}
1289
1290apr_size_t h2_util_bb_print(char *buffer, apr_size_t bmax,
1291 const char *tag, const char *sep,
1292 apr_bucket_brigade *bb)
1293{
1294 apr_size_t off = 0;
1295 const char *sp = "";
1296 apr_bucket *b;
1297
1298 if (bmax > 1) {
1299 if (bb) {
1300 memset(buffer, 0, bmax--);
1301 off += apr_snprintf(buffer+off, bmax-off, "%s(", tag);
1302 for (b = APR_BRIGADE_FIRST(bb);
1303 (bmax > off) && (b != APR_BRIGADE_SENTINEL(bb));
1304 b = APR_BUCKET_NEXT(b)) {
1305
1306 off += h2_util_bucket_print(buffer+off, bmax-off, b, sp);
1307 sp = " ";
1308 }
1309 if (bmax > off) {
1310 off += apr_snprintf(buffer+off, bmax-off, ")%s", sep);
1311 }
1312 }
1313 else {
1314 off += apr_snprintf(buffer+off, bmax-off, "%s(null)%s", tag, sep);
1315 }
1316 }
1317 return off;
1318}
1319
1320apr_status_t h2_append_brigade(apr_bucket_brigade *to,
1321 apr_bucket_brigade *from,

Callers 1

H2_STREAM_OUT_LOGFunction · 0.85

Calls 1

h2_util_bucket_printFunction · 0.85

Tested by

no test coverage detected