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

The Linux asset manager. It is based on regular fopen(), with the exception that all paths passed to it are relative to the path of the binary. The path to the binary are Linux specific due to parsing /proc interface. More...

#include <linux.hpp>

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

Public Member Functions

 LinuxAssetManager ()
 Constructor.
 
virtual Result readBinaryFile (const char *pPath, void **ppData, size_t *pSize) override
 Reads a binary file as a raw blob. More...
 
- Public Member Functions inherited from MaliSDK::AssetManager
template<typename T >
Result readBinaryFile (std::vector< T > *pOutput, const char *pPath)
 Reads a binary file into typed container. More...
 

Detailed Description

The Linux asset manager. It is based on regular fopen(), with the exception that all paths passed to it are relative to the path of the binary. The path to the binary are Linux specific due to parsing /proc interface.

Definition at line 35 of file linux.hpp.

Member Function Documentation

◆ readBinaryFile()

Result MaliSDK::LinuxAssetManager::readBinaryFile ( const char *  pPath,
void **  ppData,
size_t *  pSize 
)
overridevirtual

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 from MaliSDK::AssetManager.

Definition at line 71 of file linux.cpp.


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