MoSync 3.3
tlsf.h File Reference

Two Levels Segregate Fit memory allocator. More...

#include "ma.h"

Functions

size_t init_memory_pool (size_t, void *)
size_t get_used_size (void *)
size_t get_max_size (void *)
void destroy_memory_pool (void *)
size_t add_new_area (void *, size_t, void *)
void * malloc_ex (size_t, void *)
void free_ex (void *, void *)
void * realloc_ex (void *, size_t, void *)
void * calloc_ex (size_t, size_t, void *)
void * tlsf_malloc (size_t size)
void tlsf_free (void *ptr)
void * tlsf_realloc (void *ptr, size_t size)
void * tlsf_calloc (size_t nelem, size_t elem_size)
size_t tlsf_block_size (void *ptr)

Detailed Description

Two Levels Segregate Fit memory allocator.

Author:
Miguel Masmano Tello

Function Documentation

size_t init_memory_pool ( size_t  ,
void *   
)
size_t get_used_size ( void *  )
size_t get_max_size ( void *  )
void destroy_memory_pool ( void *  )
size_t add_new_area ( void *  ,
size_t  ,
void *   
)
void* malloc_ex ( size_t  ,
void *   
)
void free_ex ( void *  ,
void *   
)
void* realloc_ex ( void *  ,
size_t  ,
void *   
)
void* calloc_ex ( size_t  ,
size_t  ,
void *   
)
void* tlsf_malloc ( size_t  size)
void tlsf_free ( void *  ptr)
void* tlsf_realloc ( void *  ptr,
size_t  size 
)
void* tlsf_calloc ( size_t  nelem,
size_t  elem_size 
)
size_t tlsf_block_size ( void *  ptr)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines