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

Function HeaderAt

src/brpc/details/hpack.cpp:84–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82 int Init(const IndexTableOptions& options);
83
84 const Header* HeaderAt(int index) const {
85 if (BAIDU_UNLIKELY(index < _start_index)) {
86 return NULL;
87 }
88 return _header_queue.bottom(index - _start_index);
89 };
90
91 int GetIndexOfHeader(const HeaderAndHashCode& h) {
92 DCHECK(_need_indexes);

Callers 2

DecodeWithKnownPrefixMethod · 0.85
DecodeMethod · 0.85

Calls 1

bottomMethod · 0.80

Tested by

no test coverage detected