Main Page | Data Structures | File List | Data Fields | Globals | Related Pages

kmemory.h File Reference

Memory functions used only in KToolLib. More...

#include "ktypes.h"

Functions

KTL_API void k_print_scan_memory ()
 Writes the memory usage in the standard output.
KTL_API KBool k_init_scan_memory ()
 Initializes the control of memory.
KTL_API KBool k_stop_scan_memory ()
 Stops the control of the memory.
KTL_API void km_print_memory ()
 Writes the memory usage of memory control in the standard output.
KTL_API void k_print_memory ()
 Writes the memory usage.
KTL_API KBool k_del_memory_zone (KCPtr zone, KString file, KInt32 line)
 Checks if the memory zone to be deleted is correctly allocated and update the memory control.In K_DEBUG mode, this function prints an error if it appears. Used only with k_free macro.


Detailed Description

Memory functions used only in KToolLib.

Version:
KToolLib-1.0
Author:
Fabien Gallot
Date:
18/03/2009
Note:
Copyright © 2008-2010 iKlax Media SAS (www.iklaxmedia.com). All rights reserved.

Function Documentation

KTL_API KBool k_del_memory_zone KCPtr  zone,
KString  file,
KInt32  line
 

Checks if the memory zone to be deleted is correctly allocated and update the memory control.In K_DEBUG mode, this function prints an error if it appears. Used only with k_free macro.

Parameters:
zone the memory zone to be checked
file the file name where k_free is called
line the line number where k_free is called
Returns:
ktrue if memory is allocated otherwise kfalse

KTL_API KBool k_init_scan_memory  ) 
 

Initializes the control of memory.

Returns:
ktrue

KTL_API KBool k_stop_scan_memory  ) 
 

Stops the control of the memory.

Returns:
ktrue


Generated on Tue Mar 9 10:49:30 2010 for iKlax Tools Library (KToolLib) by doxygen 1.3.8