Debian Codegraph @

storage/innobase/include/fil0pagecompress.h

raw symbols SCIP
1 /*****************************************************************************
2
3 Copyright (C) 2013, 2021, MariaDB Corporation.
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.,
15 51 Franklin St, Fifth Floor, Boston, MA 02110-1335 USA
16
17 *****************************************************************************/
18
19 #ifndef fil0pagecompress_h
20 #define fil0pagecompress_hcxx . . $ `storage/innobase/include/fil0pagecompress.h:20:9`!
21
22 #include "fsp0fsp.h"cxx . . $ `<file>/storage/innobase/include/fsp0fsp.h`/
23
24 /******************************************************************//**
25 @file include/fil0pagecompress.h
26 Helper functions for extracting/storing page compression and
27 atomic writes information to table space.
28
29 Created 11/12/2013 Jan Lindström [email protected]
30 ***********************************************************************/
31
32 /** Compress a page_compressed page before writing to a data file.
33 @param[in] buf page to be compressed
34 @param[out] out_buf compressed page
35 @param[in] flags tablespace flags
36 @param[in] block_size file system block size
37 @param[in] encrypted whether the page will be subsequently encrypted
38 @return actual length of compressed page
39 @retval 0 if the page was not compressed */
40 ulintcxx . . $ ulint# fil_page_compresscxx . . $ fil_page_compress(e590dd88d99f642c).(
41 const bytecxx . . $ byte#* buf,
42 bytecxx . . $ byte#* out_buf,
43 uint32_tcxx . . $ uint32_t# flags,
44 ulintcxx . . $ ulint# block_size,
45 bool encrypted)
46 MY_ATTRIBUTEcxx . . $ `storage/innobase/include/univ.i:162:11`!((nonnull, warn_unused_result));
47
48 /** Decompress a page that may be subject to page_compressed compression.
49 @param[in,out] tmp_buf temporary buffer (of innodb_page_size)
50 @param[in,out] buf compressed page buffer
51 @param[in] flags tablespace flags
52 @return size of the compressed data
53 @retval 0 if decompression failed
54 @retval srv_page_size if the page was not compressed */
55 ulintcxx . . $ ulint# fil_page_decompresscxx . . $ fil_page_decompress(1cc0ebb49202f872).(bytecxx . . $ byte# *tmp_buf, bytecxx . . $ byte# *buf, uint32_tcxx . . $ uint32_t# flags)
56 MY_ATTRIBUTEcxx . . $ `storage/innobase/include/univ.i:162:11`!((nonnull, warn_unused_result));
57 #endif