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

Function LoadUint32

src/brpc/policy/http2_rpc_protocol.cpp:93–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91 return v;
92}
93inline uint32_t LoadUint32(butil::IOBufBytesIterator& it) {
94 uint32_t v = *it; ++it;
95 v = ((v << 8) | *it); ++it;
96 v = ((v << 8) | *it); ++it;
97 v = ((v << 8) | *it); ++it;
98 return v;
99}
100inline void SaveUint16(void* out, uint16_t v) {
101 uint8_t* p = (uint8_t*)out;
102 p[0] = (v >> 8) & 0xFF;

Callers 6

ParseH2SettingsFunction · 0.85
ConsumeFrameHeadMethod · 0.85
OnHeadersMethod · 0.85
OnResetStreamMethod · 0.85
OnGoAwayMethod · 0.85
OnWindowUpdateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected