GumboAllocatorFunction

The type for an allocator function. Takes the 'userdata' member of the GumboParser struct as its first argument. Semantics should be the same as malloc, i.e. return a block of size_t bytes on success or NULL on failure. Allocating a block of 0 bytes behaves as per malloc.

extern (C)
alias GumboAllocatorFunction = void* function(void* userdata, size_t size)

Meta