#include <my_global.h>
#include <my_sys.h>
#include <m_string.h>
'defines' |
#define | EXTRA_DEBUG |
#define | TRASH_MEM(X) TRASH(((char*)(X) + ((X)->size-(X)->left)), (X)->left) |
Funciones |
void | init_alloc_root (MEM_ROOT *mem_root, uint block_size, uint pre_alloc_size __attribute__((unused))) |
void | reset_root_defaults (MEM_ROOT *mem_root, uint block_size, uint pre_alloc_size __attribute__((unused))) |
gptr | alloc_root (MEM_ROOT *mem_root, unsigned int Size) |
gptr | multi_alloc_root (MEM_ROOT *root,...) |
void | free_root (MEM_ROOT *root, myf MyFlags) |
void | set_prealloc_root (MEM_ROOT *root, char *ptr) |
char * | strdup_root (MEM_ROOT *root, const char *str) |
char * | strmake_root (MEM_ROOT *root, const char *str, uint len) |
char * | memdup_root (MEM_ROOT *root, const char *str, uint len) |
Documentación de los 'defines'
#define TRASH_MEM |
( |
|
X | ) |
TRASH(((char*)(X) + ((X)->size-(X)->left)), (X)->left) |
Documentación de las funciones
void init_alloc_root |
( |
MEM_ROOT * |
mem_root, |
|
|
uint |
block_size, |
|
|
uint pre_alloc_size |
__attribute__(unused) |
|
) |
| |
char* memdup_root |
( |
MEM_ROOT * |
root, |
|
|
const char * |
str, |
|
|
uint |
len |
|
) |
| |
void reset_root_defaults |
( |
MEM_ROOT * |
mem_root, |
|
|
uint |
block_size, |
|
|
uint pre_alloc_size |
__attribute__(unused) |
|
) |
| |
void set_prealloc_root |
( |
MEM_ROOT * |
root, |
|
|
char * |
ptr |
|
) |
| |
char* strdup_root |
( |
MEM_ROOT * |
root, |
|
|
const char * |
str |
|
) |
| |
char* strmake_root |
( |
MEM_ROOT * |
root, |
|
|
const char * |
str, |
|
|
uint |
len |
|
) |
| |