Mbed OS Reference
Loading...
Searching...
No Matches
memory_buffer_alloc.h File Reference

Buffer-based memory allocator. More...

#include "mbedtls/config.h"
#include <stddef.h>

Go to the source code of this file.

Macros

SECTION: Module settings

The configuration options you can set for this module are in this section.

Either change them in config.h or define them on the compiler command line.

#define MBEDTLS_MEMORY_ALIGN_MULTIPLE   4
 Align on multiples of this value. More...
 

Functions

void mbedtls_memory_buffer_alloc_init (unsigned char *buf, size_t len)
 Initialize use of stack-based memory allocator. More...
 
void mbedtls_memory_buffer_alloc_free (void)
 Free the mutex for thread-safety and clear remaining memory. More...
 
void mbedtls_memory_buffer_set_verify (int verify)
 Determine when the allocator should automatically verify the state of the entire chain of headers / meta-data. More...
 
int mbedtls_memory_buffer_alloc_verify (void)
 Verifies that all headers in the memory buffer are correct and contain sane values. More...
 

Detailed Description

Buffer-based memory allocator.

Definition in file memory_buffer_alloc.h.