Pseudo ramasse-miette (garbage collector)
- *get_new_obj(int size, int id);
- *resize_obj(void *oldobj, int new_size);
- *get_new_obj_set(int size, int id);
- obj_mem_set(void *obj);
- free_exept_obj(void *obj);
- free_by_id(int id);
- free_me_all();
- free_me_all_secure();
- get_new_obj() alloue size octets, et renvoie un pointeur sur la mémoire allouée.
- resize_obj() modifie la taille du bloc de mémoire pointé par oldobj pour l'amener à une taille de new_size octets. Renvoie un pointeur sur la mémoire allouée.
- get_new_obj_set() alloue size octets, et renvoie un pointeur sur la mémoire allouée. Cette zone est remplie avec des zéros.
- obj_mem_set() remplie la zone de memoire pointer par obj avec des zéros.
- free_exept_obj() libère l'espace mémoire pointé par obj.
- free_by_id() libère l'espace mémoire de toute les pointeurs qui on pour id id.
- free_me_all() libère tout les allocations memoires faites par get_new_obj(), get_new_obj_set() ou resize_obj().
- free_me_all_secure() meme chose que free_me_all mais remplie la zone de zeros avant de libèrer la memoire.