stack
stack - maintain a stack of chunks.
.
Return an empty RIFFIOChunkStack.
RIFFIOChunkStack *
RIFFIOChunkStackNew(void)
NULL on failure
The newly created RIFFIOChunkStack must be freed with
RIFFIOChunkStackDelete()
.
Free memory allocated to a RIFFIOChunkStack.
void
RIFFIOChunkStackDelete(RIFFIOChunkStack *pstack)
Return true if a RIFFIOChunkStack is empty.
int
RIFFIOChunkStackIsEmpty(RIFFIOChunkStack *pstack)
Peek at top of the stack without popping.
RIFFIOChunk *
RIFFIOChunkStackTop(RIFFIOChunkStack *pstack)
Pop the top item of the RIFFIOChunkStack.
void
RIFFIOChunkStackPop(RIFFIOChunkStack *pstack)
T <*pstack> must not be empty.
Push a chunk on the top of the stack
RIFFIOSuccess
RIFFIOChunkStackPush(RIFFIOChunkStack *pstack,
RIFFIOChunk *pchunk)
You must still keep track of the memory occupied by <*pchunk>.
The RIFFIOChunkStack will make its own copy of <*pchunk>.