microui  1.1.1
microui
Macros | Functions
LLUI_DISPLAY_HEAP_impl.c File Reference

This MicroUI images heap allocator replaces the default allocator embedded in the MicroUI Graphics Engine. It is using a best fit allocator and provides some additional APIs to retrieve the heap information: total space, free space, number of blocks allocated. More...

#include "microui_heap.h"
#include "BESTFIT_ALLOCATOR.h"

Go to the source code of this file.

Macros

#define BESTFITALLOCATOR_HEADER_SIZE   (68)
 
#define BESTFITALLOCATOR_BLOCK_SIZE(block)   ((*(uint32_t*)((block)-sizeof(uint32_t))) & 0x7ffffff)
 

Functions

uint32_t MICROUI_HEAP_total_space (void)
 
uint32_t MICROUI_HEAP_free_space (void)
 
uint32_t MICROUI_HEAP_number_of_allocated_blocks (void)
 
void LLUI_DISPLAY_IMPL_image_heap_initialize (uint8_t *heap_start, uint8_t *heap_limit)
 
uint8_t * LLUI_DISPLAY_IMPL_image_heap_allocate (uint32_t size)
 
void LLUI_DISPLAY_IMPL_image_heap_free (uint8_t *block)
 

Detailed Description

This MicroUI images heap allocator replaces the default allocator embedded in the MicroUI Graphics Engine. It is using a best fit allocator and provides some additional APIs to retrieve the heap information: total space, free space, number of blocks allocated.

See also
LLUI_DISPLAY_impl.h file comment
Author
MicroEJ Developer Team
Version
1.1.1
Date
27 April 2022
Since
MicroEJ UI Pack 13.1.0

Definition in file LLUI_DISPLAY_HEAP_impl.c.