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

Developer

API Reference

IACTORFRAME_CREATECACHECONTAINER()

Brew Release
Brew MP 1.0.2
See Also
IActorFrame_SetEventHandler()
Description
specified ActorBase object.
Params
name
[in]:
Name of the new container *
cacheSlots
[in]:
Number of slots in the cache container
pfnChildCount
[in]:
Child count callback function (may be NULL).
pfnChildName
[in]:
Child name callback function (may be NULL).
pfnCreateNode
[in]:
Create node callback function (may be NULL).
pfnDestroyNode
[in]:
Destroy node callback function (may be NULL)
Interface
Prototype
  •    IVfsCacheContainer *IActorFrame_CreateCacheContainer(
          ActorBase *pMe,
          VfsPathElement name,
          IVfsContainer *pParent,
          uint16 cacheSlots,
          PFNACTORFRAME_CHILDCOUNT pfnChildCount,
          PFNACTORFRAME_CHILDNAME pfnChildName,
          PFNACTORFRAME_CREATENODE pfnCreateNode,
          PFNACTORFRAME_DESTROYNODE pfnDestroyNode
       )
    
Return
  • IVfsCacheContainer *: The newly created cache container if successful, otherwise NULL. If successful, the new cache container will have also been added to the pParent container.
Side Effect
  • None
Comments
The returned interface MUST NOT be released by the caller. It is associated with the ActorBase object and will be released automatically. This method will fail gracefully (return NULL) if pParent is NULL. If pfnChildName is not specified when creating the container, the child name will be the same as its index.