KVIrc  4.9.2
DeveloperAPIs
Namespaces | Functions
KviMemory.h File Reference

This file contains an internal implementation of the malloc/free functions. More...

#include "kvi_settings.h"
#include <stdlib.h>
#include <string.h>

Go to the source code of this file.

Namespaces

 KviMemory
 

Functions

void * KviMemory::allocate (int size)
 COMPILE_MEMORY_PROFILE. More...
 
void KviMemory::copy (void *dst_ptr, const void *src_ptr, int len)
 Moves len bytes from src_ptr to dst_ptr. More...
 
void KviMemory::free (void *ptr)
 COMPILE_MEMORY_CHECKS. More...
 
void KviMemory::move (void *dst_ptr, const void *src_ptr, int len)
 COMPILE_MEMORY_PROFILE. More...
 
void * KviMemory::reallocate (void *ptr, int size)
 
void KviMemory::set (void *dst_ptr, char c, int len)
 Initializes len bytes of memory starting from dst_ptr to c. More...
 

Detailed Description

This file contains an internal implementation of the malloc/free functions.

Author
Szymon Stefanek If COMPILE_MEMORY_PROFILE is enabled, kvirc will use its internal implementation that includes a memory profiler. If COMPILE_MEMORY_CHECKS is enabled, kvirc will check and report memory exhaustion problems. If none of the previous is enabled, this will just bind the KviMemory and kvi_free functions to the proper functions of the underlaying system.