summaryrefslogtreecommitdiffstats
path: root/thirdparty/mbedtls/library/memory_buffer_alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'thirdparty/mbedtls/library/memory_buffer_alloc.c')
-rw-r--r--thirdparty/mbedtls/library/memory_buffer_alloc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/thirdparty/mbedtls/library/memory_buffer_alloc.c b/thirdparty/mbedtls/library/memory_buffer_alloc.c
index d6a47ba93d..79b0a8b8fa 100644
--- a/thirdparty/mbedtls/library/memory_buffer_alloc.c
+++ b/thirdparty/mbedtls/library/memory_buffer_alloc.c
@@ -508,6 +508,12 @@ void mbedtls_memory_buffer_alloc_status(void)
}
}
+void mbedtls_memory_buffer_alloc_count_get(size_t *alloc_count, size_t *free_count)
+{
+ *alloc_count = heap.alloc_count;
+ *free_count = heap.free_count;
+}
+
void mbedtls_memory_buffer_alloc_max_get(size_t *max_used, size_t *max_blocks)
{
*max_used = heap.maximum_used;