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

Function ProtocolTypeToString

src/brpc/protocol.cpp:191–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189}
190
191const char* ProtocolTypeToString(ProtocolType type) {
192 // Force init of s_protocol_name.
193 GlobalInitializeOrDie();
194
195 const Protocol* p = FindProtocol(type);
196 if (p != NULL) {
197 return p->name;
198 }
199 return "unknown";
200}
201
202BUTIL_FORCE_INLINE bool ParsePbFromZeroCopyStreamInlined(
203 google::protobuf::Message* msg,

Callers 1

nameMethod · 0.85

Calls 2

GlobalInitializeOrDieFunction · 0.85
FindProtocolFunction · 0.85

Tested by

no test coverage detected