ohos_sys/
native_buffer.rs

1//! Native Buffer bindings
2//!
3//! The native buffer module provides APIs that you can use to apply for, use, and release the
4//! shared memory, and query memory properties.
5//! The following scenario is common for native buffer development:
6//! Use the native buffer APIs to create an OH_NativeBuffer instance, obtain memory properties,
7//! and map the corresponding ION memory to the process address space.
8//!
9//! Source:
10//!
11//! [English Documentation](https://docs.openharmony.cn/pages/v5.0/en/application-dev/graphics/native-buffer-guidelines.md)
12//! [Chinese Documentation](https://docs.openharmony.cn/pages/v5.0/en/application-dev/graphics/native-buffer-guidelines.md)
13
14#[link(name = "native_buffer")]
15extern "C" {}
16
17mod native_buffer_ffi;
18pub use native_buffer_ffi::*;
19
20pub use ohos_sys_opaque_types::OH_NativeBuffer;