• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# raw_file_manager.h
2
3
4## Overview
5
6Provides 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.
7
8**Since**: 8
9
10**Related module**: [Rawfile] (rawfile.md)
11
12
13## Summary
14
15
16### Types
17
18| Name| Description|
19| -------- | -------- |
20| typedef struct [NativeResourceManager](rawfile.md#nativeresourcemanager) [NativeResourceManager](rawfile.md#nativeresourcemanager) | Represents the native **ResourceManager**. |
21
22
23### Function
24
25| Name| Description|
26| -------- | -------- |
27| [NativeResourceManager](rawfile.md#nativeresourcemanager) \* [OH_ResourceManager_InitNativeResourceManager](rawfile.md#oh_resourcemanager_initnativeresourcemanager) (napi_env env, napi_value jsResMgr) | Obtains the native **ResourceManager** based on the JS **ResourceManager** to implement rawfile-specific functions. |
28| void [OH_ResourceManager_ReleaseNativeResourceManager](rawfile.md#oh_resourcemanager_releasenativeresourcemanager) ([NativeResourceManager](rawfile.md#nativeresourcemanager) \*resMgr) | Releases the native **ResourceManager**. |
29| [RawDir](rawfile.md#rawdir) \* [OH_ResourceManager_OpenRawDir](rawfile.md#oh_resourcemanager_openrawdir) (const [NativeResourceManager](rawfile.md#nativeresourcemanager) \*mgr, const char \*dirName) | Traverses all files in the **rawfile** directory. |
30| [RawFile](rawfile.md#rawfile) \* [OH_ResourceManager_OpenRawFile](rawfile.md#oh_resourcemanager_openrawfile) (const [NativeResourceManager](rawfile.md#nativeresourcemanager) \*mgr, const char \*fileName) | Opens a rawfile and reads the data in it. |
31| [RawFile64](rawfile.md#rawfile64) \* [OH_ResourceManager_OpenRawFile64](rawfile.md#oh_resourcemanager_openrawfile64) (const [NativeResourceManager](rawfile.md#nativeresourcemanager) \*mgr, const char \*fileName) | Opens a large rawfile and reads the data in it. |
32| bool [OH_ResourceManager_IsRawDir](rawfile.md#oh_resourcemanager_israwdir) (const [NativeResourceManager](rawfile.md#nativeresourcemanager) \*mgr, const char \*path) | Checks whether a path is a subdirectory in the **rawfile** directory. |
33