MPLAB® Harmony Graphics Suite > Graphics Library > Legato Graphics Library > Legato Interface > f) Memory Functions > leFixedHeap_Init Function
MPLAB® Harmony Graphics Suite
leFixedHeap_Init Function

A fixed heap is a memory storage manager that relies on fixed blocks of data to fulfull allocation requests. Fixed blocks do not suffer from memory fragmentation and fulfill allocation requests faster than a variable heap but often use memory less efficiently.

C
leResult leFixedHeap_Init(
    leFixedHeap* heap, 
    uint32_t size, 
    uint32_t count, 
    uint8_t* data
);
Parameters
Parameters 
Description 
leFixedHeap* heap 
pointer to the heap object 
uint32_t size 
the size a heap block in bytes 
uint32_t count 
the number of blocks in the heap 
uint8_t* data 
pointer to the data buffer to use for the heap 
Returns

leResult

MPLAB® Harmony Graphics Suite