pub unsafe extern "C" fn OH_NativeBuffer_Map(
buffer: *mut OH_NativeBuffer,
virAddr: *mut *mut c_void,
) -> i32Available on crate feature
native_buffer only.Expand description
Provide direct cpu access to the OH_NativeBuffer in the process’s address space.
This interface needs to be used in conjunction with OH_NativeBuffer_Unmap.
This interface is a non-thread-safe type interface.
Required System Capabilities: SystemCapability.Graphic.Graphic2D.NativeBuffer
§Arguments
-
buffer- Indicates the pointer to a OH_NativeBuffer instance. -
virAddr- Indicates the address of the OH_NativeBuffer in virtual memory.
§Returns
- Returns an error code, 0 is success, otherwise, failed.
Available since API-level: 9
Version: 1.0