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

Developer

API Reference

ISOURCEUTIL_PEEKFROMMEMORY()

Brew Release
Brew MP 1.0.2
See Also
Error Codes ISourceUtil ISOURCEUTIL_SourceFromAStream()
Description
This function makes a new IPeek Interface object that gets data from a memory block.
Params
pISourceUtil
[in]:
a pointer to the ISourceUtil Interface object.
pBuf
[in]:
a buffer that is the data.
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.
ppip
[out]:
a pointer to the interface pointer to be filled with resulting IPeek interface object.
Interface
  • ISOURCEUTIL
Prototype
  •    int32 ISOURCEUTIL_PeekFromMemory(ISourceUtil *  pISourceUtil,
                                        const void *   pBuf,
                                        int32          nBufLen,
                                        PFNNOTIFY      pUserFreeFn,
                                        void *         pUserFreeData,
                                        IPeek **       ppip);
    
Return
  • AEE_SUCCESS : if successful.
    AEE_ENOMEMORY : if the function can't make a new IPeek Interface object.
Side Effect
  • None
Comments
If the IPeek Interface object is created with read-only memory, be careful not to modify buffered data returned by IPEEK_Peek().