Vulkan SDK for Android 1.1.1 Mali Developer Center
MaliSDK::AssetManager Class Reference

The asset manager reads data from a platform specific location. This class is used internally to load binary data from disk. More...

#include <asset_manager.hpp>

Inheritance diagram for MaliSDK::AssetManager:
MaliSDK::AndroidAssetManager MaliSDK::LinuxAssetManager

Public Member Functions

template<typename T >
Result readBinaryFile (std::vector< T > *pOutput, const char *pPath)
 Reads a binary file into typed container. More...
 
virtual Result readBinaryFile (const char *pPath, void **ppData, size_t *pSize)
 Reads a binary file as a raw blob. More...
 

Detailed Description

The asset manager reads data from a platform specific location. This class is used internally to load binary data from disk.

Definition at line 34 of file asset_manager.hpp.

Member Function Documentation

◆ readBinaryFile() [1/2]

template<typename T >
Result MaliSDK::AssetManager::readBinaryFile ( std::vector< T > *  pOutput,
const char *  pPath 
)
inline

Reads a binary file into typed container.

Parameters
[out]pOutputOutput vector to write data into. The vector will be cleared before adding any data to the container.
[out]pPathThe path to read.
Returns
Error code

Definition at line 45 of file asset_manager.hpp.

◆ readBinaryFile() [2/2]

Result MaliSDK::AssetManager::readBinaryFile ( const char *  pPath,
void **  ppData,
size_t *  pSize 
)
virtual

Reads a binary file as a raw blob.

Parameters
pPathThe path of the asset.
[out]ppDataallocated output data. Must be freed with free().
[out]pSizeThe size of the allocated data.
Returns
Error code

Reimplemented in MaliSDK::LinuxAssetManager, and MaliSDK::AndroidAssetManager.

Definition at line 28 of file asset_manager.cpp.


The documentation for this class was generated from the following files: