8 #ifndef META_OCEAN_PLATFORM_ANDROID_RESOURCE_MANAGER_H
9 #define META_OCEAN_PLATFORM_ANDROID_RESOURCE_MANAGER_H
16 #include <android/asset_manager.h>
17 #include <android/asset_manager_jni.h>
79 inline const void*
data()
const;
85 inline size_t size()
const;
131 bool initialize(JavaVM* javaVM, jobject activity, AAssetManager* assetManager =
nullptr);
139 bool readAsset(
const std::string& assetFilename, std::vector<uint8_t>& data)
const;
146 std::unique_ptr<ScopedResource>
accessAsset(
const std::string& assetFilename)
const;
155 bool copyAssets(
const std::string& targetDirectoryName,
const bool createDirectory =
false,
const std::string& assetDirectoryName = std::string())
const;
218 AAsset_close(asset_);
This class implements a recursive lock object.
Definition: Lock.h:31
This class implements a scoped lock object for recursive lock objects.
Definition: Lock.h:135
This template class is the base class for all singleton objects.
Definition: Singleton.h:71
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15