GRPC Core
0.10.0.0
|
Go to the source code of this file.
Macros | |
#define | GRPC_COMPRESSION_ALGORITHM_ARG "grpc.compression_algorithm" |
To be used in channel arguments. More... | |
Functions | |
int | grpc_compression_algorithm_parse (const char *name, grpc_compression_algorithm *algorithm) |
Parses name as a grpc_compression_algorithm instance, updating algorithm. More... | |
int | grpc_compression_algorithm_name (grpc_compression_algorithm algorithm, char **name) |
Updates name with the encoding name corresponding to a valid algorithm. More... | |
grpc_compression_level | grpc_compression_level_for_algorithm (grpc_compression_algorithm algorithm) |
Returns the compression level corresponding to algorithm. More... | |
grpc_compression_algorithm | grpc_compression_algorithm_for_level (grpc_compression_level level) |
Returns the compression algorithm corresponding to level. More... | |
#define GRPC_COMPRESSION_ALGORITHM_ARG "grpc.compression_algorithm" |
To be used in channel arguments.
grpc_compression_algorithm grpc_compression_algorithm_for_level | ( | grpc_compression_level | level | ) |
Returns the compression algorithm corresponding to level.
It abort()s for unknown levels .
int grpc_compression_algorithm_name | ( | grpc_compression_algorithm | algorithm, |
char ** | name | ||
) |
Updates name with the encoding name corresponding to a valid algorithm.
Returns 1 upon success, 0 otherwise.
int grpc_compression_algorithm_parse | ( | const char * | name, |
grpc_compression_algorithm * | algorithm | ||
) |
Parses name as a grpc_compression_algorithm instance, updating algorithm.
Returns 1 upon success, 0 otherwise.
grpc_compression_level grpc_compression_level_for_algorithm | ( | grpc_compression_algorithm | algorithm | ) |
Returns the compression level corresponding to algorithm.
It abort()s for unknown algorithms.