Givaro
Static Public Member Functions
GivMMRefCount Class Reference

Memory management with reference counter on allocated data. More...

#include <givaromm.h>

Static Public Member Functions

static void * allocate (const size_t s)
 
static void * resize (void *p, const size_t oldsize, const size_t newsize)
 
static void desallocate (void *p, const size_t=0)
 
static void * assign (void **dest, void *src)
 
static int incrc (void *p)
 
static int decrc (void *p)
 
static int getrc (void *p)
 

Detailed Description

Memory management with reference counter on allocated data.

The memory manager uses the BlocFreeList data structure and stores the refcounter in the field data[0]

Member Function Documentation

◆ allocate()

static void* allocate ( const size_t  s)
inlinestatic

◆ resize()

void * resize ( void *  p,
const size_t  oldsize,
const size_t  newsize 
)
static

◆ desallocate()

static void desallocate ( void *  p,
const  size_t = 0 
)
inlinestatic

◆ assign()

static void* assign ( void **  dest,
void *  src 
)
inlinestatic

◆ incrc()

static int incrc ( void *  p)
inlinestatic

◆ decrc()

static int decrc ( void *  p)
inlinestatic

◆ getrc()

static int getrc ( void *  p)
inlinestatic

The documentation for this class was generated from the following files: