MySQL 8.4.0
Source Code Documentation
azlib.h File Reference
#include <zlib.h>
#include "my_dir.h"
#include "my_io.h"

Go to the source code of this file.

Classes

struct  azio_stream
 

Macros

#define AZMETA_BUFFER_SIZE
 
#define AZHEADER_SIZE   29
 
#define AZ_MAGIC_POS   0
 
#define AZ_VERSION_POS   1
 
#define AZ_MINOR_VERSION_POS   2
 
#define AZ_BLOCK_POS   3
 
#define AZ_STRATEGY_POS   4
 
#define AZ_FRM_POS   5
 
#define AZ_FRM_LENGTH_POS   9
 
#define AZ_META_POS   13
 
#define AZ_META_LENGTH_POS   17
 
#define AZ_START_POS   21
 
#define AZ_ROW_POS   29
 
#define AZ_FLUSH_POS   37
 
#define AZ_CHECK_POS   45
 
#define AZ_AUTOINCREMENT_POS   53
 
#define AZ_LONGEST_POS   61
 
#define AZ_SHORTEST_POS   65
 
#define AZ_COMMENT_POS   69
 
#define AZ_COMMENT_LENGTH_POS   73
 
#define AZ_DIRTY_POS   77
 
#define AZ_STATE_CLEAN   0
 
#define AZ_STATE_DIRTY   1
 
#define AZ_STATE_SAVED   2
 
#define AZ_STATE_CRASHED   3
 
#define Z_NO_FLUSH   0
 
#define Z_PARTIAL_FLUSH   1 /* will be removed, use Z_SYNC_FLUSH instead */
 
#define Z_SYNC_FLUSH   2
 
#define Z_FULL_FLUSH   3
 
#define Z_FINISH   4
 
#define Z_BLOCK   5
 
#define Z_OK   0
 
#define Z_STREAM_END   1
 
#define Z_NEED_DICT   2
 
#define Z_ERRNO   (-1)
 
#define Z_STREAM_ERROR   (-2)
 
#define Z_DATA_ERROR   (-3)
 
#define Z_MEM_ERROR   (-4)
 
#define Z_BUF_ERROR   (-5)
 
#define Z_VERSION_ERROR   (-6)
 
#define Z_NO_COMPRESSION   0
 
#define Z_BEST_SPEED   1
 
#define Z_BEST_COMPRESSION   9
 
#define Z_DEFAULT_COMPRESSION   (-1)
 
#define Z_FILTERED   1
 
#define Z_HUFFMAN_ONLY   2
 
#define Z_RLE   3
 
#define Z_FIXED   4
 
#define Z_DEFAULT_STRATEGY   0
 
#define Z_BINARY   0
 
#define Z_TEXT   1
 
#define Z_ASCII   Z_TEXT /* for compatibility with 1.2.2 and earlier */
 
#define Z_UNKNOWN   2
 
#define Z_DEFLATED   8
 
#define Z_NULL   0 /* for initializing zalloc, zfree, opaque */
 
#define AZ_BUFSIZE_READ   32768
 
#define AZ_BUFSIZE_WRITE   16384
 

Typedefs

typedef struct azio_stream azio_stream
 

Functions

int azopen (azio_stream *s, const char *path, int Flags)
 
int azdopen (azio_stream *s, File fd, int Flags)
 
size_t azread (azio_stream *s, voidp buf, size_t len, int *error)
 
unsigned int azwrite (azio_stream *s, const voidp buf, unsigned int len)
 
int azflush (azio_stream *file, int flush)
 
my_off_t azseek (azio_stream *file, my_off_t offset, int whence)
 
int azrewind (azio_stream *file)
 
my_off_t aztell (azio_stream *file)
 
int azclose (azio_stream *file)
 
int azwrite_frm (azio_stream *s, char *blob, size_t length)
 
int azread_frm (azio_stream *s, char *blob)
 
int azwrite_comment (azio_stream *s, char *blob, size_t length)
 
int azread_comment (azio_stream *s, char *blob)
 

Macro Definition Documentation

◆ AZ_AUTOINCREMENT_POS

#define AZ_AUTOINCREMENT_POS   53

◆ AZ_BLOCK_POS

#define AZ_BLOCK_POS   3

◆ AZ_BUFSIZE_READ

#define AZ_BUFSIZE_READ   32768

◆ AZ_BUFSIZE_WRITE

#define AZ_BUFSIZE_WRITE   16384

◆ AZ_CHECK_POS

#define AZ_CHECK_POS   45

◆ AZ_COMMENT_LENGTH_POS

#define AZ_COMMENT_LENGTH_POS   73

◆ AZ_COMMENT_POS

#define AZ_COMMENT_POS   69

◆ AZ_DIRTY_POS

#define AZ_DIRTY_POS   77

◆ AZ_FLUSH_POS

#define AZ_FLUSH_POS   37

◆ AZ_FRM_LENGTH_POS

#define AZ_FRM_LENGTH_POS   9

◆ AZ_FRM_POS

#define AZ_FRM_POS   5

◆ AZ_LONGEST_POS

#define AZ_LONGEST_POS   61

◆ AZ_MAGIC_POS

#define AZ_MAGIC_POS   0

