wolfssl-examples/staticmemory
Devin AI 6aa87008b2 Update scripts to accept wolfSSL directory as argument
Co-Authored-By: jacob@wolfssl.com <jacob@wolfssl.com>
2025-03-04 15:18:28 +00:00
..
memory-bucket-optimizer Update scripts to accept wolfSSL directory as argument 2025-03-04 15:18:28 +00:00
Makefile add debug callback function example 2024-08-06 17:02:58 -06:00
README.md add size calculation example for static memory 2024-08-06 16:36:35 -06:00
debug-callback-example.c add debug callback function example 2024-08-06 17:02:58 -06:00
size-calculation.c add size calculation example for static memory 2024-08-06 16:36:35 -06:00

README.md

Examples of using wolfSSL's simple memory allocator. Enabled with --enable-staticmemory or WOLFSSL_STATIC_MEMORY when building wolfSSL. This is not a feature to reduce memory size!! It in fact uses a little more memory overhead. The staticmemory feature is used to have a simple fixed pool of memory available instead of using a systems malloc/free calls. Helpful in cases where dynamic memory is not allowed.

wolfSSL has support for XMALLOC_USER which could be used to instead map XMALLOC and XFREE to any desired implementation of malloc/free.