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

Developer

resources

OEM functions

OEM_Malloc()

    // Allocate memory for size of class and function table
                if(NULL == (pMe = OEM_Malloc(nSize ))) { 
                return (ENOMEMORY); 

OEM_Realloc()

                // resize the encoded data buffer
                pEncoded = OEM_Realloc(pEncoded, dwEncodedLength);
            

OEM_Free()

//  Free all allocated buffers
                for ( i = 0; i < pme->m_NumFiles; i++ )
                {
                if (pme->m_szFileArray[i])
                OEM_Free((void *)pme->m_szFileArray[i]);
                }