◆ AZ_META_LENGTH_POS

#define AZ_META_LENGTH_POS   17

◆ AZ_META_POS

#define AZ_META_POS   13

◆ AZ_MINOR_VERSION_POS

#define AZ_MINOR_VERSION_POS   2

◆ AZ_ROW_POS

#define AZ_ROW_POS   29

◆ AZ_SHORTEST_POS

#define AZ_SHORTEST_POS   65

◆ AZ_START_POS

#define AZ_START_POS   21

◆ AZ_STATE_CLEAN

#define AZ_STATE_CLEAN   0

◆ AZ_STATE_CRASHED

#define AZ_STATE_CRASHED   3

◆ AZ_STATE_DIRTY

#define AZ_STATE_DIRTY   1

◆ AZ_STATE_SAVED

#define AZ_STATE_SAVED   2

◆ AZ_STRATEGY_POS

#define AZ_STRATEGY_POS   4

◆ AZ_VERSION_POS

#define AZ_VERSION_POS   1

◆ AZHEADER_SIZE

#define AZHEADER_SIZE   29

◆ AZMETA_BUFFER_SIZE

#define AZMETA_BUFFER_SIZE
Value:
sizeof(unsigned long long) + sizeof(unsigned long long) + \
sizeof(unsigned long long) + sizeof(unsigned long long) + \
sizeof(unsigned int) + sizeof(unsigned int) + sizeof(unsigned int) + \
sizeof(unsigned int) + sizeof(unsigned char)

◆ Z_ASCII

#define Z_ASCII   Z_TEXT /* for compatibility with 1.2.2 and earlier */

◆ Z_BEST_COMPRESSION

#define Z_BEST_COMPRESSION   9

◆ Z_BEST_SPEED

#define Z_BEST_SPEED   1

◆ Z_BINARY

#define Z_BINARY   0

◆ Z_BLOCK

#define Z_BLOCK   5

◆ Z_BUF_ERROR

#define Z_BUF_ERROR   (-5)

◆ Z_DATA_ERROR

#define Z_DATA_ERROR   (-3)

◆ Z_DEFAULT_COMPRESSION

#define Z_DEFAULT_COMPRESSION   (-1)

◆ Z_DEFAULT_STRATEGY

#define Z_DEFAULT_STRATEGY   0

◆ Z_DEFLATED

#define Z_DEFLATED   8

◆ Z_ERRNO

#define Z_ERRNO   (-1)

◆ Z_FILTERED

#define Z_FILTERED   1

◆ Z_FINISH

#define Z_FINISH   4

◆ Z_FIXED

#define Z_FIXED   4

◆ Z_FULL_FLUSH

#define Z_FULL_FLUSH   3

◆ Z_HUFFMAN_ONLY

#define Z_HUFFMAN_ONLY   2

◆ Z_MEM_ERROR

#define Z_MEM_ERROR   (-4)

◆ Z_NEED_DICT

#define Z_NEED_DICT   2

◆ Z_NO_COMPRESSION

#define Z_NO_COMPRESSION   0

◆ Z_NO_FLUSH

#define Z_NO_FLUSH   0

◆ Z_NULL

#define Z_NULL   0 /* for initializing zalloc, zfree, opaque */

◆ Z_OK

#define Z_OK   0

◆ Z_PARTIAL_FLUSH

#define Z_PARTIAL_FLUSH   1 /* will be removed, use Z_SYNC_FLUSH instead */

◆ Z_RLE

#define Z_RLE   3

◆ Z_STREAM_END

#define Z_STREAM_END   1

◆ Z_STREAM_ERROR

#define Z_STREAM_ERROR   (-2)

◆ Z_SYNC_FLUSH

#define Z_SYNC_FLUSH   2

◆ Z_TEXT

#define Z_TEXT   1

◆ Z_UNKNOWN

#define Z_UNKNOWN   2

◆ Z_VERSION_ERROR

#define Z_VERSION_ERROR   (-6)

Typedef Documentation

◆ azio_stream

typedef struct azio_stream azio_stream

Function Documentation

◆ azclose()

int azclose ( azio_stream file)

◆ azdopen()

int azdopen ( azio_stream s,
File  fd,
int  Flags 
)

◆ azflush()

int azflush ( azio_stream file,
int  flush 
)

◆ azopen()

int azopen ( azio_stream s,
const char *  path,
int  Flags 
)

◆ azread()

size_t azread ( azio_stream s,
voidp  buf,
size_t  len,
int *  error 
)

◆ azread_comment()

int azread_comment ( azio_stream s,
char *  blob 
)

◆ azread_frm()

int azread_frm ( azio_stream s,
char *  blob 
)

◆ azrewind()

int azrewind ( azio_stream file)

◆ azseek()

my_off_t azseek ( azio_stream file,
my_off_t  offset,
int  whence 
)

◆ aztell()

my_off_t aztell ( azio_stream file)

◆ azwrite()

unsigned int azwrite ( azio_stream s,
const voidp  buf,
unsigned int  len 
)

◆ azwrite_comment()

int azwrite_comment ( azio_stream s,
char *  blob,
size_t  length 
)

◆ azwrite_frm()

int azwrite_frm ( azio_stream s,
char *  blob,
size_t  length 
)