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

Developer

API Reference

IVFSCACHEMODEL_GETNODEDATA()

Brew Release
Brew MP 1.0.2
See Also
IVFSNODE_GetData() for a full description of this function
Description
This function will be called whenever IVFSNODE_GetData is called on the associated node. It allows the model to create the node data on-the-fly (e.g. for a random number interface).
Params
po
[]:
Pointer to the IVfsCacheModel interface object
node
[]:
Pointer to the associated node.
pType
[]:
A pointer to the data type required
pObj
[]:
The address of a data area which will be set by this call contain the data
pSize
[]:
The address of an integer which may be set to the size of data
Interface
  • IVFSCACHEMODEL
Prototype
  •    int IVFSCACHEMODEL_GetNodeData( IVfsCacheModel * po, IVfsCacheContainer * node, AEECLSID * pType, void * pObj, int * pSize )
    
Return
  •    SUCCESS - the call has been completed successfully.
       EUNSUPPORTED - the model does not handle this call. The standard call will be used instead.
       other   - the model DOES handle the call, but it failed for some reason. The error code
                 will be returned immediately to the user.
    
Comments
This function MAY be omitted from the model. The inline accessor function checks if the function has been defined.