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

Function LoadUint8

src/brpc/policy/http2_rpc_protocol.cpp:83–87  ·  view source on GitHub ↗

A series of utilities to load numbers from http2 streams.

Source from the content-addressed store, hash-verified

81
82// A series of utilities to load numbers from http2 streams.
83inline uint8_t LoadUint8(butil::IOBufBytesIterator& it) {
84 uint8_t v = *it;
85 ++it;
86 return v;
87}
88inline uint16_t LoadUint16(butil::IOBufBytesIterator& it) {
89 uint16_t v = *it; ++it;
90 v = ((v << 8) | *it); ++it;

Callers 3

ConsumeFrameHeadMethod · 0.85
OnHeadersMethod · 0.85
OnDataMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected