MySQL 8.0.32
Source Code Documentation
buf.h
Go to the documentation of this file.
1/*****************************************************************************
2
3Copyright (c) 1995, 2022, Oracle and/or its affiliates.
4
5This program is free software; you can redistribute it and/or modify it under
6the terms of the GNU General Public License, version 2.0, as published by the
7Free Software Foundation.
8
9This program is also distributed with certain software (including but not
10limited to OpenSSL) that is licensed under separate terms, as designated in a
11particular file or component or in included license documentation. The authors
12of MySQL hereby grant you an additional permission to link the program and
13your derivative works with the separately licensed software that they have
14included with MySQL.
15
16This program is distributed in the hope that it will be useful, but WITHOUT
17ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
18FOR A PARTICULAR PURPOSE. See the GNU General Public License, version 2.0,
19for more details.
20
21You should have received a copy of the GNU General Public License along with
22this program; if not, write to the Free Software Foundation, Inc.,
2351 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
24
25*****************************************************************************/
26
27/** @file buf/buf.h
28 The database buffer pool high-level routines
29
30 Created 11/5/1995 Heikki Tuuri
31 *******************************************************/
32
33#ifndef buf_h
34#define buf_h
35
36#include "univ.i"
37
38#include "page0size.h"
39
40/** Checks if a page contains only zeroes.
41@param[in] read_buf database page
42@param[in] page_size page size
43@return true if page is filled with zeroes */
44bool buf_page_is_zeroes(const byte *read_buf, const page_size_t &page_size);
45#endif
bool buf_page_is_zeroes(const byte *read_buf, const page_size_t &page_size)
Checks if a page contains only zeroes.
Definition: buf.cc:47
Page size descriptor.
Definition: page0size.h:49
A class describing a page size.
Version control for database, common definitions, and include files.