Resources | developer.brewmp.com Resources | developer.brewmp.com

Developer

resources

IEnv functions

IEnv_ErrMalloc()

// Allocate the sequence stack
                nErr = IEnv_ErrMalloc(pMe->C.pIEnv,
                (SEQUENCE_STACK_INCREMENT * sizeof(uint8 *)),
                (void**)&pMe->pSequenceStack);
                
                if(AEE_SUCCESS != nErr)
                return(nErr);

IEnv_ErrRealloc()

   if (-1 == nEntry) {
                // no empty slots, allocate some more
                
                int nNewSize = INITIAL_WINDOW_ENTRIES;
                
                // we'll use the first slot in the new block
                nEntry = me->nWindowEntries;
                
                if (me->nWindowEntries > 0) {
                // double the number of entries
                nNewSize = me->nWindowEntries * 2;
                }
                
                nErr = IEnv_ErrRealloc(piEnv, nNewSize * sizeof(WindowEntry),
                (void **)&me->pWindowEntries);
                if (AEE_SUCCESS != nErr) {
                goto bail;
                }
            

IEnv_Free()

//Free the object itself   
                IEnv_Release(pMe->pIEnv);
                IEnv_Free(piEnv, pMe);
                IEnv_Release(piEnv);