libmseed 3.1.3
The miniSEED data format library
|
User-definable memory allocators used by library. More...
Data Structures | |
struct | LIBMSEED_MEMORY |
Functions | |
void * | libmseed_memory_prealloc (void *ptr, size_t size, size_t *currentsize) |
Variables | |
LIBMSEED_MEMORY | libmseed_memory |
size_t | libmseed_prealloc_block_size |
User-definable memory allocators used by library.
The global structure libmseed_memory contains three function pointers that are used for all memory allocation and freeing done by the library.
The following function pointers are available:
By default the system malloc(), realloc(), and free() are used. Equivalent to setting:
struct LIBMSEED_MEMORY |
|
extern |
Internal realloc() wrapper that allocates in libmseed_prealloc_block_size blocks
Preallocation is used by default on Windows and disabled otherwise.
|
extern |
Global memory management function list
|
extern |
Global pre-allocation block size.
When non-zero, memory re-allocations will be increased in blocks of this size. This is useful on platforms where the system realloc() is slow such as Windows.
Default on Windows is 1 MiB, otherwise disabled.
Set to 0 to disable pre-allocation.