27#ifndef POLARSSL_MEMORY_BUFFER_ALLOC_H
28#define POLARSSL_MEMORY_BUFFER_ALLOC_H
30#if !defined(POLARSSL_CONFIG_FILE)
33#include POLARSSL_CONFIG_FILE
46#if !defined(POLARSSL_MEMORY_ALIGN_MULTIPLE)
47#define POLARSSL_MEMORY_ALIGN_MULTIPLE 4
52#define MEMORY_VERIFY_NONE 0
53#define MEMORY_VERIFY_ALLOC (1 << 0)
54#define MEMORY_VERIFY_FREE (1 << 1)
55#define MEMORY_VERIFY_ALWAYS (MEMORY_VERIFY_ALLOC | MEMORY_VERIFY_FREE)
95#if defined(POLARSSL_MEMORY_DEBUG)
102void memory_buffer_alloc_status(
void );
Configuration options (set of defines)
void memory_buffer_set_verify(int verify)
Determine when the allocator should automatically verify the state of the entire chain of headers / m...
void memory_buffer_alloc_free(void)
Free the mutex for thread-safety and clear remaining memory.
int memory_buffer_alloc_verify(void)
Verifies that all headers in the memory buffer are correct and contain sane values.
int memory_buffer_alloc_init(unsigned char *buf, size_t len)
Initialize use of stack-based memory allocator.