Skip to main content

OH_NativeBuffer_Map

Function OH_NativeBuffer_Map 

Source
pub unsafe extern "C" fn OH_NativeBuffer_Map(
    buffer: *mut OH_NativeBuffer,
    virAddr: *mut *mut c_void,
) -> i32
Expand description

@brief Provide direct cpu access to the OH_NativeBuffer in the process’s address space.\n This interface needs to be used in conjunction with OH_NativeBuffer_Unmap.\n This interface is a non-thread-safe type interface.\n

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