stMemoryInit function
Declaration:
BOOL stMemoryInit(
  PVOID MemoryPool,
  SIZE MemorySize
);
Parameters:
MemoryPool

Address of memory pool to be initialized.

MemorySize

Size of the memory.

Return value:

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

Description:

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