Loading libs/binder/ndk/include_ndk/android/binder_parcel.h +5 −6 Original line number Original line Diff line number Diff line Loading @@ -109,11 +109,11 @@ typedef char* (*AParcel_stringArrayElementAllocator)(void* arrayData, size_t ind * * * \param arrayData some external representation of an array. * \param arrayData some external representation of an array. * \param index the index at which a string should be allocated. * \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 * \param outLength an out parameter for the length of the string at the specified index. This * null-terminator) * 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 * \param a buffer of size outLength or more representing the string at the provided index. This is * index including the null-terminator. * not required to be null-terminated. */ */ typedef const char* (*AParcel_stringArrayElementGetter)(const void* arrayData, size_t index, typedef const char* (*AParcel_stringArrayElementGetter)(const void* arrayData, size_t index, size_t* outLength); size_t* outLength); Loading Loading @@ -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. * Writes utf-8 string value to the next location in a non-null parcel. * * * \param parcel the parcel to write to. * \param parcel the parcel to write to. * \param string the null-terminated string to write to the parcel. The buffer including the null * \param string the null-terminated string to write to the parcel, at least of size 'length'. * terminator should be of size 'length' + 1. * \param length the length of the string to be written. * \param length the length of the string to be written. * * * \return STATUS_OK on successful write. * \return STATUS_OK on successful write. Loading Loading
libs/binder/ndk/include_ndk/android/binder_parcel.h +5 −6 Original line number Original line Diff line number Diff line Loading @@ -109,11 +109,11 @@ typedef char* (*AParcel_stringArrayElementAllocator)(void* arrayData, size_t ind * * * \param arrayData some external representation of an array. * \param arrayData some external representation of an array. * \param index the index at which a string should be allocated. * \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 * \param outLength an out parameter for the length of the string at the specified index. This * null-terminator) * 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 * \param a buffer of size outLength or more representing the string at the provided index. This is * index including the null-terminator. * not required to be null-terminated. */ */ typedef const char* (*AParcel_stringArrayElementGetter)(const void* arrayData, size_t index, typedef const char* (*AParcel_stringArrayElementGetter)(const void* arrayData, size_t index, size_t* outLength); size_t* outLength); Loading Loading @@ -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. * Writes utf-8 string value to the next location in a non-null parcel. * * * \param parcel the parcel to write to. * \param parcel the parcel to write to. * \param string the null-terminated string to write to the parcel. The buffer including the null * \param string the null-terminated string to write to the parcel, at least of size 'length'. * terminator should be of size 'length' + 1. * \param length the length of the string to be written. * \param length the length of the string to be written. * * * \return STATUS_OK on successful write. * \return STATUS_OK on successful write. Loading