MCPcopy Create free account
hub / github.com/apache/brpc / HeaderSize

Function HeaderSize

src/brpc/details/hpack.cpp:117–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115 int end_index() const { return start_index() + _header_queue.size(); }
116
117 static inline size_t HeaderSize(const Header& h) {
118 // https://tools.ietf.org/html/rfc7541#section-4.1
119 return h.name.size() + h.value.size() + 32;
120 }
121
122 void PopHeader() {
123 DCHECK(!empty());

Callers 2

PopHeaderFunction · 0.85
AddHeaderFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected