MySQL 9.1.0
Source Code Documentation
dyn0types.h
Go to the documentation of this file.
1/*****************************************************************************
2
3Copyright (c) 2013, 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 include/dyn0types.h
29 The dynamically allocated buffer types and constants
30
31 Created 2013-03-16 Sunny Bains
32 *******************************************************/
33
34#ifndef dyn0types_h
35#define dyn0types_h
36
37#include <stdint.h>
38#include <cstddef>
39
40/** Value of dyn_block_t::magic_n */
41constexpr uint32_t DYN_BLOCK_MAGIC_N = 375767;
42
43/** This is the initial 'payload' size of a dynamic array;
44this must be > MLOG_BUF_MARGIN + 30! */
45constexpr uint32_t DYN_ARRAY_DATA_SIZE = 512;
46
47/** Flag for dyn_block_t::used that indicates a full block */
48constexpr uint32_t DYN_BLOCK_FULL_FLAG = 0x1000000UL;
49
50#endif /* dyn0types_h */
constexpr uint32_t DYN_BLOCK_MAGIC_N
Value of dyn_block_t::magic_n.
Definition: dyn0types.h:41
constexpr uint32_t DYN_ARRAY_DATA_SIZE
This is the initial 'payload' size of a dynamic array; this must be > MLOG_BUF_MARGIN + 30!
Definition: dyn0types.h:45
constexpr uint32_t DYN_BLOCK_FULL_FLAG
Flag for dyn_block_t::used that indicates a full block.
Definition: dyn0types.h:48