drizzle
C++ MySQL-protocol-compatible database server
Loading...
Searching...
No Matches
row0ext.h
Go to the documentation of this file.
1/*****************************************************************************
2
3Copyright (C) 2006, 2009, Innobase Oy. All Rights Reserved.
4
5This program is free software; you can redistribute it and/or modify it under
6the terms of the GNU General Public License as published by the Free Software
7Foundation; version 2 of the License.
8
9This program is distributed in the hope that it will be useful, but WITHOUT
10ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
13You should have received a copy of the GNU General Public License along with
14this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
15St, Fifth Floor, Boston, MA 02110-1301 USA
16
17*****************************************************************************/
18
19/**************************************************/
25
26#pragma once
27#ifndef row0ext_h
28#define row0ext_h
29
30#include "univ.i"
31#include "row0types.h"
32#include "data0types.h"
33#include "mem0mem.h"
34
35/********************************************************************/
38UNIV_INTERN
39row_ext_t*
41/*===========*/
42 ulint n_ext,
43 const ulint* ext,
47 const dtuple_t* tuple,
53 ulint zip_size,
54 mem_heap_t* heap);
55
56/********************************************************************/
60UNIV_INLINE
61const byte*
63/*===============*/
64 const row_ext_t* ext,
65 ulint i,
66 ulint* len);
68/********************************************************************/
72UNIV_INLINE
73const byte*
75/*===========*/
76 const row_ext_t* ext,
77 ulint col,
81 ulint* len);
83
86 ulint n_ext;
87 const ulint* ext;
88 byte* buf;
89 ulint len[1];
90};
91
92#ifndef UNIV_NONINL
93#include "row0ext.ic"
94#endif
95
96#endif
UNIV_INLINE const byte * row_ext_lookup(const row_ext_t *ext, ulint col, ulint *len)
UNIV_INLINE const byte * row_ext_lookup_ith(const row_ext_t *ext, ulint i, ulint *len)
UNIV_INTERN row_ext_t * row_ext_create(ulint n_ext, const ulint *ext, const dtuple_t *tuple, ulint zip_size, mem_heap_t *heap)
Definition row0ext.cc:75
const ulint * ext
Definition row0ext.h:87
ulint len[1]
Definition row0ext.h:89
byte * buf
Definition row0ext.h:88
ulint n_ext
Definition row0ext.h:86