drizzle
C++ MySQL-protocol-compatible database server
Loading...
Searching...
No Matches
dyn_block_struct Struct Reference

A block in a dynamically allocated array. NOTE! Do not access the fields of the struct directly: the definition appears here only for the compiler to know its size! More...

#include <dyn0dyn.h>

Collaboration diagram for dyn_block_struct:
[legend]

Public Member Functions

 UT_LIST_BASE_NODE_T (dyn_block_t) base
 UT_LIST_NODE_T (dyn_block_t) list

Public Attributes

mem_heap_t * heap
ulint used
byte data [DYN_ARRAY_DATA_SIZE]

Detailed Description

A block in a dynamically allocated array. NOTE! Do not access the fields of the struct directly: the definition appears here only for the compiler to know its size!

Definition at line 163 of file dyn0dyn.h.

Member Function Documentation

◆ UT_LIST_BASE_NODE_T()

dyn_block_struct::UT_LIST_BASE_NODE_T ( dyn_block_t )

linear list of dyn blocks: this node is used only in the first block

◆ UT_LIST_NODE_T()

dyn_block_struct::UT_LIST_NODE_T ( dyn_block_t )

linear list node: used in all blocks

Member Data Documentation

◆ data

byte dyn_block_struct::data[DYN_ARRAY_DATA_SIZE]

storage for array elements

Definition at line 169 of file dyn0dyn.h.

◆ heap

mem_heap_t* dyn_block_struct::heap

in the first block this is != NULL if dynamic allocation has been needed

Definition at line 164 of file dyn0dyn.h.

◆ used

ulint dyn_block_struct::used

number of data bytes used in this block; DYN_BLOCK_FULL_FLAG is set when the block becomes full

Definition at line 166 of file dyn0dyn.h.


The documentation for this struct was generated from the following file: