harmony 鸿蒙raw_file_manager.h
raw_file_manager.h
Overview
Provides file management functions for the rawfile directory. You can use the ResourceManager to open a rawfile and perform operations such as data search and reading.
Since: 8
Related module: Rawfile
Summary
Types
| Name | Description |
|---|---|
| typedef struct NativeResourceManager NativeResourceManager | Represents the native ResourceManager. |
Function
| Name | Description |
|---|---|
| NativeResourceManager * OH_ResourceManager_InitNativeResourceManager (napi_env env, napi_value jsResMgr) | Obtains the native ResourceManager based on the JS ResourceManager to implement rawfile-specific functions. |
| void OH_ResourceManager_ReleaseNativeResourceManager (NativeResourceManager *resMgr) | Releases the native ResourceManager. |
| RawDir * OH_ResourceManager_OpenRawDir (const NativeResourceManager *mgr, const char *dirName) | Traverses all files in the rawfile directory. |
| RawFile * OH_ResourceManager_OpenRawFile (const NativeResourceManager *mgr, const char *fileName) | Opens a rawfile and reads the data in it. |
| RawFile64 * OH_ResourceManager_OpenRawFile64 (const NativeResourceManager *mgr, const char *fileName) | Opens a large rawfile and reads the data in it. |
| bool OH_ResourceManager_IsRawDir (const NativeResourceManager *mgr, const char *path) | Checks whether a path is a subdirectory in the rawfile directory. |
你可能感兴趣的鸿蒙文章
harmony 鸿蒙ResourceManager_Configuration
harmony 鸿蒙Font Management Error Codes
harmony 鸿蒙Resource Manager Error Codes
harmony 鸿蒙@ohos.fontManager (Font Management)
0
赞
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
7、 openharmony
-
9、 golang