stMemoryInit function
BOOL stMemoryInit(
  PVOID MemoryPool,
  SIZE MemorySize

Address of memory pool to be initialized.


Size of the memory.

Return value:

TRUE on success or FALSE on failure. Use stGetLastError function to obtain extended error information.


Function initializes memory pool, for specified memory address. The memory address must be passed to stMemoryAlloc and stMemoryFree functions to allocate memory blocks in this memory.

Memory can be enlarged by defining new areas by stMemoryExpand function. For more information please refer to its description

Function will be not compiled when functions responsible for memory management are disabled, by setting ST_USE_MEMORY for 0.

SpaceShadow documentation