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

Function SaveUint16

src/brpc/policy/http2_rpc_protocol.cpp:100–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;
103 p[1] = v & 0xFF;
104}
105inline void SaveUint32(void* out, uint32_t v) {
106 uint8_t* p = (uint8_t*)out;
107 p[0] = (v >> 24) & 0xFF;

Callers 1

SerializeH2SettingsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected