diff options
| -rw-r--r-- | libs/binder/ndk/include_ndk/android/binder_parcel.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/libs/binder/ndk/include_ndk/android/binder_parcel.h b/libs/binder/ndk/include_ndk/android/binder_parcel.h index a5842f70e0..4ee1b67653 100644 --- a/libs/binder/ndk/include_ndk/android/binder_parcel.h +++ b/libs/binder/ndk/include_ndk/android/binder_parcel.h @@ -109,11 +109,11 @@ typedef char* (*AParcel_stringArrayElementAllocator)(void* arrayData, size_t ind * * \param arrayData some external representation of an array. * \param index the index at which a string should be allocated. - * \param outLength an out parameter for the length of the string (not including the - * null-terminator) + * \param outLength an out parameter for the length of the string at the specified index. This + * should not include the length for a null-terminator if there is one. * - * \param a null-terminated buffer of size 'outLength + 1' representing the string at the provided - * index including the null-terminator. + * \param a buffer of size outLength or more representing the string at the provided index. This is + * not required to be null-terminated. */ typedef const char* (*AParcel_stringArrayElementGetter)(const void* arrayData, size_t index, size_t* outLength); @@ -382,8 +382,7 @@ binder_status_t AParcel_readStatusHeader(const AParcel* parcel, AStatus** status * Writes utf-8 string value to the next location in a non-null parcel. * * \param parcel the parcel to write to. - * \param string the null-terminated string to write to the parcel. The buffer including the null - * terminator should be of size 'length' + 1. + * \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. |