00001 /***************************************************************************** 00002 00003 Copyright (C) 2006, 2009, Innobase Oy. All Rights Reserved. 00004 00005 This program is free software; you can redistribute it and/or modify it under 00006 the terms of the GNU General Public License as published by the Free Software 00007 Foundation; version 2 of the License. 00008 00009 This program is distributed in the hope that it will be useful, but WITHOUT 00010 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 00011 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. 00012 00013 You should have received a copy of the GNU General Public License along with 00014 this program; if not, write to the Free Software Foundation, Inc., 51 Franklin 00015 St, Fifth Floor, Boston, MA 02110-1301 USA 00016 00017 *****************************************************************************/ 00018 00019 /**************************************************/ 00026 #pragma once 00027 #ifndef row0ext_h 00028 #define row0ext_h 00029 00030 #include "univ.i" 00031 #include "row0types.h" 00032 #include "data0types.h" 00033 #include "mem0mem.h" 00034 00035 /********************************************************************/ 00038 UNIV_INTERN 00039 row_ext_t* 00040 row_ext_create( 00041 /*===========*/ 00042 ulint n_ext, 00043 const ulint* ext, 00047 const dtuple_t* tuple, 00053 ulint zip_size, 00054 mem_heap_t* heap); 00056 /********************************************************************/ 00060 UNIV_INLINE 00061 const byte* 00062 row_ext_lookup_ith( 00063 /*===============*/ 00064 const row_ext_t* ext, 00065 ulint i, 00066 ulint* len); 00068 /********************************************************************/ 00072 UNIV_INLINE 00073 const byte* 00074 row_ext_lookup( 00075 /*===========*/ 00076 const row_ext_t* ext, 00077 ulint col, 00081 ulint* len); 00085 struct row_ext_struct{ 00086 ulint n_ext; 00087 const ulint* ext; 00088 byte* buf; 00089 ulint len[1]; 00090 }; 00091 00092 #ifndef UNIV_NONINL 00093 #include "row0ext.ic" 00094 #endif 00095 00096 #endif