19 #ifndef GRPC_COMPRESSION_H 20 #define GRPC_COMPRESSION_H GRPCAPI void grpc_compression_options_init(grpc_compression_options *opts)
GRPCAPI int grpc_compression_algorithm_name(grpc_compression_algorithm algorithm, const char **name)
Updates name with the encoding name corresponding to a valid algorithm.
Definition: compression_types.h:79
GRPCAPI grpc_compression_algorithm grpc_compression_algorithm_for_level(grpc_compression_level level, uint32_t accepted_encodings)
Returns the compression algorithm corresponding to level for the compression algorithms encoded in th...
GRPCAPI void grpc_compression_options_enable_algorithm(grpc_compression_options *opts, grpc_compression_algorithm algorithm)
Mark algorithm as enabled in opts.
A grpc_slice s, if initialized, represents the byte range s.bytes[0..s.length-1]. ...
Definition: slice.h:60
grpc_compression_level
Compression levels allow a party with knowledge of its peer's accepted encodings to request compressi...
Definition: compression_types.h:71
GRPCAPI void grpc_compression_options_disable_algorithm(grpc_compression_options *opts, grpc_compression_algorithm algorithm)
Mark algorithm as disabled in opts.
grpc_compression_algorithm
The various compression algorithms supported by gRPC (not sorted by compression level) ...
Definition: compression_types.h:57
GRPCAPI int grpc_compression_options_is_algorithm_enabled(const grpc_compression_options *opts, grpc_compression_algorithm algorithm)
Returns true if algorithm is marked as enabled in opts.
GRPCAPI int grpc_compression_algorithm_is_stream(grpc_compression_algorithm algorithm)
Return if an algorithm is stream compression algorithm.
GRPCAPI int grpc_compression_algorithm_parse(grpc_slice value, grpc_compression_algorithm *algorithm)
Parses the slice as a grpc_compression_algorithm instance and updating algorithm. ...
GRPCAPI int grpc_compression_algorithm_is_message(grpc_compression_algorithm algorithm)
Return if an algorithm is message compression algorithm.