Ultralight C++ API 1.4.0
|
#include <Ultralight/platform/Allocator.h>
User-defined allocator interface.
The library uses this to allocate memory. You can override the default allocator functions by setting the ulAllocator object with your own functions.
This should be done before calling any other library functions.
Public Attributes | |
void *(* | malloc )(size_t bytes) |
void *(* | realloc )(void *address, size_t bytes) |
void(* | free )(void *address) |
void *(* | aligned_malloc )(size_t bytes, size_t alignment) |
void *(* | aligned_realloc )(void *address, size_t bytes, size_t alignment) |
void(* | aligned_free )(void *address) |
size_t(* | get_size_estimate )(void *address) |
void(* aligned_free) (void *address) |
void *(* aligned_malloc) (size_t bytes, size_t alignment) |
void *(* aligned_realloc) (void *address, size_t bytes, size_t alignment) |
void(* free) (void *address) |
size_t(* get_size_estimate) (void *address) |
void *(* malloc) (size_t bytes) |
void *(* realloc) (void *address, size_t bytes) |