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