Drizzled Public API Documentation

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>

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

Member Function Documentation

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

dyn_block_struct::UT_LIST_NODE_T ( dyn_block_t  )

linear list node: used in all blocks

Member Data Documentation

byte dyn_block_struct::data[DYN_ARRAY_DATA_SIZE]

storage for array elements

Definition at line 170 of file dyn0dyn.h.

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.

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: