kzc_memory_base.hpp File Reference

Memory manager private members. More...

Classes

struct  KzcMemoryManager
 Memory manager. More...
 

Typedefs

typedef kzsError(* KzcMemoryManagerDeletor) (struct KzcMemoryManager *memoryManager)
 Memory manager delete function type definition. More...
 
typedef kzsError(* KzcMemoryAllocator) (const struct KzcMemoryManager *memoryManager, kzSizeT size, void **out_pointer MEMORY_MANAGER_DEBUG_PARAM_PRIVATE(kzString description))
 Memory manager alloc function type definition. More...
 
typedef kzsError(* KzcMemoryDeallocator) (const struct KzcMemoryManager *memoryManager, void *pointer MEMORY_MANAGER_DEBUG_PARAM_PRIVATE(kzString description))
 Memory manager dealloc function type definition. More...
 

Functions

void kzcMemoryManagerInitialize_protected (struct KzcMemoryManager *manager, enum KzcMemoryManagerType type, KzcMemoryManagerDeletor deletor, KzcMemoryAllocator allocator, KzcMemoryDeallocator deallocator, kzSizeT size)
 Initializes a memory manager. More...
 
void kzcMemoryManagerDumpLeaks (struct KzcMemoryManager *manager)
 

Detailed Description

Memory manager private members.

Copyright 2008-2017 by Rightware. All rights reserved.

Typedef Documentation

typedef kzsError(* KzcMemoryManagerDeletor) (struct KzcMemoryManager *memoryManager)

Memory manager delete function type definition.

typedef kzsError(* KzcMemoryAllocator) (const struct KzcMemoryManager *memoryManager, kzSizeT size, void **out_pointer MEMORY_MANAGER_DEBUG_PARAM_PRIVATE(kzString description))

Memory manager alloc function type definition.

typedef kzsError(* KzcMemoryDeallocator) (const struct KzcMemoryManager *memoryManager, void *pointer MEMORY_MANAGER_DEBUG_PARAM_PRIVATE(kzString description))

Memory manager dealloc function type definition.

Function Documentation

void kzcMemoryManagerInitialize_protected ( struct KzcMemoryManager manager,
enum KzcMemoryManagerType  type,
KzcMemoryManagerDeletor  deletor,
KzcMemoryAllocator  allocator,
KzcMemoryDeallocator  deallocator,
kzSizeT  size 
)

Initializes a memory manager.

void kzcMemoryManagerDumpLeaks ( struct KzcMemoryManager manager)