InnoDB Plugin  1.0
Data Fields
dyn_block_t 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_t:
Collaboration graph
[legend]

Data Fields

mem_heap_theap
ulint used
byte data [DYN_ARRAY_DATA_SIZE]
ut_list_base< dyn_block_tbase
ut_list_node< dyn_block_tlist
ulint buf_end
ulint magic_n

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!

Field Documentation

ut_list_base< dyn_block_t > dyn_block_t::base

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

ulint dyn_block_t::buf_end

only in the debug version: if dyn array is opened, this is the buffer end offset, else this is 0

byte dyn_block_t::data[DYN_ARRAY_DATA_SIZE]

storage for array elements

mem_heap_t* dyn_block_t::heap

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

ut_list_node< dyn_block_t > dyn_block_t::list

linear list node: used in all blocks

ulint dyn_block_t::magic_n

magic number (DYN_BLOCK_MAGIC_N)

ulint dyn_block_t::used

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


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