···342342const char* buflib_get_name(struct buflib_context *ctx, int handle);
343343344344/**
345345- * Prints an overview of all current allocations with the help
346346- * of the passed printer helper
347347- *
348348- * This walks only the handle table and prints only valid allocations
349349- *
350350- * Only available if BUFLIB_DEBUG_BLOCKS is defined
351351- */
352352-void buflib_print_allocs(struct buflib_context *ctx, void (*print)(int, const char*));
353353-354354-/**
355355- * Prints an overview of all blocks in the buflib buffer, allocated
356356- * or unallocated, with the help of the passed printer helper
357357- *
358358- * This walks the entire buffer and prints unallocated space also.
359359- * The output is also different from buflib_print_allocs().
360360- *
361361- * Only available if BUFLIB_DEBUG_BLOCKS is defined
362362- */
363363-void buflib_print_blocks(struct buflib_context *ctx, void (*print)(int, const char*));
364364-365365-/**
366345 * Gets the number of blocks in the entire buffer, allocated or unallocated
367346 *
368347 * Only available if BUFLIB_DEBUG_BLOCK_SIGNLE is defined
-4
firmware/include/core_alloc.h
···2525/* DO NOT ADD wrappers for buflib_buffer_out/in. They do not call
2626 * the move callbacks and are therefore unsafe in the core */
27272828-#ifdef BUFLIB_DEBUG_BLOCKS
2929-void core_print_allocs(void (*print)(const char*));
3030-void core_print_blocks(void (*print)(const char*));
3131-#endif
3228#ifdef BUFLIB_DEBUG_BLOCK_SINGLE
3329int core_get_num_blocks(void);
3430void core_print_block_at(int block_num, char* buf, size_t bufsize);