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

Function CompressTypeToCStr

src/brpc/compress.cpp:63–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63const char* CompressTypeToCStr(CompressType type) {
64 if (type == COMPRESS_TYPE_NONE) {
65 return "none";
66 }
67 const CompressHandler* handler = FindCompressHandler(type);
68 return (handler != NULL ? handler->name : "unknown");
69}
70
71void ListCompressHandler(std::vector<CompressHandler>* vec) {
72 vec->clear();

Callers 12

SerializeHttpRequestFunction · 0.85
SendSofaResponseFunction · 0.85
ParseRequestFromIOBufMethod · 0.85
SerializeResponseFunction · 0.85
ProcessRpcRequestFunction · 0.85
ProcessRpcResponseFunction · 0.85
SerializeRpcRequestFunction · 0.85
SendHuluResponseFunction · 0.85
ProcessHuluRequestFunction · 0.85
ProcessHuluResponseFunction · 0.85
ParseRequestFromIOBufMethod · 0.85

Calls 1

FindCompressHandlerFunction · 0.85

Tested by

no test coverage detected