Drizzled Public API Documentation

mach0data.h
Go to the documentation of this file.
1 /*****************************************************************************
2 
3 Copyright (C) 1995, 2009, Innobase Oy. All Rights Reserved.
4 
5 This program is free software; you can redistribute it and/or modify it under
6 the terms of the GNU General Public License as published by the Free Software
7 Foundation; version 2 of the License.
8 
9 This program is distributed in the hope that it will be useful, but WITHOUT
10 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12 
13 You should have received a copy of the GNU General Public License along with
14 this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
15 St, Fifth Floor, Boston, MA 02110-1301 USA
16 
17 *****************************************************************************/
18 
19 /******************************************************************/
27 #pragma once
28 #ifndef mach0data_h
29 #define mach0data_h
30 
31 #include "univ.i"
32 #include "ut0byte.h"
33 
34 /* The data and all fields are always stored in a database file
35 in the same format: ascii, big-endian, ... .
36 All data in the files MUST be accessed using the functions in this
37 module. */
38 
39 /*******************************************************/
41 UNIV_INLINE
42 void
44 /*============*/
45  byte* b,
46  ulint n);
47 /********************************************************/
50 UNIV_INLINE
51 ulint
53 /*=============*/
54  const byte* b)
55  __attribute__((nonnull, pure));
56 /*******************************************************/
59 UNIV_INLINE
60 void
62 /*============*/
63  byte* b,
64  ulint n);
65 /********************************************************/
69 UNIV_INLINE
70 ulint
72 /*=============*/
73  const byte* b)
74  __attribute__((nonnull, pure));
75 
76 /********************************************************/
81 UNIV_INLINE
82 uint16
84 /*==========*/
85  ulint n)
86  __attribute__((const));
87 /********************************************************/
92 UNIV_INLINE
93 ulint
95 /*==========*/
96  uint16 n)
97  __attribute__((const));
98 /*******************************************************/
101 UNIV_INLINE
102 void
104 /*============*/
105  byte* b,
106  ulint n);
107 /********************************************************/
111 UNIV_INLINE
112 ulint
114 /*=============*/
115  const byte* b)
116  __attribute__((nonnull, pure));
117 /*******************************************************/
120 UNIV_INLINE
121 void
123 /*============*/
124  byte* b,
125  ulint n);
126 /********************************************************/
130 UNIV_INLINE
131 ulint
133 /*=============*/
134  const byte* b)
135  __attribute__((nonnull, pure));
136 /*********************************************************/
139 UNIV_INLINE
140 ulint
142 /*==================*/
143  byte* b,
144  ulint n);
145 /*********************************************************/
148 UNIV_INLINE
149 ulint
151 /*=====================*/
152  ulint n)
153  __attribute__((const));
154 /*********************************************************/
157 UNIV_INLINE
158 ulint
160 /*=================*/
161  const byte* b)
162  __attribute__((nonnull, pure));
163 /*******************************************************/
166 UNIV_INLINE
167 void
169 /*============*/
170  byte* b,
171  ib_uint64_t id);
172 /********************************************************/
176 UNIV_INLINE
177 ib_uint64_t
179 /*=============*/
180  const byte* b)
181  __attribute__((nonnull, pure));
182 /*******************************************************/
185 UNIV_INLINE
186 void
188 /*============*/
189  byte* b,
190  ib_uint64_t n);
191 /********************************************************/
195 UNIV_INLINE
196 ib_uint64_t
198 /*=============*/
199  const byte* b)
200  __attribute__((nonnull, pure));
201 /*******************************************************/
204 UNIV_INLINE
205 void
207 /*============*/
208  byte* b,
209  ib_uint64_t n);
210 /********************************************************/
214 UNIV_INLINE
215 ib_uint64_t
217 /*=============*/
218  const byte* b)
219  __attribute__((nonnull, pure));
220 /*********************************************************/
223 UNIV_INLINE
224 ulint
226 /*======================*/
227  byte* b,
228  ib_uint64_t n);
229 /*********************************************************/
232 UNIV_INLINE
233 ulint
235 /*=========================*/
236  ib_uint64_t n);
237 /*********************************************************/
240 UNIV_INLINE
241 ib_uint64_t
243 /*=====================*/
244  const byte* b)
245  __attribute__((nonnull, pure));
246 /*********************************************************/
249 UNIV_INLINE
250 ulint
252 /*===========================*/
253  byte* b,
254  ib_uint64_t n);
255 /*********************************************************/
258 UNIV_INLINE
259 ulint
261 /*==============================*/
262  ib_uint64_t n)
263  __attribute__((const));
264 /*********************************************************/
267 UNIV_INLINE
268 ib_uint64_t
270 /*==========================*/
271  const byte* b)
272  __attribute__((nonnull, pure));
273 /*********************************************************/
276 UNIV_INTERN
277 byte*
279 /*==================*/
280  byte* ptr,
281  byte* end_ptr,
282  ulint* val);
283 /*********************************************************/
287 UNIV_INLINE
288 byte*
290 /*======================*/
291  byte* ptr,
292  byte* end_ptr,
293  ib_uint64_t* val);
294 #ifndef UNIV_HOTBACKUP
295 /*********************************************************/
298 UNIV_INLINE
299 double
301 /*=============*/
302  const byte* b)
303  __attribute__((nonnull, pure));
304 /*********************************************************/
306 UNIV_INLINE
307 void
309 /*==============*/
310  byte* b,
311  double d);
312 /*********************************************************/
315 UNIV_INLINE
316 float
318 /*============*/
319  const byte* b)
320  __attribute__((nonnull, pure));
321 /*********************************************************/
323 UNIV_INLINE
324 void
326 /*=============*/
327  byte* b,
328  float d);
329 /*********************************************************/
332 UNIV_INLINE
333 ulint
335 /*===========================*/
336  const byte* buf,
337  ulint buf_size)
338  __attribute__((nonnull, pure));
339 /*********************************************************/
341 UNIV_INLINE
342 void
344 /*==========================*/
345  byte* dest,
346  ulint dest_size,
347  ulint n);
348 /*********************************************************/
351 UNIV_INLINE
352 ulint
354 /*===========================*/
355  const byte* buf)
356  __attribute__((nonnull, pure));
357 /*********************************************************/
359 UNIV_INLINE
360 void
362 /*==========================*/
363  byte* dest,
364  ulint n);
366 /*********************************************************/
370 UNIV_INLINE
371 ullint
373 /*===============*/
374  const byte* src,
375  ulint len,
376  ibool unsigned_type);
377 #endif /* !UNIV_HOTBACKUP */
378 
379 #ifndef UNIV_NONINL
380 #include "mach0data.ic"
381 #endif
382 
383 #endif