MySQL 8.0.40
Source Code Documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
mach0data.cc File Reference

Utilities for converting data from the database file to the machine format. More...

#include "mach0data.h"
#include <stddef.h>

Functions

uint64_t mach_parse_u64_much_compressed (const byte **ptr, const byte *end_ptr)
 Read a 64-bit integer in a much compressed form. More...
 
uint32_t mach_parse_compressed (const byte **ptr, const byte *end_ptr)
 Read a 32-bit integer in a compressed form. More...
 

Detailed Description

Utilities for converting data from the database file to the machine format.

Created 11/28/1995 Heikki Tuuri

Function Documentation

◆ mach_parse_compressed()

uint32_t mach_parse_compressed ( const byte **  ptr,
const byte end_ptr 
)

Read a 32-bit integer in a compressed form.

Parameters
[in,out]ptrpointer to memory from where to read; advanced by the number of bytes consumed, or set NULL if out of space
[in]end_ptrend of the buffer
Returns
unsigned value

◆ mach_parse_u64_much_compressed()

uint64_t mach_parse_u64_much_compressed ( const byte **  ptr,
const byte end_ptr 
)

Read a 64-bit integer in a much compressed form.

Parameters
[in,out]ptrpointer to memory from where to read, advanced by the number of bytes consumed, or set NULL if out of space
[in]end_ptrend of the buffer
Returns
unsigned 64-bit integer