pub unsafe extern "C" fn OH_NativeBuffer_WriteToParcel(
buffer: *mut OH_NativeBuffer,
parcel: *mut OHIPCParcel,
) -> i32Available on crate feature
api-23 only.Expand description
Serialize OH_NativeBuffer object to the serialized OHIPCParcel object.
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. -
parcel- Indicates the serialized OHIPCParcel object.
§Returns
- [
NATIVE_ERROR_OK] 0 - Success. [NATIVE_ERROR_INVALID_ARGUMENTS] 40001000 - buffer or parcel is NULL. [SURFACE_ERROR_BINDER_ERROR] 50401000 - ipc send failed.
Available since API-level: 23
Version: 1.0