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

Function ChecksumTypeToCStr

src/brpc/checksum.cpp:60–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60const char* ChecksumTypeToCStr(ChecksumType type) {
61 if (type == CHECKSUM_TYPE_NONE) {
62 return "none";
63 }
64 const ChecksumHandler* handler = FindChecksumHandler(type);
65 return (handler != NULL ? handler->name : "unknown");
66}
67
68void ListChecksumHandler(std::vector<ChecksumHandler>* vec) {
69 vec->clear();

Callers 4

SerializeResponseFunction · 0.85
ProcessRpcRequestFunction · 0.85
ProcessRpcResponseFunction · 0.85
SerializeRpcRequestFunction · 0.85

Calls 1

FindChecksumHandlerFunction · 0.85

Tested by

no test coverage detected