binder_ndk_sys

Function AParcel_readCharArray

Source
pub unsafe extern "C" fn AParcel_readCharArray(
    parcel: *const AParcel,
    arrayData: *mut c_void,
    allocator: AParcel_charArrayAllocator,
) -> binder_status_t
Expand description

Reads an array of char16_t from the next location in a non-null parcel.

First, allocator will be called with the length of the array. If the allocation succeeds and the length is greater than zero, the buffer returned by the allocator will be filled with the corresponding data

Available since API level 29.

\param parcel the parcel to read from. \param arrayData some external representation of an array. \param allocator the callback that will be called to allocate the array.

\return STATUS_OK on successful read.