Functions | |
| NANOEXT void * | nosMemAlloc (UINT_t size) |
| NANOEXT void | nosMemFree (void *p) |
| NANOEXT void * | nosMemRealloc (void *memblock, UINT_t size) |
| NANOEXT void | nosMemSet (void *buf, char val, UINT_t count) |
| NANOEXT void | nosMemCopy (void *dst, void *src, UINT_t count) |
The nano layer supplies a set of memory management functions. pico]OS functions are thread save, thus pico]OS can replace the memory allocation functions of a runtime library that was not designed for a multitasking environment.
|
|
Allocate memory from the heap. This function allocates a block of memory from the heap. The function is thread save, thus multiple threads can access the heap without corrupting it.
|
|
||||||||||||||||
|
Copy a block of memory. This function works like the memcpy function from the C runtime library.
|
|
|
Free a block of memory to the heap. This function is the counterpart to nosMemAlloc.
|
|
||||||||||||
|
Reallocate a block of memory. Sometimes it is necessary to increase or decrease the size of a memory block on the heap. This function works like the usual realloc(), it is optimized to keep the heap clean and unfragmented.
|
|
||||||||||||||||
|
Fill a block of memory with a special character. This function works like the memset function from the C runtime library.
|
1.4.6-NO