MySQL 9.1.0
Source Code Documentation
array.cc File Reference

Handling of arrays that can grow dynamically. More...

#include <string.h>
#include <sys/types.h>
#include <algorithm>
#include "my_alloc.h"
#include "my_dbug.h"
#include "my_inttypes.h"
#include "my_macros.h"
#include "my_sys.h"
#include "mysql/psi/psi_memory.h"
#include "mysql/service_mysql_alloc.h"
#include "storage/myisam/array.h"

Functions

bool my_init_dynamic_array (DYNAMIC_ARRAY *array, PSI_memory_key psi_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)
 

Detailed Description

Handling of arrays that can grow dynamically.

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  psi_key,
uint  element_size,
void *  init_buffer,
uint  init_alloc,
uint  alloc_increment 
)