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

Developer

API Reference

IMEMASTREAM_SETEX()

Brew Release
Brew MP 1.0.2
See Also
PFNNOTIFY IMemAStream IMEMASTREAM_Set
Description
This function behaves the same as IMEMASTREAM_Set(), with the additional feature of a User callback to free the memory chunk. You can specify a callback function pUserFreeFn, which is called when the memory chunk pBuff needs to be freed.
Params
pIMemAStream
[]:
pointer to the IMemAStream interface.
pBuff
[]:
pointer to the memory chunk that needs to be read as a stream.
dwSize
[]:
size of the memory chunk.
dwOffset
[]:
offset from the beginning of the memory chunk to be set as the start data for the memory stream.
pUserFreeFn
[]:
callback function to be called when the memory chunk needs to be freed.
pUserFreeData
[]:
Parameter to be passed to pUserFreeFn.
Interface
  • IMEMASTREAM
Prototype
  •   void IMEMASTREAM_SetEx
      (
         IMemAStream * pIMemAStream,
         byte *        pBuff,
         uint32        dwSize,
         uint32        dwOffset,
         PFNNOTIFY     pUserFreeFn,
         void *        pUserFreeData
      );
    
Return
  • None
Side Effect
  • None
Comments
None