v0.1.0
Fast, portable C library for geometry input/output
|
Basic memory block. More...
Data Fields | |
void * | ptr |
Pointer to the beginning of the memory block. More... | |
size_t | size |
Size (in bytes) of the memory block. More... | |
void(* | func_deallocate )(void *ptr) |
Optional pointer on a function that deallocates the memory block beginning at ptr . More... | |
Basic memory block.
gmio_memblock comes with convenient constructors that binds to <stdlib.h>
allocation functions, like gmio_memblock_malloc(), ...
Binding gmio_memblock to some statically-allocated memory is done through gmio_memblock() :
Any gmio_memblock object can be safely freed with gmio_memblock_deallocate()
void(* gmio_memblock::func_deallocate)(void *ptr) |
Optional pointer on a function that deallocates the memory block beginning at ptr
.
void* gmio_memblock::ptr |
Pointer to the beginning of the memory block.
size_t gmio_memblock::size |
Size (in bytes) of the memory block.
Fougue © 2016 | Last Update: Fri Jun 24 2016 |