96
/*********************************************************//**
97
Reads a dulint in a compressed form if the log record fully contains it.
98
@return pointer to end of the stored field, NULL if not complete */
101
mach_dulint_parse_compressed(
102
/*=========================*/
103
byte* ptr, /*!< in: pointer to buffer from where to read */
104
byte* end_ptr,/*!< in: pointer to end of the buffer */
105
dulint* val) /*!< out: read value */
111
ut_ad(ptr && end_ptr && val);
113
if (end_ptr < ptr + 5) {
118
high = mach_read_compressed(ptr);
120
size = mach_get_compressed_size(high);
124
if (end_ptr < ptr + 4) {
129
low = mach_read_from_4(ptr);
131
*val = ut_dulint_create(high, low);