GRPC Core
0.11.0.0
|
Functions | |
int | grpc_compression_algorithm_parse (const char *name, size_t name_length, grpc_compression_algorithm *algorithm) |
Parses the first name_length bytes of 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_algorithm | grpc_compression_algorithm_for_level (grpc_compression_level level) |
Returns the compression algorithm corresponding to level. 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.
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, |
size_t | name_length, | ||
grpc_compression_algorithm * | algorithm | ||
) |
Parses the first name_length bytes of 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.