Coconut Framework  beta
Classes | Functions
CNPool.h File Reference

Define CNPool data structure. More...

#include "CNForwarders.h"
#include <stdint.h>
#include <string.h>

Go to the source code of this file.

Classes

struct  CNPool
 Pool of variable data. More...
 

Functions

void CNInitPool (struct CNPool *dst)
 Initialize CNPool context. More...
 
void * CNAllocateDataToPool (struct CNPool *pool, size_t size)
 Allocate data in the CNPool. More...
 
void CNDestroyPool (struct CNPool *dst)
 Release context in CNPool. More...
 
void CNProfileOfPool (struct CNMemoryProfile *dst, const struct CNPool *pool)
 Get memory profile of memory pool. More...
 

Detailed Description

Define CNPool data structure.

Copyright
Copyright (C) 2012 Steel Wheels Project

Function Documentation

void CNInitPool ( struct CNPool dst)

Initialize CNPool context.

Parameters
dstDestination object
void* CNAllocateDataToPool ( struct CNPool pool,
size_t  size 
)

Allocate data in the CNPool.

Returns
Allocated data
Parameters
poolDestination pool
sizeSize of data
void CNDestroyPool ( struct CNPool dst)

Release context in CNPool.

Parameters
dstDestination pool
void CNProfileOfPool ( struct CNMemoryProfile dst,
const struct CNPool pool 
)

Get memory profile of memory pool.

Parameters
dstDestination profile
poolSource memory pool