binder_ndk_sys

Function AParcel_readByteArray

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

Reads an array of int8_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.