Allocator

sfetch_allocator_t

Used in sfetch_desc_t to provide custom memory-alloc and -free functions to sokol_fetch.h. If memory management should be overridden, both the alloc and free function must be provided (e.g. it's not valid to override one function but not the other)

Members

Variables

alloc_fn
void* function(size_t, void*) alloc_fn;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
free_fn
void function(void*, void*) free_fn;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
user_data
void* user_data;
Undocumented in source.

Meta