207
byte* b, /*!< in: pointer to 8 bytes where to store */
208
dulint n); /*!< in: dulint integer to be stored */
209
/*******************************************************//**
210
The following function is used to store data in 8 consecutive
211
bytes. We store the most significant byte to the lowest address. */
216
207
byte* b, /*!< in: pointer to 8 bytes where to store */
217
208
ib_uint64_t n); /*!< in: 64-bit integer to be stored */
218
209
/********************************************************//**
219
210
The following function is used to fetch data from 8 consecutive
220
211
bytes. The most significant byte is at the lowest address.
221
@return dulint integer */
212
@return 64-bit integer */
224
215
mach_read_from_8(
225
216
/*=============*/
226
217
const byte* b) /*!< in: pointer to 8 bytes */
227
218
__attribute__((nonnull, pure));
228
/********************************************************//**
229
The following function is used to fetch data from 8 consecutive
230
bytes. The most significant byte is at the lowest address.
231
@return 64-bit integer */
219
/*********************************************************//**
220
Writes a 64-bit integer in a compressed form (5..9 bytes).
221
@return size in bytes */
224
mach_ull_write_compressed(
225
/*======================*/
226
byte* b, /*!< in: pointer to memory where to store */
227
ib_uint64_t n); /*!< in: 64-bit integer to be stored */
228
/*********************************************************//**
229
Returns the size of a 64-bit integer when written in the compressed form.
230
@return compressed size in bytes */
233
mach_ull_get_compressed_size(
234
/*=========================*/
235
ib_uint64_t n); /*!< in: 64-bit integer to be stored */
236
/*********************************************************//**
237
Reads a 64-bit integer in a compressed form.
238
@return the value read */
236
const byte* b) /*!< in: pointer to 8 bytes */
237
__attribute__((nonnull, pure));
238
/*********************************************************//**
239
Writes a dulint in a compressed form (5..9 bytes).
240
@return size in bytes */
243
mach_dulint_write_compressed(
244
/*=========================*/
245
byte* b, /*!< in: pointer to memory where to store */
246
dulint n); /*!< in: dulint integer to be stored */
247
/*********************************************************//**
248
Returns the size of a dulint when written in the compressed form.
249
@return compressed size in bytes */
252
mach_dulint_get_compressed_size(
253
/*============================*/
254
dulint n); /*!< in: dulint integer to be stored */
255
/*********************************************************//**
256
Reads a dulint in a compressed form.
257
@return read dulint */
260
mach_dulint_read_compressed(
261
/*========================*/
241
mach_ull_read_compressed(
242
/*=====================*/
262
243
const byte* b) /*!< in: pointer to memory from where to read */
263
244
__attribute__((nonnull, pure));
264
245
/*********************************************************//**
265
Writes a dulint in a compressed form (1..11 bytes).
246
Writes a 64-bit integer in a compressed form (1..11 bytes).
266
247
@return size in bytes */
269
mach_dulint_write_much_compressed(
250
mach_ull_write_much_compressed(
251
/*===========================*/
252
byte* b, /*!< in: pointer to memory where to store */
253
ib_uint64_t n); /*!< in: 64-bit integer to be stored */
254
/*********************************************************//**
255
Returns the size of a 64-bit integer when written in the compressed form.
256
@return compressed size in bytes */
259
mach_ull_get_much_compressed_size(
270
260
/*==============================*/
271
byte* b, /*!< in: pointer to memory where to store */
272
dulint n); /*!< in: dulint integer to be stored */
273
/*********************************************************//**
274
Returns the size of a dulint when written in the compressed form.
275
@return compressed size in bytes */
278
mach_dulint_get_much_compressed_size(
279
/*=================================*/
280
dulint n) /*!< in: dulint integer to be stored */
261
ib_uint64_t n) /*!< in: 64-bit integer to be stored */
281
262
__attribute__((const));
282
263
/*********************************************************//**
283
Reads a dulint in a compressed form.
284
@return read dulint */
264
Reads a 64-bit integer in a compressed form.
265
@return the value read */
287
mach_dulint_read_much_compressed(
288
/*=============================*/
268
mach_ull_read_much_compressed(
269
/*==========================*/
289
270
const byte* b) /*!< in: pointer to memory from where to read */
290
271
__attribute__((nonnull, pure));
291
272
/*********************************************************//**
299
280
byte* end_ptr,/*!< in: pointer to end of the buffer */
300
281
ulint* val); /*!< out: read value */
301
282
/*********************************************************//**
302
Reads a dulint in a compressed form if the log record fully contains it.
303
@return pointer to end of the stored field, NULL if not complete */
283
Reads a 64-bit integer in a compressed form
284
if the log record fully contains it.
285
@return pointer to end of the stored field, NULL if not complete */
306
mach_dulint_parse_compressed(
307
/*=========================*/
308
byte* ptr, /*!< in: pointer to buffer from where to read */
309
byte* end_ptr,/*!< in: pointer to end of the buffer */
310
dulint* val); /*!< out: read value */
288
mach_ull_parse_compressed(
289
/*======================*/
290
byte* ptr, /*!< in: pointer to buffer from where to read */
291
byte* end_ptr,/*!< in: pointer to end of the buffer */
292
ib_uint64_t* val); /*!< out: read value */
311
293
#ifndef UNIV_HOTBACKUP
312
294
/*********************************************************//**
313
295
Reads a double. It is stored in a little-endian format.