Function binder_ndk_sys::AParcel_writeString

source ·
pub unsafe extern "C" fn AParcel_writeString(
    parcel: *mut AParcel,
    string: *const c_char,
    length: i32,
) -> binder_status_t
Expand description

Writes utf-8 string value to the next location in a non-null parcel.

If length is -1, and string is nullptr, this will write a ‘null’ string to the parcel.

Available since API level 29.

\param parcel the parcel to write to. \param string the null-terminated string to write to the parcel, at least of size ‘length’. \param length the length of the string to be written.

\return STATUS_OK on successful write.