exip
Alpha 0.5.4
|
Implementation of handling memory operations - allocation, deallocation etc. More...
#include "memManagement.h"
#include "hashtable.h"
#include "dynamicArray.h"
#include "sTables.h"
#include "grammars.h"
Go to the source code of this file.
Functions | |
errorCode | initAllocList (AllocList *list) |
Initial setup of an AllocList. More... | |
void * | memManagedAllocate (AllocList *list, size_t size) |
Allocate a memory block with size size and store a copy of the pointer in a linked list for freeing it at the end. More... | |
void | freeAllMem (EXIStream *strm) |
Frees all the managed memory for a particular EXI stream. More... | |
void | freeAllocList (AllocList *list) |
Frees a particular Allocation list. More... | |
Definition in file memManagement.c.
void freeAllMem | ( | EXIStream * | strm) |
It should be called after an error in the processing occur or at the end of the parsing/serializing if the processing is successful. Frees the memory in the allocation list and the hashtables used.
[in,out] | strm | EXI stream for which the allocations were made |
Definition at line 58 of file memManagement.c.
void freeAllocList | ( | AllocList * | list) |
[in,out] | list | Allocation list to be freed |
Definition at line 164 of file memManagement.c.
[in,out] | list | a memory list to be setup |
Definition at line 23 of file memManagement.c.
void* memManagedAllocate | ( | AllocList * | list, |
size_t | size | ||
) |
[in,out] | list | A list storing the memory allocations |
[in] | size | the size of the memory block to be allocated |
Definition at line 35 of file memManagement.c.