BOOL stFixedMemInit( PVOID MemoryPool, SIZE MemorySize, SIZE BlockSize );
Address of the memory pool to be initialized.
Total size of the memory pool.
Size of each memory block to be allocated.
This function initializes a memory pool at the specified memory address. This address must subsequently be passed to the stFixedMemAlloc and stFixedMemFree functions to allocate and release memory blocks within this pool. The size of every allocated block is fixed. This function does not set the last error code upon failure. Access to fixed-size memory is not internally synchronized; if thread safety is required, it must be implemented externally.
This function will not be compiled if fixed-size memory management functions are disabled by setting ST_USE_FIXMEM to 0.
| Version: | 1.0 |
|---|---|
| Header file: | ST_FixMem.h (include ST_API.h) |
| See also: | BOOL, FALSE, fixed size memory pool initialization example, memory allocation example, PVOID, SIZE, ST_USE_FIXMEM, stFixedMemAlloc, stFixedMemFree, TRUE |