MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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:

Public Member Functions

 UT_LIST_BASE_NODE_T (dyn_block_t) base
 UT_LIST_NODE_T (dyn_block_t) list

Public Attributes

mem_heap_theap
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 173 of file dyn0dyn.h.

Member Function Documentation

dyn_block_t::UT_LIST_BASE_NODE_T ( dyn_block_t  )

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

dyn_block_t::UT_LIST_NODE_T ( dyn_block_t  )

linear list node: used in all blocks

Member Data Documentation

byte dyn_block_t::data[DYN_ARRAY_DATA_SIZE]

storage for array elements

Definition at line 180 of file dyn0dyn.h.

mem_heap_t* dyn_block_t::heap

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

Definition at line 174 of file dyn0dyn.h.

ulint dyn_block_t::used

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

Definition at line 176 of file dyn0dyn.h.


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