MySQL 9.1.0
Source Code Documentation
|
Compressed page interface. More...
Macros | |
#define | zip_decompress_ic |
NOTE: The functions in this file should only use functions from other files in library. More... | |
#define | page_zip_dir_start_low(page_zip, n_dense) ((page_zip)->data + page_zip_dir_start_offs(page_zip, n_dense)) |
Gets a pointer to the compressed page trailer (the dense page directory), including deleted records (the free list). More... | |
#define | page_zip_dir_start(page_zip) page_zip_dir_start_low(page_zip, page_zip_dir_elems(page_zip)) |
Gets a pointer to the compressed page trailer (the dense page directory), including deleted records (the free list). More... | |
Functions | |
static ulint | page_zip_get_size (const page_zip_des_t *page_zip) |
Determine the size of a compressed page in bytes. More... | |
static bool | page_zip_simple_validate (const page_zip_des_t *page_zip) |
Validate a compressed page descriptor. More... | |
static ulint | page_zip_dir_elems (const page_zip_des_t *page_zip) |
Gets the number of elements in the dense page directory, including deleted records (the free list). More... | |
static ulint | page_zip_dir_size (const page_zip_des_t *page_zip) |
Gets the size of the compressed page trailer (the dense page directory), including deleted records (the free list). More... | |
static ulint | page_zip_dir_get (const page_zip_des_t *page_zip, ulint slot) |
Read a given slot in the dense page directory. More... | |
Variables | |
constexpr uint32_t | PAGE_ZIP_DIR_SLOT_SIZE = 2 |
Size of an compressed page directory entry. More... | |
Compressed page interface.
Created June 2005 by Marko Makela
#define page_zip_dir_start | ( | page_zip | ) | page_zip_dir_start_low(page_zip, page_zip_dir_elems(page_zip)) |
Gets a pointer to the compressed page trailer (the dense page directory), including deleted records (the free list).
[in] | page_zip | compressed page |
#define page_zip_dir_start_low | ( | page_zip, | |
n_dense | |||
) | ((page_zip)->data + page_zip_dir_start_offs(page_zip, n_dense)) |
Gets a pointer to the compressed page trailer (the dense page directory), including deleted records (the free list).
[in] | page_zip | compressed page |
[in] | n_dense | number of entries in the directory |
#define zip_decompress_ic |
NOTE: The functions in this file should only use functions from other files in library.
The code in this file is used to make a library for external tools.
|
inlinestatic |
Gets the number of elements in the dense page directory, including deleted records (the free list).
page_zip | in: compressed page |
|
inlinestatic |
Read a given slot in the dense page directory.
page_zip | in: compressed page |
slot | in: slot (0=first user record) |
|
inlinestatic |
Gets the size of the compressed page trailer (the dense page directory), including deleted records (the free list).
page_zip | in: compressed page |
|
inlinestatic |
Determine the size of a compressed page in bytes.
page_zip | in: compressed page |
|
inlinestatic |
Validate a compressed page descriptor.
page_zip | in: compressed page descriptor |
|
constexpr |
Size of an compressed page directory entry.