Loading...
Searching...
No Matches
ULAllocator

#include <Ultralight/platform/Allocator.h>

Overview

User-defined allocator interface.

Precondition
This API is only available in the Pro edition when the UL_ENABLE_ALLOCATOR_OVERRIDE build option is enabled.

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.

See also
ulAllocator

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)
 

Member Data Documentation

◆ aligned_free

void(* aligned_free) (void *address)

◆ aligned_malloc

void *(* aligned_malloc) (size_t bytes, size_t alignment)

◆ aligned_realloc

void *(* aligned_realloc) (void *address, size_t bytes, size_t alignment)

◆ free

void(* free) (void *address)

◆ get_size_estimate

size_t(* get_size_estimate) (void *address)

◆ malloc

void *(* malloc) (size_t bytes)

◆ realloc

void *(* realloc) (void *address, size_t bytes)

The documentation for this struct was generated from the following file: