QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
opennurbs_memory.h File Reference

Go to the source code of this file.

Classes

struct  tagON_MEMORY_POOL
 

Macros

#define ontcsdup   onstrdup
 

Typedefs

typedef int(* ON_memory_error_handler) (int)
 
typedef struct tagON_MEMORY_POOL ON_MEMORY_POOL
 

Functions

ON_DECL void ON_CompactMemoryPool (ON_MEMORY_POOL *)
 
ON_DECL ON_MEMORY_POOLON_CreateMemoryPool (void)
 
ON_DECL void ON_DestroyMemoryPool (ON_MEMORY_POOL *)
 
ON_DECL ON_MEMORY_POOLON_MainMemoryPool (void)
 
ON_DECL ON_memory_error_handler ON_memory_error_register_handler (ON_memory_error_handler)
 
ON_DECL void ON_MemoryManagerBegin (void)
 
ON_DECL void ON_MemoryManagerEnd (void)
 
ON_DECL void ON_SetWorkerMemoryPool (ON_MEMORY_POOL *)
 
ON_DECL ON_MEMORY_POOLON_WorkerMemoryPool (void)
 
ON_DECL void * oncalloc (size_t, size_t)
 
ON_DECL void * oncalloc_from_pool (ON_MEMORY_POOL *, size_t, size_t)
 
ON_DECL void onfree (void *)
 
ON_DECL void * onmalloc (size_t)
 
ON_DECL void * onmalloc_from_pool (ON_MEMORY_POOL *, size_t)
 
ON_DECL unsigned char * onmbsdup (const unsigned char *)
 
ON_DECL void * onmemdup (const void *, size_t)
 
ON_DECL size_t onmemoryusecount (size_t *malloc_count, size_t *realloc_count, size_t *free_count, size_t *pool_count)
 
ON_DECL size_t onmsize (const void *)
 
ON_DECL void * onrealloc (void *, size_t)
 
ON_DECL void * onrealloc_from_pool (ON_MEMORY_POOL *, void *, size_t)
 
ON_DECL char * onstrdup (const char *)
 

Macro Definition Documentation

◆ ontcsdup

#define ontcsdup   onstrdup

Typedef Documentation

◆ ON_memory_error_handler

typedef int(* ON_memory_error_handler) (int)

◆ ON_MEMORY_POOL

Function Documentation

◆ ON_CompactMemoryPool()

ON_DECL void ON_CompactMemoryPool ( ON_MEMORY_POOL * )

◆ ON_CreateMemoryPool()

ON_DECL ON_MEMORY_POOL * ON_CreateMemoryPool ( void )

◆ ON_DestroyMemoryPool()

ON_DECL void ON_DestroyMemoryPool ( ON_MEMORY_POOL * )

◆ ON_MainMemoryPool()

ON_DECL ON_MEMORY_POOL * ON_MainMemoryPool ( void )

◆ ON_memory_error_register_handler()

ON_DECL ON_memory_error_handler ON_memory_error_register_handler ( ON_memory_error_handler )

◆ ON_MemoryManagerBegin()

ON_DECL void ON_MemoryManagerBegin ( void )

◆ ON_MemoryManagerEnd()

ON_DECL void ON_MemoryManagerEnd ( void )

◆ ON_SetWorkerMemoryPool()

ON_DECL void ON_SetWorkerMemoryPool ( ON_MEMORY_POOL * )

◆ ON_WorkerMemoryPool()

ON_DECL ON_MEMORY_POOL * ON_WorkerMemoryPool ( void )

◆ oncalloc()

ON_DECL void * oncalloc ( size_t ,
size_t  )

◆ oncalloc_from_pool()

ON_DECL void * oncalloc_from_pool ( ON_MEMORY_POOL * ,
size_t ,
size_t  )

◆ onfree()

ON_DECL void onfree ( void * )

◆ onmalloc()

ON_DECL void * onmalloc ( size_t )

◆ onmalloc_from_pool()

ON_DECL void * onmalloc_from_pool ( ON_MEMORY_POOL * ,
size_t  )

◆ onmbsdup()

ON_DECL unsigned char * onmbsdup ( const unsigned char * )

◆ onmemdup()

ON_DECL void * onmemdup ( const void * ,
size_t  )

◆ onmemoryusecount()

ON_DECL size_t onmemoryusecount ( size_t * malloc_count,
size_t * realloc_count,
size_t * free_count,
size_t * pool_count )

◆ onmsize()

ON_DECL size_t onmsize ( const void * )

◆ onrealloc()

ON_DECL void * onrealloc ( void * ,
size_t  )

◆ onrealloc_from_pool()

ON_DECL void * onrealloc_from_pool ( ON_MEMORY_POOL * ,
void * ,
size_t  )

◆ onstrdup()

ON_DECL char * onstrdup ( const char * )