Function ohos_sys::native_buffer::OH_NativeBuffer_Unreference

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

@brief Decreases the reference count of a OH_NativeBuffer and, when the reference count reaches 0, \n destroys this OH_NativeBuffer.

@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