OH_NativeBuffer_Unreference

Function 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

Decreases the reference count of a OH_NativeBuffer and, when the reference count reaches 0, destroys this OH_NativeBuffer.

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.

§Returns

  • Returns an error code, 0 is success, otherwise, failed.

Available since API-level: 9

Version: 1.0