MySQL 8.4.2
Source Code Documentation
|
Go to the source code of this file.
Classes | |
struct | mysql_zlib_compress_context |
Compress context information. More... | |
struct | mysql_zstd_compress_context |
Compress context information relating to zstd compression. More... | |
struct | mysql_compress_context |
Compression context information. More... | |
Typedefs | |
typedef struct mysql_zlib_compress_context | mysql_zlib_compress_context |
Compress context information. More... | |
typedef struct ZSTD_CCtx_s | ZSTD_CCtx |
typedef struct ZSTD_DCtx_s | ZSTD_DCtx |
typedef struct mysql_zstd_compress_context | mysql_zstd_compress_context |
Compress context information relating to zstd compression. More... | |
typedef struct mysql_compress_context | mysql_compress_context |
Compression context information. More... | |
Enumerations | |
enum | enum_compression_algorithm { MYSQL_UNCOMPRESSED = 1 , MYSQL_ZLIB , MYSQL_ZSTD , MYSQL_INVALID } |
Functions | |
unsigned int | mysql_default_compression_level (enum enum_compression_algorithm algorithm) |
Get default compression level corresponding to a given compression method. More... | |
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. More... | |
void | mysql_compress_context_deinit (mysql_compress_context *mysql_compress_ctx) |
Deinitialize the compression context allocated. More... | |
typedef struct mysql_compress_context mysql_compress_context |
Compression context information.
It encapsulate the context information based on compression method and presents a generic struct.
typedef struct mysql_zlib_compress_context mysql_zlib_compress_context |
Compress context information.
relating to zlib compression.
typedef struct mysql_zstd_compress_context mysql_zstd_compress_context |
Compress context information relating to zstd compression.
typedef struct ZSTD_CCtx_s ZSTD_CCtx |
typedef struct ZSTD_DCtx_s ZSTD_DCtx |
void mysql_compress_context_deinit | ( | mysql_compress_context * | mysql_compress_ctx | ) |
Deinitialize the compression context allocated.
mysql_compress_ctx | Pointer to Compression context. |
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.
cmp_ctx | Pointer to compression context. |
algorithm | Compression algorithm. |
compression_level | Compression level corresponding to the compression algorithm. |
unsigned int mysql_default_compression_level | ( | enum enum_compression_algorithm | algorithm | ) |
Get default compression level corresponding to a given compression method.
algorithm | Compression Method. Possible values are zlib or zstd. |