Function binder_ndk_sys::AParcel_getDataPosition

source ยท
pub unsafe extern "C" fn AParcel_getDataPosition(
    parcel: *const AParcel,
) -> i32
Expand description

Gets the current position within the parcel.

Available since API level 29.

\param parcel The parcel of which to get the position.

\return The size of the parcel. This will always be greater than 0. The values returned by this function before and after calling various reads and writes are not defined. Only the delta between two positions between a specific sequence of calls is defined. For instance, if position is X, writeBool is called, and then position is Y, readBool can be called from position X will return the same value, and then position will be Y.