MySQL 8.4.3
Source Code Documentation
thr_malloc.cc File Reference
#include "sql/thr_malloc.h"
#include <string.h>
#include <sys/types.h>
#include <algorithm>
#include "my_alloc.h"
#include "my_macros.h"
#include "my_sys.h"
#include "mysql/strings/m_ctype.h"
#include "sql/mysqld.h"
#include "sql/psi_memory_key.h"
#include "sql_string.h"

Functions

void sql_alloc_error_handler (void)
 
void init_sql_alloc (PSI_memory_key key, MEM_ROOT *mem_root, size_t block_size)
 
void * sql_calloc (size_t size)
 
char * sql_strdup (const char *str)
 
char * sql_strmake (const char *str, size_t len)
 
void * sql_memdup (const void *ptr, size_t len)
 
char * sql_strmake_with_convert (const char *str, size_t arg_length, const CHARSET_INFO *from_cs, size_t max_res_length, const CHARSET_INFO *to_cs, size_t *result_length)
 

Function Documentation

◆ init_sql_alloc()

void init_sql_alloc ( PSI_memory_key  key,
MEM_ROOT mem_root,
size_t  block_size 
)

◆ sql_alloc_error_handler()

void sql_alloc_error_handler ( void  )

◆ sql_calloc()

void * sql_calloc ( size_t  size)

◆ sql_memdup()

void * sql_memdup ( const void *  ptr,
size_t  len 
)

◆ sql_strdup()

char * sql_strdup ( const char *  str)

◆ sql_strmake()

char * sql_strmake ( const char *  str,
size_t  len 
)

◆ sql_strmake_with_convert()

char * sql_strmake_with_convert ( const char *  str,
size_t  arg_length,
const CHARSET_INFO from_cs,
size_t  max_res_length,
const CHARSET_INFO to_cs,
size_t *  result_length 
)