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. */
207
216
byte* b, /*!< in: pointer to 8 bytes where to store */
208
217
ib_uint64_t n); /*!< in: 64-bit integer to be stored */
209
218
/********************************************************//**
210
219
The following function is used to fetch data from 8 consecutive
211
220
bytes. The most significant byte is at the lowest address.
221
@return dulint integer */
226
const byte* b) /*!< in: pointer to 8 bytes */
227
__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.
212
231
@return 64-bit integer */
217
236
const byte* b) /*!< in: pointer to 8 bytes */
218
237
__attribute__((nonnull, pure));
219
238
/*********************************************************//**
220
Writes a 64-bit integer in a compressed form (5..9 bytes).
239
Writes a dulint in a compressed form (5..9 bytes).
221
240
@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(
243
mach_dulint_write_compressed(
234
244
/*=========================*/
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 */
241
mach_ull_read_compressed(
242
/*=====================*/
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
/*========================*/
243
262
const byte* b) /*!< in: pointer to memory from where to read */
244
263
__attribute__((nonnull, pure));
245
264
/*********************************************************//**
246
Writes a 64-bit integer in a compressed form (1..11 bytes).
265
Writes a dulint in a compressed form (1..11 bytes).
247
266
@return size in bytes */
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(
269
mach_dulint_write_much_compressed(
260
270
/*==============================*/
261
ib_uint64_t n) /*!< in: 64-bit integer to be stored */
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 */
262
281
__attribute__((const));
263
282
/*********************************************************//**
264
Reads a 64-bit integer in a compressed form.
265
@return the value read */
283
Reads a dulint in a compressed form.
284
@return read dulint */
268
mach_ull_read_much_compressed(
269
/*==========================*/
287
mach_dulint_read_much_compressed(
288
/*=============================*/
270
289
const byte* b) /*!< in: pointer to memory from where to read */
271
290
__attribute__((nonnull, pure));
272
291
/*********************************************************//**
280
299
byte* end_ptr,/*!< in: pointer to end of the buffer */
281
300
ulint* val); /*!< out: read value */
282
301
/*********************************************************//**
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 */
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 */
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 */
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 */
293
311
#ifndef UNIV_HOTBACKUP
294
312
/*********************************************************//**
295
313
Reads a double. It is stored in a little-endian format.