OPTIGA™ Trust M
Host Library Documentation
|
This file provides the prototype declarations of PAL OS MEMORY. More...
#include "pal.h"
Go to the source code of this file.
Functions | |
LIBRARY_EXPORTS void * | pal_os_malloc (uint32_t block_size) |
Allocates a block of memory specified by the block size and return the pointer to it. More... | |
LIBRARY_EXPORTS void * | pal_os_calloc (uint32_t number_of_blocks, uint32_t block_size) |
Allocates a block of memory specified by the block size and return the pointer to it. More... | |
LIBRARY_EXPORTS void | pal_os_free (void *block) |
Frees the block of memory specified by the block pointer. More... | |
LIBRARY_EXPORTS void | pal_os_memcpy (void *p_destination, const void *p_source, uint32_t size) |
Copies data from source to destination. More... | |
LIBRARY_EXPORTS void | pal_os_memset (void *p_buffer, uint32_t value, uint32_t size) |
Sets the buffer with the given value. More... | |
This file provides the prototype declarations of PAL OS MEMORY.
Definition in file optiga/include/optiga/pal/pal_os_memory.h.
LIBRARY_EXPORTS void* pal_os_calloc | ( | uint32_t | number_of_blocks, |
uint32_t | block_size | ||
) |
Allocates a block of memory specified by the block size and return the pointer to it.
[in] | number_of_blocks | Number of block to allocate |
[in] | block_size | Size of the block |
Block | Pointer Memory allocation is successful |
NULL | Memory allocation is not successful |
LIBRARY_EXPORTS void pal_os_free | ( | void * | block | ) |
Frees the block of memory specified by the block pointer.
[in] | block | Pointer to memory block to be freed |
LIBRARY_EXPORTS void* pal_os_malloc | ( | uint32_t | block_size | ) |
Allocates a block of memory specified by the block size and return the pointer to it.
[in] | block_size | Size of the block |
Block | Pointer Memory allocation is successful |
NULL | Memory allocation is not successful |
LIBRARY_EXPORTS void pal_os_memcpy | ( | void * | p_destination, |
const void * | p_source, | ||
uint32_t | size | ||
) |
Copies data from source to destination.
[in] | p_destination | Source to copy the data from |
[in] | p_source | Destination to copy the data to |
[in] | size | Size of the data to copy |
LIBRARY_EXPORTS void pal_os_memset | ( | void * | p_buffer, |
uint32_t | value, | ||
uint32_t | size | ||
) |
Sets the buffer with the given value.
[in] | p_buffer | Pointer to buffer |
[in] | value | Value to be set in the buffer |
[in] | size | Size of the buffer |