xine-lib 1.2.13-20230125hg15249
|
Go to the source code of this file.
Typedefs | |
typedef struct _GOOM_HEAP | GoomHeap |
Functions | |
GoomHeap * | goom_heap_new (void) |
GoomHeap * | goom_heap_new_with_granularity (int granularity) |
void | goom_heap_delete (GoomHeap *_this) |
void * | goom_heap_malloc (GoomHeap *_this, int nb_bytes) |
void * | goom_heap_malloc_with_alignment (GoomHeap *_this, int nb_bytes, int alignment) |
void * | goom_heap_malloc_with_alignment_prefixed (GoomHeap *_this, int nb_bytes, int alignment, int prefix_bytes) |
typedef struct _GOOM_HEAP GoomHeap |
Resizable Array that guarranty that resizes don't change address of the stored datas.
This is implemented as an array of arrays... granularity is the size of each arrays.
void goom_heap_delete | ( | GoomHeap * | _this | ) |
References _GOOM_HEAP::arrays, and _GOOM_HEAP::number_of_arrays.
Referenced by gsl_free(), and reset_scanner().
void * goom_heap_malloc | ( | GoomHeap * | _this, |
int | nb_bytes ) |
References goom_heap_malloc_with_alignment().
void * goom_heap_malloc_with_alignment | ( | GoomHeap * | _this, |
int | nb_bytes, | ||
int | alignment ) |
References goom_heap_malloc_with_alignment_prefixed().
Referenced by goom_heap_malloc(), and gsl_declare_var().
void * goom_heap_malloc_with_alignment_prefixed | ( | GoomHeap * | _this, |
int | nb_bytes, | ||
int | alignment, | ||
int | prefix_bytes ) |
References align_it(), _GOOM_HEAP::arrays, _GOOM_HEAP::consumed_in_last_array, NULL, _GOOM_HEAP::number_of_arrays, and _GOOM_HEAP::size_of_each_array.
Referenced by goom_heap_malloc_with_alignment(), and gsl_declare_var().
GoomHeap * goom_heap_new | ( | void | ) |
References goom_heap_new_with_granularity().
Referenced by gsl_new(), and reset_scanner().
GoomHeap * goom_heap_new_with_granularity | ( | int | granularity | ) |
References _GOOM_HEAP::arrays, _GOOM_HEAP::consumed_in_last_array, _GOOM_HEAP::number_of_arrays, and _GOOM_HEAP::size_of_each_array.
Referenced by goom_heap_new().