~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/innobase/mach/mach0data.c

  • Committer: Monty Taylor
  • Date: 2009-08-12 06:25:19 UTC
  • mto: (1114.1.1 innodb-plugin-merge)
  • mto: This revision was merged to the branch mainline in revision 1183.
  • Revision ID: mordred@inaugust.com-20090812062519-cij02mrrunvnxblt
Tags: innodb-plugin-1.0.4
InnoDB Plugin 1.0.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
*****************************************************************************/
18
18
 
19
 
/**********************************************************************
 
19
/******************************************************************//**
 
20
@file mach/mach0data.c
20
21
Utilities for converting data from the database file
21
22
to the machine format.
22
23
 
29
30
#include "mach0data.ic"
30
31
#endif
31
32
 
32
 
/*************************************************************
33
 
Reads a ulint in a compressed form if the log record fully contains it. */
 
33
/*********************************************************//**
 
34
Reads a ulint in a compressed form if the log record fully contains it.
 
35
@return pointer to end of the stored field, NULL if not complete */
34
36
UNIV_INTERN
35
37
byte*
36
38
mach_parse_compressed(
37
39
/*==================*/
38
 
                        /* out: pointer to end of the stored field, NULL if
39
 
                        not complete */
40
 
        byte*   ptr,    /* in: pointer to buffer from where to read */
41
 
        byte*   end_ptr,/* in: pointer to end of the buffer */
42
 
        ulint*  val)    /* out: read value (< 2^32) */
 
40
        byte*   ptr,    /*!< in: pointer to buffer from where to read */
 
41
        byte*   end_ptr,/*!< in: pointer to end of the buffer */
 
42
        ulint*  val)    /*!< out: read value (< 2^32) */
43
43
{
44
44
        ulint   flag;
45
45
 
93
93
        }
94
94
}
95
95
 
96
 
/*************************************************************
97
 
Reads a dulint in a compressed form if the log record fully contains it. */
 
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 */
98
99
UNIV_INTERN
99
100
byte*
100
101
mach_dulint_parse_compressed(
101
102
/*=========================*/
102
 
                        /* out: pointer to end of the stored field, NULL if
103
 
                        not complete */
104
 
        byte*   ptr,    /* in: pointer to buffer from where to read */
105
 
        byte*   end_ptr,/* in: pointer to end of the buffer */
106
 
        dulint* val)    /* out: read value */
 
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 */
107
106
{
108
107
        ulint   high;
109
108
        ulint   low;