API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

ISOURCEUTIL_SOURCEFROMMEMORY()

Brew Release
Brew MP 1.0.2
See Also
Error Codes FREE ISourceUtil PFNNOTIFY
Description
This function makes a new ISource Interface object that gets data from a memory block.
Params
pISourceUtil
[]:
[in] Pointer to the ISourceUtil Interface object.
pBuf
[]:
[in] data buffer.
nBufLen
[]:
[in] the number of bytes in pBuf.
pUserFreeFn
[]:
[in] where to call when finished with the memory, may be NULL.
pUserFreeData
[]:
[in] what to call pUserFreeFn with.
ppis
[]:
[in/out] a pointer to the interface pointer to be filled with resulting ISource interface object.
Interface
  • ISOURCEUTIL
Prototype
  •    int32 ISOURCEUTIL_SourceFromMemory(ISourceUtil *  pISourceUtil,
                                          const void *   pBuf,
                                          int32          nBufLen,
                                          PFNNOTIFY      pUserFreeFn,
                                          void *         pUserFreeData,
                                          ISource **     ppis);
    
Return
  • AEE_SUCCESS : if successful.
    AEE_ENOMEMORY : if the function can't make a new ISource interface object.
Side Effect
  • None
Comments
None