|
exip
Alpha 0.5.4
|
Handles memory operations - allocation, deallocation etc. More...
#include "errorHandle.h"#include "procTypes.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... | |
Except Data Values (Binary data, DateTime etc.), which are freed after the respective ContentHandler is called, all other allocations are freed at the end of the parsing/serializing.
Definition in file memManagement.h.
| 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.
1.8.4