MySQL 9.1.0
Source Code Documentation
array.h File Reference
#include "my_inttypes.h"
#include "mysql/psi/psi_memory.h"

Go to the source code of this file.

Classes

struct  DYNAMIC_ARRAY
 

Macros

#define dynamic_element(array, array_index, type)    ((type)((array)->buffer) + (array_index))
 

Functions

bool my_init_dynamic_array (DYNAMIC_ARRAY *array, PSI_memory_key key, uint element_size, void *init_buffer, uint init_alloc, uint alloc_increment)
 
bool insert_dynamic (DYNAMIC_ARRAY *array, const void *element)
 
void * alloc_dynamic (DYNAMIC_ARRAY *array)
 
void delete_dynamic (DYNAMIC_ARRAY *array)
 

Macro Definition Documentation

◆ dynamic_element

#define dynamic_element (   array,
  array_index,
  type 
)     ((type)((array)->buffer) + (array_index))

Function Documentation

◆ alloc_dynamic()

void * alloc_dynamic ( DYNAMIC_ARRAY array)

◆ delete_dynamic()

void delete_dynamic ( DYNAMIC_ARRAY array)

◆ insert_dynamic()

bool insert_dynamic ( DYNAMIC_ARRAY array,
const void *  element 
)

◆ my_init_dynamic_array()

bool my_init_dynamic_array ( DYNAMIC_ARRAY array,
PSI_memory_key  key,
uint  element_size,
void *  init_buffer,
uint  init_alloc,
uint  alloc_increment 
)