Function binder_ndk_sys::AParcel_writeParcelableArray

source ·
pub unsafe extern "C" fn AParcel_writeParcelableArray(
    parcel: *mut AParcel,
    arrayData: *const c_void,
    length: i32,
    elementWriter: AParcel_writeParcelableElement,
) -> binder_status_t
Expand description

Writes an array of parcelables (user-defined types) to the next location in a non-null parcel.

Available since API level 29.

\param parcel the parcel to write to. \param arrayData an array of size ‘length’ (or null if length is -1, may be null if length is 0). \param length the length of arrayData or -1 if this represents a null array. \param elementWriter function to be called for every array index to write the user-defined type at that location.

\return STATUS_OK on successful write.