piojo-0.9
 All Classes Functions Variables Typedefs Enumerations Enumerator Groups
Piojo Alloc

Classes

struct  piojo_alloc_if
 

Functions

void * piojo_alloc_def_alloc (size_t size)
 
void * piojo_alloc_def_realloc (const void *ptr, size_t size)
 
void piojo_alloc_def_free (const void *ptr)
 

Variables

piojo_alloc_if piojo_alloc_default
 

Detailed Description

Piojo Alloc/Free implementation.

Function Documentation

void* piojo_alloc_def_alloc ( size_t  size)

Default alloc. Calls malloc().

Parameters
[in]sizeNumber of bytes to allocate.
Returns
Pointer to allocated memory.
void piojo_alloc_def_free ( const void *  ptr)

Default free. Calls free().

Parameters
[in]ptrPointer to allocated memory.
void* piojo_alloc_def_realloc ( const void *  ptr,
size_t  size 
)

Default realloc. Calls realloc().

Parameters
[in]ptrPointer to allocated memory.
[in]sizeNumber of bytes to reallocate.
Returns
Pointer to reallocated memory.

Variable Documentation

piojo_alloc_if piojo_alloc_default

Default allocator