Skip to main content

OH_NativeWindow_NativeWindowAbortBuffer

Function OH_NativeWindow_NativeWindowAbortBuffer 

Source
pub unsafe extern "C" fn OH_NativeWindow_NativeWindowAbortBuffer(
    window: *mut OHNativeWindow,
    buffer: *mut OHNativeWindowBuffer,
) -> i32
Expand description

@brief Returns the OHNativeWindowBuffer to the buffer queue through a OHNativeWindow instance, without filling in any content. The OHNativeWindowBuffer can be used for another request.\n This interface is a non-thread-safe type interface.\n

@syscap SystemCapability.Graphic.Graphic2D.NativeWindow @param window Indicates the pointer to a OHNativeWindow instance. @param buffer Indicates the pointer to a OHNativeWindowBuffer instance. @return Returns an error code, 0 is success, otherwise, failed. @since 8 @version 1.0