Expand description
Bindings to the rawfile APIs
§Overview
The OpenHarmony rawfile API allows the user to access so-called rawfiles that are bundled
into the hap bundle.
You can use the APIs to traverse, open, search for, read, and close raw files. The rawfile APIs are non-thread-safe. Only the close and open APIs are thread-safe.
See also the official rawfile documentation.
§Feature flags
-
_functions(enabled by default) — Internal feature: Enables functionsEnabled by default. Users should not disable this feature. Removing this feature only leaves a couple of type definitions, which are required by some other OpenHarmony sys crates for interop. This allows us to make linking against
rawfileshared library optional, and only happen if a user actually needs to use this crate. -
api-16— Enables bindings for OpenHarmony API-level 16 (No changes). -
api-17— Enables bindings for OpenHarmony API-level 17 (No changes). -
api-18— Enables bindings for OpenHarmony API-level 18 (No changes). -
api-19— Enables bindings for OpenHarmony API-level 19. -
api-20— Enables bindings for OpenHarmony API-level 20. -
api-21— Enables bindings for OpenHarmony API-level 21. -
document-features— Document available features when building the documentation
Modules§
- raw_dir
_functions - raw_
file _functions - raw_
file_ manager _functions
Structs§
- RawFile
- Provides access to a raw file.
- RawFile64
api-11 - Provides access to a raw file.
- RawFile
Descriptor - Represent the raw file descriptor’s info.
- RawFile
Descriptor64 api-11 - Represent the raw file descriptor’s info.