Encoder  4.4
VC-5 Sample Encoder
allocator.h
Go to the documentation of this file.
1 
11 #ifndef _ALLOCATOR_H
12 #define _ALLOCATOR_H
13 
20 typedef void *ALLOCATOR;
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
26 void *Alloc(ALLOCATOR *allocator, size_t size);
27 void Free(ALLOCATOR *allocator, void *block);
28 
29 #ifdef __cplusplus
30 }
31 #endif
32 
33 #endif
void * Alloc(ALLOCATOR *allocator, size_t size)
Allocate a block with the specified size.
Definition: allocator.c:32
void * ALLOCATOR
Opaque data type for the default memory allocator.
Definition: allocator.h:20
void Free(ALLOCATOR *allocator, void *block)
Free a block that was allocated by the specified allocator.
Definition: allocator.c:44