v0.2.1
Fast, portable C library for geometry input/output
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Modules
Data Structures | Typedefs | Functions
memblock.h File Reference

Declaration of gmio_memblock and utility functions. More...

Go to the source code of this file.

Data Structures

struct  gmio_memblock
 Basic memory block. More...
 

Typedefs

typedef struct gmio_memblock(* gmio_memblock_constructor_func_t )()
 Typedef for a pointer to a function that creates an allocated mblock. More...
 

Functions

bool gmio_memblock_isnull (const struct gmio_memblock *mblock)
 Returns true if mblock is NULL or points to null/void memory. More...
 
struct gmio_memblock gmio_memblock (void *ptr, size_t size, void(*func_deallocate)(void *))
 Returns an initialized gmio_memblock object. More...
 
struct gmio_memblock gmio_memblock_malloc (size_t size)
 Returns a gmio_memblock object allocated with standard malloc() More...
 
struct gmio_memblock gmio_memblock_calloc (size_t num, size_t size)
 Returns a gmio_memblock object allocated with standard calloc() More...
 
struct gmio_memblock gmio_memblock_realloc (void *ptr, size_t size)
 Returns a gmio_memblock object allocated with standard realloc() More...
 
void gmio_memblock_deallocate (struct gmio_memblock *mblock)
 Safe and convenient call to gmio_memblock::func_deallocate() More...
 
void gmio_memblock_set_default_constructor (gmio_memblock_constructor_func_t ctor)
 Installs a global function to construct gmio_memblock objects. More...
 
gmio_memblock_constructor_func_t gmio_memblock_default_constructor ()
 Returns the currently installed function to construct gmio_memblock objects. More...
 
struct gmio_memblock gmio_memblock_default ()
 Returns a gmio_memblock object created using the function gmio_memblock_default_constructor() More...
 

Detailed Description

Declaration of gmio_memblock and utility functions.

Fougue © 2016