nany
Public Attributes | List of all members
nyallocator_t Struct Reference

Public Attributes

void * userdata
 
void *(* allocate )(struct nyallocator_t *, size_t)
 
void *(* reallocate )(struct nyallocator_t *, void *ptr, size_t oldsize, size_t newsize)
 
void(* deallocate )(struct nyallocator_t *, void *ptr, size_t)
 
volatile size_t reserved_mem0
 
size_t limit_mem_size
 
void(* on_not_enough_memory )(struct nyallocator_t *, nybool_t limit_reached)
 
void(* on_internal_abort )(struct nyallocator_t *)
 
void(* release )(struct nyallocator_t *)
 

Member Data Documentation

§ allocate

void*(* nyallocator_t::allocate) (struct nyallocator_t *, size_t)

Allocates some memory

§ deallocate

void(* nyallocator_t::deallocate) (struct nyallocator_t *, void *ptr, size_t)

free

§ limit_mem_size

size_t nyallocator_t::limit_mem_size

Memory usage limit (in bytes)

§ on_internal_abort

void(* nyallocator_t::on_internal_abort) (struct nyallocator_t *)

event: callback for aborting program execuion

§ on_not_enough_memory

void(* nyallocator_t::on_not_enough_memory) (struct nyallocator_t *, nybool_t limit_reached)

event: not enough memory

§ reallocate

void*(* nyallocator_t::reallocate) (struct nyallocator_t *, void *ptr, size_t oldsize, size_t newsize)

Re-allocate

§ release

void(* nyallocator_t::release) (struct nyallocator_t *)

Flush STDERR

§ reserved_mem0

volatile size_t nyallocator_t::reserved_mem0

Special values that may not be used directly but are here for performance reasons


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