27#ifndef DICT_SDI_DECOMPRESS_H
28#define DICT_SDI_DECOMPRESS_H
54#ifdef UNIV_NO_ERR_MSGS
57 ib::error(ER_IB_ERR_ZLIB_UNCOMPRESS_FAILED)
59 <<
"ZLIB uncompress() failed:"
65#ifdef UNIV_NO_ERR_MSGS
71 <<
"retval = Z_BUF_ERROR";
75#ifdef UNIV_NO_ERR_MSGS
80 <<
"retval = Z_MEM_ERROR";
84#ifdef UNIV_NO_ERR_MSGS
89 <<
"retval = Z_DATA_ERROR";
93#ifdef UNIV_NO_ERR_MSGS
98 <<
"retval = UNKNOWN_ERROR";
#define Z_BUF_ERROR
Definition: azlib.h:170
#define Z_OK
Definition: azlib.h:163
#define Z_DATA_ERROR
Definition: azlib.h:168
#define Z_MEM_ERROR
Definition: azlib.h:169
Decompress SDI record.
Definition: dict0sdi-decompress.h:33
void decompress()
Decompress the SDI and store in the buffer passed.
Definition: dict0sdi-decompress.h:48
uint32_t m_comp_len
Length of Compressed SDI.
Definition: dict0sdi-decompress.h:115
byte * m_uncomp_sdi
Buffer to hold uncompressed SDI.
Definition: dict0sdi-decompress.h:109
Sdi_Decompressor(byte *uncomp_sdi, uint32_t uncomp_len, byte *comp_sdi, uint32_t comp_len)
Definition: dict0sdi-decompress.h:35
uint32_t m_uncomp_len
Length of Outbuf Buffer.
Definition: dict0sdi-decompress.h:111
~Sdi_Decompressor()=default
byte * get_data() const
Definition: dict0sdi-decompress.h:105
byte * m_comp_sdi
Input Compressed SDI.
Definition: dict0sdi-decompress.h:113
The class error is used to emit error messages.
Definition: ut0log.h:229
The class fatal is used to emit an error message and stop the server by crashing it.
Definition: ut0log.h:251
#define UT_LOCATION_HERE
Definition: ut0core.h:46
#define ut_ad(EXPR)
Debug assertion.
Definition: ut0dbg.h:68