#include "ktypes.h"
#include "kmemory.h"
Defines | |
| #define | k_malloc(bytes) k_malloc_info (bytes, __K_FILE__, __K_LINE__) |
| Allocates a memory zone with file & line indications. | |
| #define | k_realloc(ptr, bytes) k_realloc_info (ptr, bytes, __K_FILE__, __K_LINE__) |
| Re-allocates a memory zone with file & line indications. | |
| #define | k_free(ptr) |
| Frees a memory zone. | |
| #define | k_free_info(ptr, sFile, iLine) |
| Frees a memory zone. | |
| #define | k_delete(ptr) |
| Deletes a memory zone. | |
Functions | |
| KTL_API KPtr | k_malloc_info (KInt64 bytes, KString file, KInt32 line) |
| Allocates a memory zone with file & line indications. | |
| KTL_API KPtr | k_realloc_info (KPtr ptr, KInt64 bytes, KString file, KInt32 line) |
| Re-allocates a memory zone with file & line indications. | |
| KTL_API void | ktl_free (KPtr pPtr) |
| Frees a memory zone. | |
| KTL_API KPtr | k_memcpy (KPtr dst, KCPtr src, KInt64 bytes) |
| Copies the values from a memory zone to another one. | |
| KTL_API KPtr | k_memset (KPtr ptr, KInt value, KInt64 bytes) |
| Sets bytes of a memory zone to a specified value. | |
| KTL_API KPtr | k_memmove (KPtr dst, KCPtr src, KInt64 bytes) |
| Copies the values from a memory zone to another one. | |
| KTL_API KInt64 | k_bzero (KPtr ptr, KInt64 bytes) |
| Sets all bytes of a memory zone to the value zero. | |
| KTL_API void | k_print_sizeof () |
| Writes to the standard output the size in bytes of all the main types. | |
| KTL_API void | k_pauseIfWin32 () |
| Pauses the main thread. | |
|
|
Value: Deletes a memory zone. Sets the pointer to the memory zone to knull.
|
|
|
Value: Frees a memory zone. If k_init_scan_memory is called before, the memory control must be used. Sets the pointer to the memory zone to knull.
|
|
|
Value: Frees a memory zone. If k_init_scan_memory is called before, the memory control must be used. Sets the pointer to the memory zone to knull.
|
|
|
Allocates a memory zone with file & line indications. If k_init_scan_memory is called before, the memory control must be used
|
|
|
Re-allocates a memory zone with file & line indications. If k_init_scan_memory is called before, the memory control must be used. The k_bzero function must be called on the allocated zone
|
|
||||||||||||
|
Sets all bytes of a memory zone to the value zero. Identical tp k_memset (ptr, 0, bytes);
|
|
||||||||||||||||
|
Allocates a memory zone with file & line indications. Used with k_malloc macro. If k_init_scan_memory is called before, the memory control must be used
|
|
||||||||||||||||
|
Copies the values from a memory zone to another one.
|
|
||||||||||||||||
|
Copies the values from a memory zone to another one. Identical to memmove of stdlib
|
|
||||||||||||||||
|
Sets bytes of a memory zone to a specified value.
|
|
|
Pauses the main thread. This functions has an effect only on Win32 systems, and does nothing on others platforms |
|
||||||||||||||||||||
|
Re-allocates a memory zone with file & line indications. Used with k_realloc macro. If k_init_scan_memory is called before, the memory control must be used. The k_bzero function must be called on the allocated zone
|
|
|
Frees a memory zone. If k_init_scan_memory is called before, the memory control must be used. Sets the pointer to the memory zone to knull.
|
1.3.8