OPTIGA™ Trust M
Host Library Documentation
optiga/include/optiga/pal/pal_os_memory.h
Go to the documentation of this file.
1 
39 #ifndef _PAL_OS_MEMORY_H_
40 #define _PAL_OS_MEMORY_H_
41 
42 #ifdef __cplusplus
43 extern "C" {
44 #endif
45 
46 #include "pal.h"
47 
48 
68 LIBRARY_EXPORTS void * pal_os_malloc(uint32_t block_size);
69 
90 LIBRARY_EXPORTS void * pal_os_calloc(uint32_t number_of_blocks , uint32_t block_size);
91 
109 LIBRARY_EXPORTS void pal_os_free(void * block);
110 
130 LIBRARY_EXPORTS void pal_os_memcpy(void * p_destination, const void * p_source, uint32_t size);
131 
151 LIBRARY_EXPORTS void pal_os_memset(void * p_buffer, uint32_t value, uint32_t size);
152 
153 #ifdef __cplusplus
154 }
155 #endif
156 
157 #endif /* _PAL_OS_MEMORY_H_ */
158 
pal_os_calloc
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.
pal_os_malloc
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.
pal_os_memset
LIBRARY_EXPORTS void pal_os_memset(void *p_buffer, uint32_t value, uint32_t size)
Sets the buffer with the given value.
pal_os_memcpy
LIBRARY_EXPORTS void pal_os_memcpy(void *p_destination, const void *p_source, uint32_t size)
Copies data from source to destination.
pal_os_free
LIBRARY_EXPORTS void pal_os_free(void *block)
Frees the block of memory specified by the block pointer.
pal.h
This file provides the prototype declarations of platform abstraction layer.