Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 150e20c4 authored by Steven Moreland's avatar Steven Moreland Committed by android-build-merger
Browse files

Merge "libbinder_ndk: update docs for writing strings" am: 42dbafe0

am: 49a51e55

Change-Id: Ie57512db7c1fcdf807611e2e5b688f5d6cfeeda3
parents e9638d72 49a51e55
Loading
Loading
Loading
Loading
+5 −6
Original line number Diff line number Diff line
@@ -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.