xine-lib  1.2.10
goomsl_heap.h
Go to the documentation of this file.
1 #ifndef GOOMSL_HEAP
2 #define GOOMSL_HEAP
3 
12 typedef struct _GOOM_HEAP GoomHeap;
13 
14 /* Constructors / Destructor */
15 GoomHeap *goom_heap_new(void);
17 void goom_heap_delete(GoomHeap *_this);
18 
19 /* This method behaves like malloc. */
20 void *goom_heap_malloc(GoomHeap *_this, int nb_bytes);
21 /* This adds an alignment constraint. */
22 void *goom_heap_malloc_with_alignment(GoomHeap *_this, int nb_bytes, int alignment);
23 
24 /* Returns a pointeur on the bytes... prefix is before */
25 void *goom_heap_malloc_with_alignment_prefixed(GoomHeap *_this, int nb_bytes,
26  int alignment, int prefix_bytes);
27 
28 #endif
29 
goomsl_heap.h
goom_heap_new
GoomHeap * goom_heap_new(void)
Definition: goomsl_heap.c:18
_GOOM_HEAP::number_of_arrays
int number_of_arrays
Definition: goomsl_heap.c:12
goom_heap_malloc
void * goom_heap_malloc(GoomHeap *_this, int nb_bytes)
Definition: goomsl_heap.c:107
goom_heap_new_with_granularity
GoomHeap * goom_heap_new_with_granularity(int granularity)
Definition: goomsl_heap.c:23
goom_heap_new
GoomHeap * goom_heap_new(void)
Definition: goomsl_heap.c:18
align_it
static void align_it(GoomHeap *_this, int alignment)
Definition: goomsl_heap.c:44
_GOOM_HEAP::arrays
void ** arrays
Definition: goomsl_heap.c:11
goom_heap_new_with_granularity
GoomHeap * goom_heap_new_with_granularity(int granularity)
Definition: goomsl_heap.c:23
goom_heap_malloc_with_alignment
void * goom_heap_malloc_with_alignment(GoomHeap *_this, int nb_bytes, int alignment)
Definition: goomsl_heap.c:102
NULL
NULL
Definition: xine_plugin.c:78
goom_heap_malloc
void * goom_heap_malloc(GoomHeap *_this, int nb_bytes)
Definition: goomsl_heap.c:107
_GOOM_HEAP::size_of_each_array
int size_of_each_array
Definition: goomsl_heap.c:13
goom_heap_malloc_with_alignment
void * goom_heap_malloc_with_alignment(GoomHeap *_this, int nb_bytes, int alignment)
Definition: goomsl_heap.c:102
_GOOM_HEAP::consumed_in_last_array
int consumed_in_last_array
Definition: goomsl_heap.c:14
goom_heap_delete
void goom_heap_delete(GoomHeap *_this)
Definition: goomsl_heap.c:34
goom_heap_malloc_with_alignment_prefixed
void * goom_heap_malloc_with_alignment_prefixed(GoomHeap *_this, int nb_bytes, int alignment, int prefix_bytes)
Definition: goomsl_heap.c:56
config.h
_GOOM_HEAP
Definition: goomsl_heap.c:10
goom_heap_delete
void goom_heap_delete(GoomHeap *_this)
Definition: goomsl_heap.c:34
goom_heap_malloc_with_alignment_prefixed
void * goom_heap_malloc_with_alignment_prefixed(GoomHeap *_this, int nb_bytes, int alignment, int prefix_bytes)
Definition: goomsl_heap.c:56