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

Function Format2CStr

src/brpc/policy/gzip_compress.cpp:29–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27namespace policy {
28
29const char* Format2CStr(google::protobuf::io::GzipOutputStream::Format format) {
30 switch (format) {
31 case google::protobuf::io::GzipOutputStream::GZIP:
32 return "gzip";
33 case google::protobuf::io::GzipOutputStream::ZLIB:
34 return "zlib";
35 default:
36 return "unknown";
37 }
38}
39
40const char* Format2CStr(google::protobuf::io::GzipInputStream::Format format) {
41 switch (format) {

Callers 4

CompressFunction · 0.85
DecompressFunction · 0.85
GzipCompressFunction · 0.85
GzipDecompressBaseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected