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