MCPcopy Create free account
hub / github.com/apache/trafficserver / encode_dynamic_table_size_update

Function encode_dynamic_table_size_update

src/proxy/http2/HPACK.cc:524–534  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

522}
523
524int64_t
525encode_dynamic_table_size_update(uint8_t *buf_start, const uint8_t *buf_end, uint32_t size)
526{
527 buf_start[0] = 0x20;
528 const int64_t len = xpack_encode_integer(buf_start, buf_end, size, 5);
529 if (len == -1) {
530 return -1;
531 }
532
533 return len;
534}
535
536//
537// [RFC 7541] 6.1. Indexed Header Field Representation

Callers 1

Calls 1

xpack_encode_integerFunction · 0.85

Tested by

no test coverage detected