Function ohos_sys::native_buffer::OH_NativeBuffer_Unmap

source ·
pub unsafe extern "C" fn OH_NativeBuffer_Unmap(
    buffer: *mut OH_NativeBuffer,
) -> i32
Available on crate feature native_buffer only.
Expand description

@brief Remove direct cpu access ability of the OH_NativeBuffer in the process’s address space.

@syscap SystemCapability.Graphic.Graphic2D.NativeBuffer @param buffer Indicates the pointer to a OH_NativeBuffer instance. @return Returns an error code, 0 is success, otherwise, failed. @since 9 @version 1.0