5 * Resizable Array that guarranty that resizes don't change address of
8 * This is implemented as an array of arrays... granularity is the size
12 typedef struct _GOOM_HEAP GoomHeap;
14 /* Constructors / Destructor */
15 GoomHeap *goom_heap_new(void);
16 GoomHeap *goom_heap_new_with_granularity(int granularity);
17 void goom_heap_delete(GoomHeap *_this);
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);
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);