Function binder_ndk_sys::AParcel_writeStringArray
source · pub unsafe extern "C" fn AParcel_writeStringArray(
parcel: *mut AParcel,
arrayData: *const c_void,
length: i32,
getter: AParcel_stringArrayElementGetter
) -> binder_status_t
Expand description
Writes utf-8 string array data to the next location in a non-null parcel.
length is the length of the array. AParcel_stringArrayElementGetter will be called for all indices in range [0, length) with the arrayData provided here. The string length and buffer returned from this function will be used to fill out the data from the parcel. If length is -1, this will write a ‘null’ string array to the binder buffer.
Available since API level 29.
\param parcel the parcel to write to. \param arrayData some external representation of an array. \param length the length of the array to be written. \param getter the callback that will be called for every index of the array to retrieve the corresponding string buffer.
\return STATUS_OK on successful write.