Documentation Project 1

The following table lists macros in this documentation.

This is macro sack::memory::_memcpy_. 
This is macro sack::memory::_memset_. 
Allocates a block of memory of specific size. Debugging information if passed is recorded on the block. 
This is function sack::memory::CStrDupEx. 
This is function sack::memory::DebugDumpHeapMemEx. 
Dumps all tracked heaps. 
A 'safe' release macro. casts the block to the type to release. Makes sure the pointer being released is the type specified. 
Converts from 8 bit char to 16 bit wchar (or no-op if not UNICODE compiled) 
This is function sack::memory::GetHeapMemStatsEx. 
This is function sack::memory::HeapAllocateEx. 
Moves a block of memory from one heap to another. 
This is function sack::memory::HeapPreallocateEx. 
This is function sack::memory::HeapReallocateEx. 
This is function sack::memory::HoldEx. 
This is function sack::memory::MemDupEx. 
does nothing, returns nothing. 
A simple macro to allocate a new single unit of a structure. Adds a typecast automatically to be (type*) so C++ compilation is clean. Does not burden the user with extra typecasts. This, being in definition use means that all other things that are typecast are potentially error prone. Memory is considered uninitialized. 
Allocate a new array of type. 
Allocate sizeof(type). Will invoke some sort of registered initializer 
an advantage of C, can define extra space at end of structure which is allowed to carry extra data, which is unknown by other code room for exploits rock. 
Open a shared memory region. The region may be named with a text string (this does not work under linux platforms, and the name of the file to back the shared region is the sharing point). The region may be backed with a file (and must be if it is to be shared on linux.
If the region exists by name, the region is opened, and a pointer to that region is returned.
If the file exists, the file is opened, and mapped into memory, and a pointer to the file backed memory is returned.
if the file does... more 
This is function sack::memory::PreallocateEx. 
This is function sack::memory::ReallocateEx. 
Releases an allocated block. Memory becomes free to allocate again. If debugging information is passed, the releasing source and line is recorded in the block. (can be used to find code deallocating memory it shouldn't).
This also works with Hold(), and decrements the hold counter. If there are no more holds on the block, then the block is released. 
Reallocates an array of type. 
This is function sack::memory::StrDupEx. 
Copyright (c) 2010. All rights reserved.
What do you think about this topic? Send feedback!