24#ifndef MY_COMPRESS_INCLUDED
25#define MY_COMPRESS_INCLUDED
106 unsigned int compression_level);
unsigned int mysql_default_compression_level(enum enum_compression_algorithm algorithm)
Get default compression level corresponding to a given compression method.
Definition: my_compress.cc:351
struct mysql_zlib_compress_context mysql_zlib_compress_context
Compress context information.
struct ZSTD_CCtx_s ZSTD_CCtx
Definition: my_compress.h:46
struct ZSTD_DCtx_s ZSTD_DCtx
Definition: my_compress.h:47
void mysql_compress_context_init(mysql_compress_context *cmp_ctx, enum enum_compression_algorithm algorithm, unsigned int compression_level)
Initialize a compress context object to be associated with a NET object.
Definition: my_compress.cc:59
enum_compression_algorithm
Definition: my_compress.h:28
@ MYSQL_ZSTD
Definition: my_compress.h:31
@ MYSQL_UNCOMPRESSED
Definition: my_compress.h:29
@ MYSQL_ZLIB
Definition: my_compress.h:30
@ MYSQL_INVALID
Definition: my_compress.h:32
void mysql_compress_context_deinit(mysql_compress_context *mysql_compress_ctx)
Deinitialize the compression context allocated.
Definition: my_compress.cc:79
struct mysql_compress_context mysql_compress_context
Compression context information.
struct mysql_zstd_compress_context mysql_zstd_compress_context
Compress context information relating to zstd compression.
Compression context information.
Definition: my_compress.h:74
union mysql_compress_context::@2 u
mysql_zstd_compress_context zstd_ctx
Context information of zstd.
Definition: my_compress.h:78
mysql_zlib_compress_context zlib_ctx
Context information of zlib.
Definition: my_compress.h:77
enum enum_compression_algorithm algorithm
Compression algorithm name.
Definition: my_compress.h:75
Compress context information.
Definition: my_compress.h:39
unsigned int compression_level
Compression level to use in zlib compression.
Definition: my_compress.h:43
Compress context information relating to zstd compression.
Definition: my_compress.h:53
unsigned int compression_level
Compression level to use in zstd compression.
Definition: my_compress.h:65
ZSTD_CCtx * cctx
Pointer to compressor context.
Definition: my_compress.h:57
ZSTD_DCtx * dctx
Pointer to decompressor context.
Definition: my_compress.h:61