Function binder_ndk_sys::AParcel_writeStatusHeader

source ·
pub unsafe extern "C" fn AParcel_writeStatusHeader(
    parcel: *mut AParcel,
    status: *const AStatus,
) -> binder_status_t
Expand description

Writes an AStatus object to the next location in a non-null parcel.

If the status is considered to be a low-level status and has no additional information other than a binder_status_t (for instance, if it is created with AStatus_fromStatus), then that status will be returned from this method and nothing will be written to the parcel. If either this happens or if writing the status object itself fails, the return value from this function should be propagated to the client, and AParcel_readStatusHeader shouldn’t be called.

Available since API level 29.

\param parcel the parcel to write to. \param status the value to write to the parcel.

\return STATUS_OK on successful write.