19 #ifndef GRPC_COMPRESSION_H
20 #define GRPC_COMPRESSION_H
67 uint32_t accepted_stream_encodings);
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:114
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.
GRPCAPI grpc_stream_compression_algorithm grpc_stream_compression_algorithm_for_level(grpc_stream_compression_level level, uint32_t accepted_stream_encodings)
Returns the stream compression algorithm corresponding to level for the compression algorithms encode...
grpc_stream_compression_level
Compression levels for stream compression algorithms.
Definition: compression_types.h:106
GRPCAPI int grpc_stream_compression_algorithm_name(grpc_stream_compression_algorithm algorithm, const char **name)
Updates name with the encoding name corresponding to a valid algorithm.
A grpc_slice s, if initialized, represents the byte range s.bytes[0..s.length-1]. ...
Definition: slice.h:80
GRPCAPI int grpc_compression_options_is_stream_compression_algorithm_enabled(const grpc_compression_options *opts, grpc_stream_compression_algorithm algorithm)
Returns true if algorithm is marked as enabled in opts.
grpc_compression_level
Compression levels allow a party with knowledge of its peer's accepted encodings to request compressi...
Definition: compression_types.h:97
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.
Definition: compression_types.h:78
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.
int grpc_stream_compression_algorithm_parse(grpc_slice name, grpc_stream_compression_algorithm *algorithm)
Parses the slice as a grpc_stream_compression_algorithm instance and updating 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. ...
grpc_stream_compression_algorithm
Stream compresssion algorithms supported by gRPC.
Definition: compression_types.h:87