Crate ohos_rawfile_sys

Crate ohos_rawfile_sys 

Source
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 functions

    Enabled 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 rawfile shared 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.
RawFile64api-11
Provides access to a raw file.
RawFileDescriptor
Represent the raw file descriptor’s info.
RawFileDescriptor64api-11
Represent the raw file descriptor’s info.