diff --git a/arkts/@arkts.collections.d.ets b/arkts/@arkts.collections.d.ets index 89e961168c768b359a3396ced2f138400215e201..e46234c95d354a8cdf4408c6def7ab681575032a 100644 --- a/arkts/@arkts.collections.d.ets +++ b/arkts/@arkts.collections.d.ets @@ -3407,7 +3407,7 @@ declare namespace collections { * @returns { boolean } Check result. The value true is returned if the element exists; * otherwise, false is returned. * @throws { BusinessError } 401 - Parameter error. - * @throws { BusinessError } 10200011 - The at method cannot be bound. + * @throws { BusinessError } 10200011 - The includes method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @atomicservice @@ -3422,7 +3422,7 @@ declare namespace collections { * @returns { boolean } Check result. The value true is returned if the element exists; * otherwise, false is returned. * @throws { BusinessError } 401 - Parameter error. - * @throws { BusinessError } 10200011 - The at method cannot be bound. + * @throws { BusinessError } 10200011 - The includes method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @crossplatform @@ -3802,7 +3802,7 @@ declare namespace collections { static from(arrayLike: ArrayLike): Uint8ClampedArray; /** - * Creates an Uint8ClampedArray from an array-like object. + * Creates an ArkTS Uint8ClampedArray from an array-like object. * * @param { ArrayLike } arrayLike - Array-like object used to construct the ArkTS Uint8ClampedArray. * @param { TypedArrayFromMapFn } mapFn - A mapping function to call on every element of the array. @@ -3828,7 +3828,7 @@ declare namespace collections { */ static from(arrayLike: ArrayLike, mapFn: TypedArrayFromMapFn): Uint8ClampedArray; /** - * Creates an Uint8ClampedArray from an iterable object. + * Creates an ArkTS Uint8ClampedArray from an iterator object. * * @param { Iterable } arrayLike - Iterator object used to construct the ArkTS Uint8ClampedArray. * @param { TypedArrayFromMapFn } [mapFn] - Mapping function. If no value is passed in, @@ -3964,12 +3964,12 @@ declare namespace collections { */ fill(value: number, start?: number, end?: number): Uint8ClampedArray; /** - * Returns the elements of an array that meet the condition specified in a callback function. + * Returns a new ArkTS Uint8ClampedArray that contains all elements that meet the given condition. * * @param { TypedArrayPredicateFn } predicate - A function * that accepts up to three arguments. * The filter method calls the predicate function one time for each element in the array. - * @returns { Uint8ClampedArray } The array itself. + * @returns { Uint8ClampedArray } Filtered ArkTS Uint8ClampedArray. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The filter method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -3978,12 +3978,12 @@ declare namespace collections { * @since 12 */ /** - * Returns the elements of an array that meet the condition specified in a callback function. + * Returns a new ArkTS Uint8ClampedArray that contains all elements that meet the given condition. * * @param { TypedArrayPredicateFn } predicate - A function * that accepts up to three arguments. * The filter method calls the predicate function one time for each element in the array. - * @returns { Uint8ClampedArray } The array itself. + * @returns { Uint8ClampedArray } Filtered ArkTS Uint8ClampedArray. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The filter method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -3994,14 +3994,14 @@ declare namespace collections { */ filter(predicate: TypedArrayPredicateFn): Uint8ClampedArray; /** - * Returns the value of the first element in the array where predicate is true, and undefined - * otherwise. + * Returns the value of the first element that passes a test provided by a callback function. + * If none of the elements pass the test, undefined is returned. * * @param { TypedArrayPredicateFn } predicate - find calls predicate once for * each element of the array, in ascending order, until it finds one where predicate returns true. * If such an element is found, find immediately returns that element value. Otherwise, find returns undefined. - * @returns { number | undefined } The first element in the typed array - * that satisfies the provided testing function. Otherwise, undefined is returned. + * @returns { number | undefined } Value of the first element that passes the test. + * If none of the elements pass the test, undefined is returned. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The find method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -4010,14 +4010,14 @@ declare namespace collections { * @since 12 */ /** - * Returns the value of the first element in the array where predicate is true, and undefined - * otherwise. + * Returns the value of the first element that passes a test provided by a callback function. + * If none of the elements pass the test, undefined is returned. * * @param { TypedArrayPredicateFn } predicate - find calls predicate once for * each element of the array, in ascending order, until it finds one where predicate returns true. * If such an element is found, find immediately returns that element value. Otherwise, find returns undefined. - * @returns { number | undefined } The first element in the typed array - * that satisfies the provided testing function. Otherwise, undefined is returned. + * @returns { number | undefined } Value of the first element that passes the test. + * If none of the elements pass the test, undefined is returned. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The find method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -4028,14 +4028,15 @@ declare namespace collections { */ find(predicate: TypedArrayPredicateFn): number | undefined; /** - * Returns the index of the first element in the array where predicate is true, and -1 - * otherwise. + * Returns the index of the first element that passes a test provided by a callback function. + * If none of the elements pass the test, -1 is returned. * * @param { TypedArrayPredicateFn } predicate - find calls predicate once for * each element of the array, in ascending order, until it finds one where predicate returns true. * If such an element is found, findIndex immediately returns that element index. * Otherwise, findIndex returns -1. - * @returns { number } The index of the first element in the typed array that passes the test. Otherwise, -1. + * @returns { number } Index of the first element that passes the test. + * If none of the elements pass the test, -1 is returned. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The findIndex method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -4044,14 +4045,15 @@ declare namespace collections { * @since 12 */ /** - * Returns the index of the first element in the array where predicate is true, and -1 - * otherwise. + * Returns the index of the first element that passes a test provided by a callback function. + * If none of the elements pass the test, -1 is returned. * * @param { TypedArrayPredicateFn } predicate - find calls predicate once for * each element of the array, in ascending order, until it finds one where predicate returns true. * If such an element is found, findIndex immediately returns that element index. * Otherwise, findIndex returns -1. - * @returns { number } The index of the first element in the typed array that passes the test. Otherwise, -1. + * @returns { number } Index of the first element that passes the test. + * If none of the elements pass the test, -1 is returned. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The findIndex method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -4062,7 +4064,7 @@ declare namespace collections { */ findIndex(predicate: TypedArrayPredicateFn): number; /** - * Performs the specified action for each element in an array. + * Calls a callback function for each element in this ArkTS Uint8ClampedArray. * * @param { TypedArrayForEachCallback } callbackFn - A function that * accepts up to three arguments. @@ -4075,7 +4077,7 @@ declare namespace collections { * @since 12 */ /** - * Performs the specified action for each element in an array. + * Calls a callback function for each element in this ArkTS Uint8ClampedArray. * * @param { TypedArrayForEachCallback } callbackFn - A function that * accepts up to three arguments. @@ -4090,12 +4092,14 @@ declare namespace collections { */ forEach(callbackFn: TypedArrayForEachCallback): void; /** - * Returns the index of the first occurrence of a value in an array. + * Returns the index of the first occurrence of a value in this ArkTS Uint8ClampedArray. + * If the value is not found, -1 is returned. * - * @param { number } searchElement - The value to locate in the array. - * @param { number } [fromIndex] - The array index at which to begin the search. If fromIndex is omitted, the - * search starts at index 0. - * @returns { number } The first index of searchElement in the typed array; -1 if not found. + * @param { number } searchElement - Value to search for. + * @param { number } [fromIndex] - Index from which the search starts. The default value is 0. + * If the index is greater than or equal to the length of the ArkTS Uint8ClampedArray, -1 is returned. + * If a negative number is passed in, the search starts from the end of the ArkTS Uint8ClampedArray. + * @returns { number } Index of the first occurrence of the value. If the value is not found, -1 is returned. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The indexOf method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -4104,12 +4108,14 @@ declare namespace collections { * @since 12 */ /** - * Returns the index of the first occurrence of a value in an array. + * Returns the index of the first occurrence of a value in this ArkTS Uint8ClampedArray. + * If the value is not found, -1 is returned. * - * @param { number } searchElement - The value to locate in the array. - * @param { number } [fromIndex] - The array index at which to begin the search. If fromIndex is omitted, the - * search starts at index 0. - * @returns { number } The first index of searchElement in the typed array; -1 if not found. + * @param { number } searchElement - Value to search for. + * @param { number } [fromIndex] - Index from which the search starts. The default value is 0. + * If the index is greater than or equal to the length of the ArkTS Uint8ClampedArray, -1 is returned. + * If a negative number is passed in, the search starts from the end of the ArkTS Uint8ClampedArray. + * @returns { number } Index of the first occurrence of the value. If the value is not found, -1 is returned. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The indexOf method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -4120,11 +4126,10 @@ declare namespace collections { */ indexOf(searchElement: number, fromIndex?: number): number; /** - * Adds all the elements of an array separated by the specified separator string. - * @param { string } [separator] - A string used to separate one element of an array from the next in the - * resulting String. If omitted, the array elements are separated with a comma. - * @returns { string } A string with all typed array elements joined. - * If array.length is 0, the empty string is returned. + * Concatenates all elements in this ArkTS Uint8ClampedArray into a string, with a given separator. + * @param { string } [separator] - Separator to be used. + * If no value is passed in, a comma (,) is used as the separator. + * @returns { string } String obtained. If the array is empty, an empty string is returned. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The join method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -4133,11 +4138,10 @@ declare namespace collections { * @since 12 */ /** - * Adds all the elements of an array separated by the specified separator string. - * @param { string } [separator] - A string used to separate one element of an array from the next in the - * resulting String. If omitted, the array elements are separated with a comma. - * @returns { string } A string with all typed array elements joined. - * If array.length is 0, the empty string is returned. + * Concatenates all elements in this ArkTS Uint8ClampedArray into a string, with a given separator. + * @param { string } [separator] - Separator to be used. + * If no value is passed in, a comma (,) is used as the separator. + * @returns { string } String obtained. If the array is empty, an empty string is returned. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The join method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -4148,13 +4152,13 @@ declare namespace collections { */ join(separator?: string): string; /** - * Calls a defined callback function on each element of an array, and returns an array that - * contains the results. + * Applies a callback function to each element in this ArkTS Uint8ClampedArray + * and uses the result to create an ArkTS Uint8ClampedArray. * * @param { TypedArrayMapCallback } callbackFn - A function that * accepts up to three arguments. * The map method calls the callbackfn function one time for each element in the array. - * @returns { Uint8ClampedArray } The array itself. + * @returns { Uint8ClampedArray } New ArkTS Uint8ClampedArray generated. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The map method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -4163,13 +4167,13 @@ declare namespace collections { * @since 12 */ /** - * Calls a defined callback function on each element of an array, and returns an array that - * contains the results. + * Applies a callback function to each element in this ArkTS Uint8ClampedArray + * and uses the result to create an ArkTS Uint8ClampedArray. * * @param { TypedArrayMapCallback } callbackFn - A function that * accepts up to three arguments. * The map method calls the callbackfn function one time for each element in the array. - * @returns { Uint8ClampedArray } The array itself. + * @returns { Uint8ClampedArray } New ArkTS Uint8ClampedArray generated. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The map method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -4258,7 +4262,7 @@ declare namespace collections { */ reduce(callbackFn: TypedArrayReduceCallback, initialValue: U): U; /** - * Reverses the elements in an Array. + * Reverses this ArkTS Uint8ClampedArray. * * @returns { Uint8ClampedArray } The reference to the original typed array, now reversed. *
Note that the typed array is reversed in place, and no copy is made. @@ -4269,7 +4273,7 @@ declare namespace collections { * @since 12 */ /** - * Reverses the elements in an Array. + * Reverses this ArkTS Uint8ClampedArray. * * @returns { Uint8ClampedArray } The reference to the original typed array, now reversed. *
Note that the typed array is reversed in place, and no copy is made. @@ -4282,10 +4286,10 @@ declare namespace collections { */ reverse(): Uint8ClampedArray; /** - * Sets a value or an array of values. + * Writes the elements in an array-like object to the given start position in sequence. * - * @param { ArrayLike } array - A typed or untyped array of values to set. - * @param { number } [offset] - The index in the current array at which the values are to be written. + * @param { ArrayLike } array - Array-like object whose elements will be written. + * @param { number } [offset] - Start position for writing data. The default value is 0. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The set method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -4294,10 +4298,10 @@ declare namespace collections { * @since 12 */ /** - * Sets a value or an array of values. + * Writes the elements in an array-like object to the given start position in sequence. * - * @param { ArrayLike } array - A typed or untyped array of values to set. - * @param { number } [offset] - The index in the current array at which the values are to be written. + * @param { ArrayLike } array - Array-like object whose elements will be written. + * @param { number } [offset] - Start position for writing data. The default value is 0. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The set method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -4308,12 +4312,14 @@ declare namespace collections { */ set(array: ArrayLike, offset?: number): void; /** - * Returns a section of an array. + * Selects a range of elements in this ArkTS Uint8ClampedArray to create an ArkTS Uint8ClampedArray. * - * @param { number } [start] - The beginning of the specified portion of the array. - * @param { number } [end] - The end of the specified portion of the array. - * This is exclusive of the element at the index 'end'. - * @returns { Uint8ClampedArray } A new typed array containing the extracted elements. + * @param { number } [start] - Start index of the range. If a negative number is passed in, + * it refers to the index of start + Uint8ClampedArray.length. The default value is 0. + * @param { number } [end] - End index of the range (exclusive). If a negative number is passed in, + * it refers to the index of end + Uint8ClampedArray.length. + * The default value is the length of the ArkTS Uint8ClampedArray. + * @returns { Uint8ClampedArray } New ArkTS Uint8ClampedArray generated. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The slice method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -4322,12 +4328,14 @@ declare namespace collections { * @since 12 */ /** - * Returns a section of an array. + * Selects a range of elements in this ArkTS Uint8ClampedArray to create an ArkTS Uint8ClampedArray. * - * @param { number } [start] - The beginning of the specified portion of the array. - * @param { number } [end] - The end of the specified portion of the array. - * This is exclusive of the element at the index 'end'. - * @returns { Uint8ClampedArray } A new typed array containing the extracted elements. + * @param { number } [start] - Start index of the range. If a negative number is passed in, + * it refers to the index of start + Uint8ClampedArray.length. The default value is 0. + * @param { number } [end] - End index of the range (exclusive). If a negative number is passed in, + * it refers to the index of end + Uint8ClampedArray.length. + * The default value is the length of the ArkTS Uint8ClampedArray. + * @returns { Uint8ClampedArray } New ArkTS Uint8ClampedArray generated. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The slice method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -4338,14 +4346,14 @@ declare namespace collections { */ slice(start?: number, end?: number): Uint8ClampedArray; /** - * Determines whether the specified callback function returns true for any element of an array. + * Checks whether any element in this ArkTS Uint8ClampedArray meets a given condition. * * @param { TypedArrayPredicateFn } predicate - A function * that accepts up to three arguments. * The some method calls the predicate function for each element in the array until * the predicate returns a value which is coercible to the Boolean value true, or until the end of the array. - * @returns { boolean } false unless predicate returns a truthy value for a typed array element, - * in which case true is immediately returned. + * @returns { boolean } Check result. The value true is returned if an element meeting the given condition exists; + * otherwise, false is returned. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The some method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -4354,14 +4362,14 @@ declare namespace collections { * @since 12 */ /** - * Determines whether the specified callback function returns true for any element of an array. + * Checks whether any element in this ArkTS Uint8ClampedArray meets a given condition. * * @param { TypedArrayPredicateFn } predicate - A function * that accepts up to three arguments. * The some method calls the predicate function for each element in the array until * the predicate returns a value which is coercible to the Boolean value true, or until the end of the array. - * @returns { boolean } false unless predicate returns a truthy value for a typed array element, - * in which case true is immediately returned. + * @returns { boolean } Check result. The value true is returned if an element meeting the given condition exists; + * otherwise, false is returned. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The some method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -4372,7 +4380,7 @@ declare namespace collections { */ some(predicate: TypedArrayPredicateFn): boolean; /** - * Sorts an array. + * Sorts elements in this ArkTS Uint8ClampedArray and returns the sorted ArkTS Uint8ClampedArray. * * @param { TypedArrayCompareFn } [compareFn] - Function used to determine the order of the elements. * It is expected to return a negative value if first argument is less than second argument, @@ -4388,7 +4396,7 @@ declare namespace collections { * @since 12 */ /** - * Sorts an array. + * Sorts elements in this ArkTS Uint8ClampedArray and returns the sorted ArkTS Uint8ClampedArray. * * @param { TypedArrayCompareFn } [compareFn] - Function used to determine the order of the elements. * It is expected to return a negative value if first argument is less than second argument, @@ -4406,12 +4414,14 @@ declare namespace collections { */ sort(compareFn?: TypedArrayCompareFn): Uint8ClampedArray; /** - * Gets a new Uint8ClampedArray view of the ArrayBuffer store for this array, referencing the elements - * at begin, inclusive, up to end, exclusive. + * Returns a new ArkTS Uint8ClampedArray based on the same ArkTS ArrayBuffer. * - * @param { number } [begin] - The index of the beginning of the array. - * @param { number } [end] - The index of the end of the array. - * @returns { Uint8ClampedArray } A new Uint8ClampedArray object. + * @param { number } [begin] - Start index of the range. If a negative number is passed in, + * it refers to the index of begin + Uint8ClampedArray.length. The default value is 0. + * @param { number } [end] - End index of the range (exclusive). If a negative number is passed in, + * it refers to the index of end + Uint8ClampedArray.length. + * The default value is the length of the ArkTS Uint8ClampedArray. + * @returns { Uint8ClampedArray } New ArkTS Uint8ClampedArray generated. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The subarray method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -4420,12 +4430,14 @@ declare namespace collections { * @since 12 */ /** - * Gets a new Uint8ClampedArray view of the ArrayBuffer store for this array, referencing the elements - * at begin, inclusive, up to end, exclusive. + * Returns a new ArkTS Uint8ClampedArray based on the same ArkTS ArrayBuffer. * - * @param { number } [begin] - The index of the beginning of the array. - * @param { number } [end] - The index of the end of the array. - * @returns { Uint8ClampedArray } A new Uint8ClampedArray object. + * @param { number } [begin] - Start index of the range. If a negative number is passed in, + * it refers to the index of begin + Uint8ClampedArray.length. The default value is 0. + * @param { number } [end] - End index of the range (exclusive). If a negative number is passed in, + * it refers to the index of end + Uint8ClampedArray.length. + * The default value is the length of the ArkTS Uint8ClampedArray. + * @returns { Uint8ClampedArray } New ArkTS Uint8ClampedArray generated. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The subarray method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -4436,10 +4448,10 @@ declare namespace collections { */ subarray(begin?: number, end?: number): Uint8ClampedArray; /** - * Returns the item located at the specified index. + * Returns the element at the given index. If no element is found, undefined is returned. * - * @param { number } index - The zero-based index of the desired code unit.
- * A negative index will count back from the last item. + * @param { number } index - Index of the element. The index in an array always starts from 0 and is an integer. + * If a negative number is passed in, it refers to the index of index + Uint8ClampedArray.length. * @returns { number | undefined } The element in the array matching the given index.
* Always returns undefined if index < -array.length or * index >= array.length without attempting to access the corresponding property. @@ -4451,10 +4463,10 @@ declare namespace collections { * @since 12 */ /** - * Returns the item located at the specified index. + * Returns the element at the given index. If no element is found, undefined is returned. * - * @param { number } index - The zero-based index of the desired code unit.
- * A negative index will count back from the last item. + * @param { number } index - Index of the element. The index in an array always starts from 0 and is an integer. + * If a negative number is passed in, it refers to the index of index + Uint8ClampedArray.length. * @returns { number | undefined } The element in the array matching the given index.
* Always returns undefined if index < -array.length or * index >= array.length without attempting to access the corresponding property. @@ -4468,7 +4480,9 @@ declare namespace collections { */ at(index: number): number | undefined; /** - * Returns an iterator that iterates over numbers. + * Returns an iterator, each item of which is a JavaScript object. + * NOTE: + * This API cannot be used in .ets files. * * @returns { IterableIterator } Iterator object that yields numbers. * @throws { BusinessError } 10200011 - The Symbol.iterator method cannot be bound. @@ -4477,7 +4491,9 @@ declare namespace collections { * @since 12 */ /** - * Returns an iterator that iterates over numbers. + * Returns an iterator, each item of which is a JavaScript object. + * NOTE: + * This API cannot be used in .ets files. * * @returns { IterableIterator } Iterator object that yields numbers. * @throws { BusinessError } 10200011 - The Symbol.iterator method cannot be bound. @@ -4488,20 +4504,20 @@ declare namespace collections { */ [Symbol.iterator](): IterableIterator; /** - * Returns an iterable of key, value pairs for every entry in the array + * Returns an iterator object that contains the key-value pair of each element in this ArkTS Uint8ClampedArray. * * @returns { IterableIterator<[number, number]> } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The entries method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @atomicservice * @since 12 */ /** - * Returns an iterable of key, value pairs for every entry in the array + * Returns an iterator object that contains the key-value pair of each element in this ArkTS Uint8ClampedArray. * * @returns { IterableIterator<[number, number]> } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The entries method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @crossplatform @@ -4510,20 +4526,20 @@ declare namespace collections { */ entries(): IterableIterator<[number, number]>; /** - * Returns an iterable of keys in the array + * Returns an iterator object that contains the key (index) of each element in this ArkTS Uint8ClampedArray. * * @returns { IterableIterator } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The keys method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @atomicservice * @since 12 */ /** - * Returns an iterable of keys in the array + * Returns an iterator object that contains the key (index) of each element in this ArkTS Uint8ClampedArray. * * @returns { IterableIterator } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The keys method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @crossplatform @@ -4532,20 +4548,20 @@ declare namespace collections { */ keys(): IterableIterator; /** - * Returns an iterable of values in the array + * Returns an iterator object that contains the value of each element in this ArkTS Uint8ClampedArray. * * @returns { IterableIterator } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The values method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @atomicservice * @since 12 */ /** - * Returns an iterable of values in the array + * Returns an iterator object that contains the value of each element in this ArkTS Uint8ClampedArray. * * @returns { IterableIterator } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The values method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @crossplatform @@ -4554,28 +4570,30 @@ declare namespace collections { */ values(): IterableIterator; /** - * Determines whether an array includes a certain element, returning true or false as appropriate. + * Checks whether elements are contained in this ArkTS Uint8ClampedArray. * - * @param { number } searchElement - The element to search for. - * @param { number } [fromIndex] - The position in this array at which to begin searching for searchElement. - * @returns { boolean } A boolean value which is true if the value searchElement is found
- * within the typed array (or the part of the typed array indicated by the index fromIndex, if specified). + * @param { number } searchElement - Element to search for. + * @param { number } [fromIndex] - Index from which the search starts. If a negative number is passed in, + * it refers to the index of fromIndex + Uint8ClampedArray.length. The default value is 0. + * @returns { boolean } Check result. The value true is returned if the element exists; + * otherwise, false is returned. * @throws { BusinessError } 401 - Parameter error. - * @throws { BusinessError } 10200011 - The at method cannot be bound. + * @throws { BusinessError } 10200011 - The includes method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @atomicservice * @since 12 */ /** - * Determines whether an array includes a certain element, returning true or false as appropriate. + * Checks whether elements are contained in this ArkTS Uint8ClampedArray. * - * @param { number } searchElement - The element to search for. - * @param { number } [fromIndex] - The position in this array at which to begin searching for searchElement. - * @returns { boolean } A boolean value which is true if the value searchElement is found
- * within the typed array (or the part of the typed array indicated by the index fromIndex, if specified). + * @param { number } searchElement - Element to search for. + * @param { number } [fromIndex] - Index from which the search starts. If a negative number is passed in, + * it refers to the index of fromIndex + Uint8ClampedArray.length. The default value is 0. + * @returns { boolean } Check result. The value true is returned if the element exists; + * otherwise, false is returned. * @throws { BusinessError } 401 - Parameter error. - * @throws { BusinessError } 10200011 - The at method cannot be bound. + * @throws { BusinessError } 10200011 - The includes method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @crossplatform @@ -4584,14 +4602,14 @@ declare namespace collections { */ includes(searchElement: number, fromIndex?: number): boolean; /** - * Returns the item at that index. + * Returns the element at a given index in this Uint8ClampedArray. * * @syscap SystemCapability.Utils.Lang * @atomicservice * @since 12 */ /** - * Returns the item at that index. + * Returns the element at a given index in this Uint8ClampedArray. * * @syscap SystemCapability.Utils.Lang * @crossplatform @@ -4600,11 +4618,12 @@ declare namespace collections { */ [index: number]: number; /** - * Find the last occurrence of a specified element in an Uint8ClampedArray. + * Obtains the index of the last occurrence of the specified value in this ArkTS Uint8ClampedArray. * * @param { number } searchElement - Element to search for in the Uint8ClampedArray.. - * @param { number } fromIndex - The index at which to start the search. If provided: - *
If this index is negative, it is treated as Uint8ClampedArray.length + fromIndex. + * @param { number } fromIndex - Index from which the search starts. The default value is 0. + * If the index is greater than or equal to the length of the ArkTS Uint8ClampedArray, -1 is returned. + * If a negative number is passed in, the search starts from the end of the ArkTS Uint8ClampedArray. * @returns { number } Returns the last index of the specified element if found; otherwise, returns -1. * @throws { BusinessError } 10200011 - The lastIndexOf method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -4712,7 +4731,7 @@ declare namespace collections { @Sendable class Uint8Array { /** - * The size in bytes of each element in the array. + * Number of bytes occupied by each element in the ArkTS array. * * @type { number } * @readonly @@ -4722,7 +4741,7 @@ declare namespace collections { * @since 12 */ /** - * The size in bytes of each element in the array. + * Number of bytes occupied by each element in the ArkTS array. * * @type { number } * @readonly @@ -4734,7 +4753,7 @@ declare namespace collections { */ static readonly BYTES_PER_ELEMENT: number; /** - * The ArrayBuffer instance referenced by the array. + * Bottom-layer buffer used by an ArkTS array. * * @type { ArrayBuffer } * @readonly @@ -4743,7 +4762,7 @@ declare namespace collections { * @since 12 */ /** - * The ArrayBuffer instance referenced by the array. + * Bottom-layer buffer used by an ArkTS array. * * @type { ArrayBuffer } * @readonly @@ -4754,7 +4773,7 @@ declare namespace collections { */ readonly buffer: ArrayBuffer; /** - * The length in bytes of the array. + * Number of bytes occupied by the ArkTS array. * * @type { number } * @readonly @@ -4763,7 +4782,7 @@ declare namespace collections { * @since 12 */ /** - * The length in bytes of the array. + * Number of bytes occupied by the ArkTS array. * * @type { number } * @readonly @@ -4774,7 +4793,7 @@ declare namespace collections { */ readonly byteLength: number; /** - * The offset in bytes of the array. + * Offset between the ArkTS array and the start position of the ArrayBuffer. * * @type { number } * @readonly @@ -4783,7 +4802,7 @@ declare namespace collections { * @since 12 */ /** - * The offset in bytes of the array. + * Offset between the ArkTS array and the start position of the ArrayBuffer. * * @type { number } * @readonly @@ -4794,7 +4813,7 @@ declare namespace collections { */ readonly byteOffset: number; /** - * The length of the array. + * Number of elements in the ArkTS array. * * @type { number } * @readonly @@ -4803,7 +4822,7 @@ declare namespace collections { * @since 12 */ /** - * The length of the array. + * Number of elements in the ArkTS array. * * @type { number } * @readonly @@ -4814,7 +4833,7 @@ declare namespace collections { */ readonly length: number; /** - * A constructor used to create an Uint8Array. + * A constructor used to create an empty ArkTS Uint8Array. * * @throws { BusinessError } 10200012 - The Uint8Array's constructor cannot be directly invoked. * @syscap SystemCapability.Utils.Lang @@ -4822,7 +4841,7 @@ declare namespace collections { * @since 12 */ /** - * A constructor used to create an Uint8Array. + * A constructor used to create an empty ArkTS Uint8Array. * * @throws { BusinessError } 10200012 - The Uint8Array's constructor cannot be directly invoked. * @syscap SystemCapability.Utils.Lang @@ -4832,9 +4851,9 @@ declare namespace collections { */ constructor(); /** - * A constructor used to create an Uint8Array. + * A constructor used to create an ArkTS Uint8Array of a given length. * - * @param { number } length - The length of the array + * @param { number } length - Length of the ArkTS Uint8Array. * @throws { BusinessError } 10200012 - The Uint8Array's constructor cannot be directly invoked. * @throws { BusinessError } 401 - Parameter error. * @syscap SystemCapability.Utils.Lang @@ -4842,9 +4861,9 @@ declare namespace collections { * @since 12 */ /** - * A constructor used to create an Uint8Array. + * A constructor used to create an ArkTS Uint8Array of a given length. * - * @param { number } length - The length of the array + * @param { number } length - Length of the ArkTS Uint8Array. * @throws { BusinessError } 10200012 - The Uint8Array's constructor cannot be directly invoked. * @throws { BusinessError } 401 - Parameter error. * @syscap SystemCapability.Utils.Lang @@ -4876,9 +4895,10 @@ declare namespace collections { */ constructor(elements: Iterable); /** - * A constructor used to create an Uint8Array. + * A constructor that creates an ArkTS Uint8Array from an array-like object or ArkTS ArrayBuffer. * - * @param { ArrayLike | ArrayBuffer } array - An array is initialized with the given elements + * @param { ArrayLike | ArrayBuffer } array - Object used to construct the ArkTS Uint8Array. When the + * parameter type is ArrayBuffer, the number of bytes occupied by the buffer must be an integer multiple of 4. * @throws { BusinessError } 10200012 - The Uint8Array's constructor cannot be directly invoked. * @throws { BusinessError } 401 - Parameter error. * @syscap SystemCapability.Utils.Lang @@ -4886,9 +4906,11 @@ declare namespace collections { * @since 12 */ /** - * A constructor used to create an Uint8Array. + * A constructor that creates an ArkTS Uint8Array from an array-like object or ArkTS ArrayBuffer. * - * @param { ArrayLike | ArrayBuffer } array - An array is initialized with the given elements + * @param { ArrayLike | ArrayBuffer } array - Object used to construct the ArkTS Uint8Array. + * When the parameter type is ArrayBuffer, the number of bytes occupied by the buffer must be + * an integer multiple of 4. * @throws { BusinessError } 10200012 - The Uint8Array's constructor cannot be directly invoked. * @throws { BusinessError } 401 - Parameter error. * @syscap SystemCapability.Utils.Lang @@ -4898,13 +4920,12 @@ declare namespace collections { */ constructor(array: ArrayLike | ArrayBuffer); /** - * A constructor used to create an Uint8Array. + * A constructor that creates an ArkTS Uint8Array from an ArrayBuffer. * - * @param { ArrayBuffer } buffer - An array is initialized with the given elements - * @param { number } [byteOffset] - The byteOffset (in bytes) parameter specifies the memory range - * that will be exposed by the typed array view. - * @param { number } [length] - The length parameter specifies the memory range - * that will be exposed by the typed array view. + * @param { ArrayBuffer } buffer - ArrayBuffer object used to construct the ArkTS Uint8Array. + * The number of bytes occupied by the buffer must be an integer multiple of 4. + * @param { number } [byteOffset] - Byte offset of the buffer, beginning at 0. The default value is 0. + * @param { number } [length] - Length of the ArkTS Uint8Array. The default value is 0. * @throws { BusinessError } 10200012 - The Uint8Array's constructor cannot be directly invoked. * @throws { BusinessError } 401 - Parameter error. * @syscap SystemCapability.Utils.Lang @@ -4912,13 +4933,12 @@ declare namespace collections { * @since 12 */ /** - * A constructor used to create an Uint8Array. + * A constructor that creates an ArkTS Uint8Array from an ArrayBuffer. * - * @param { ArrayBuffer } buffer - An array is initialized with the given elements - * @param { number } [byteOffset] - The byteOffset (in bytes) parameter specifies the memory range - * that will be exposed by the typed array view. - * @param { number } [length] - The length parameter specifies the memory range - * that will be exposed by the typed array view. + * @param { ArrayBuffer } buffer - ArrayBuffer object used to construct the ArkTS Uint8Array. + * The number of bytes occupied by the buffer must be an integer multiple of 4. + * @param { number } [byteOffset] - Byte offset of the buffer, beginning at 0. The default value is 0. + * @param { number } [length] - Length of the ArkTS Uint8Array. The default value is 0. * @throws { BusinessError } 10200012 - The Uint8Array's constructor cannot be directly invoked. * @throws { BusinessError } 401 - Parameter error. * @syscap SystemCapability.Utils.Lang @@ -4928,10 +4948,10 @@ declare namespace collections { */ constructor(buffer: ArrayBuffer, byteOffset?: number, length?: number); /** - * Creates an Uint8Array from an array-like object. + * Creates an ArkTS Uint8Array from an array-like or iterator object. * - * @param { ArrayLike } arrayLike - An array-like object to convert to an Uint8Array. - * @returns { Uint8Array } A new Uint8Array instance + * @param { ArrayLike } arrayLike - Array-like object used to construct the ArkTS Uint8Array. + * @returns { Uint8Array } New ArkTS Uint8Array generated. * @throws { BusinessError } 401 - Parameter error. * @static * @syscap SystemCapability.Utils.Lang @@ -4939,10 +4959,10 @@ declare namespace collections { * @since 12 */ /** - * Creates an Uint8Array from an array-like object. + * Creates an ArkTS Uint8Array from an array-like or iterator object. * - * @param { ArrayLike } arrayLike - An array-like object to convert to an Uint8Array. - * @returns { Uint8Array } A new Uint8Array instance + * @param { ArrayLike } arrayLike - Array-like object used to construct the ArkTS Uint8Array. + * @returns { Uint8Array } New ArkTS Uint8Array generated. * @throws { BusinessError } 401 - Parameter error. * @static * @syscap SystemCapability.Utils.Lang @@ -4952,11 +4972,11 @@ declare namespace collections { */ static from(arrayLike: ArrayLike): Uint8Array; /** - * Creates an Uint8Array from an array-like object. + * Creates an ArkTS Uint8Array from an array-like object. * - * @param { ArrayLike } arrayLike - An array-like object to convert to an Uint8Array. + * @param { ArrayLike } arrayLike - Array-like object used to construct the ArkTS Uint8Array. * @param { TypedArrayFromMapFn } mapFn - A mapping function to call on every element of the array. - * @returns { Uint8Array } A new Uint8Array instance + * @returns { Uint8Array } New ArkTS Uint8Array generated. * @throws { BusinessError } 401 - Parameter error. * @static * @syscap SystemCapability.Utils.Lang @@ -4964,11 +4984,11 @@ declare namespace collections { * @since 12 */ /** - * Creates an Uint8Array from an array-like object. + * Creates an ArkTS Uint8Array from an array-like object. * - * @param { ArrayLike } arrayLike - An array-like object to convert to an Uint8Array. + * @param { ArrayLike } arrayLike - Array-like object used to construct the ArkTS Uint8Array. * @param { TypedArrayFromMapFn } mapFn - A mapping function to call on every element of the array. - * @returns { Uint8Array } A new Uint8Array instance + * @returns { Uint8Array } New ArkTS Uint8Array generated. * @throws { BusinessError } 401 - Parameter error. * @static * @syscap SystemCapability.Utils.Lang @@ -4978,11 +4998,11 @@ declare namespace collections { */ static from(arrayLike: ArrayLike, mapFn: TypedArrayFromMapFn): Uint8Array; /** - * Creates an Uint8Array from an iterable object. + * Creates an ArkTS Uint8Array from an iterator object. * - * @param { Iterable } arrayLike - An iterable object to convert to an Uint8Array. - * @param { TypedArrayFromMapFn } [mapFn] - A mapping function to - * call on every element of the array. + * @param { Iterable } arrayLike - Iterator object used to construct the ArkTS Uint8Array. + * @param { TypedArrayFromMapFn } [mapFn] - Mapping function. If no value is passed in, + * no special processing is conducted on the elements. * @returns { Uint8Array } A new Uint8Array instance * @throws { BusinessError } 401 - Parameter error. * @static @@ -4991,11 +5011,11 @@ declare namespace collections { * @since 12 */ /** - * Creates an Uint8Array from an iterable object. + * Creates an ArkTS Uint8Array from an iterator object. * - * @param { Iterable } arrayLike - An iterable object to convert to an Uint8Array. - * @param { TypedArrayFromMapFn } [mapFn] - A mapping function to - * call on every element of the array. + * @param { Iterable } arrayLike - Iterator object used to construct the ArkTS Uint8Array. + * @param { TypedArrayFromMapFn } [mapFn] - Mapping function. If no value is passed in, + * no special processing is conducted on the elements. * @returns { Uint8Array } A new Uint8Array instance * @throws { BusinessError } 401 - Parameter error. * @static @@ -5006,15 +5026,16 @@ declare namespace collections { */ static from(arrayLike: Iterable, mapFn?: TypedArrayFromMapFn): Uint8Array; /** - * Returns the this object after copying a section of the array identified by start and end - * to the same array starting at position target. + * Copies elements within a given range from this ArkTS Uint8Array to another position in sequence. * * @param { number } target - If target is negative, it is treated as length+target where length is the * length of the array. - * @param { number } start - If start is negative, it is treated as length+start. If end is negative, it - * is treated as length+end. - * @param { number } [end] - If not specified, length of the this object is used as its default value. - * @returns { Uint8Array } The array itself. + * @param { number } start - Start index of the range. + * If a negative number is passed in, it refers to the index of start + Uint8Array.length. + * @param { number } [end] - End index of the range. + * If a negative number is passed in, it refers to the index of end + Uint8Array.length. + * The default value is the length of the ArkTS Uint8Array. + * @returns { Uint8Array } ArkTS Uint8Array after being modified. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The copyWithin method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -5023,15 +5044,16 @@ declare namespace collections { * @since 12 */ /** - * Returns the this object after copying a section of the array identified by start and end - * to the same array starting at position target. + * Copies elements within a given range from this ArkTS Uint8Array to another position in sequence. * - * @param { number } target - If target is negative, it is treated as length+target where length is the - * length of the array. - * @param { number } start - If start is negative, it is treated as length+start. If end is negative, it - * is treated as length+end. - * @param { number } [end] - If not specified, length of the this object is used as its default value. - * @returns { Uint8Array } The array itself. + * @param { number } target - If target is negative, it is treated as length+target where length is the + * length of the array. + * @param { number } start - Start index of the range. + * If a negative number is passed in, it refers to the index of start + Uint8Array.length. + * @param { number } [end] - End index of the range. + * If a negative number is passed in, it refers to the index of end + Uint8Array.length. + * The default value is the length of the ArkTS Uint8Array. + * @returns { Uint8Array } ArkTS Uint8Array after being modified. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The copyWithin method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -5042,13 +5064,13 @@ declare namespace collections { */ copyWithin(target: number, start: number, end?: number): Uint8Array; /** - * Determines whether all the members of an array satisfy the specified test. + * Checks whether all elements in this ArkTS Uint8Array meet a given condition. * * @param { TypedArrayPredicateFn } predicate - A function that accepts up to three arguments. * The every method calls the predicate function for each element in the array until * the predicate returns a value which is coercible to the Boolean value false, or until the end of the array. - * @returns { boolean } true unless predicate returns a false value for a typed array element, - * in which case false is immediately returned. + * @returns { boolean } Check result. The value true is returned if all elements meet the given condition; + * otherwise, false is returned. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The every method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -5057,13 +5079,13 @@ declare namespace collections { * @since 12 */ /** - * Determines whether all the members of an array satisfy the specified test. + * Checks whether all elements in this ArkTS Uint8Array meet a given condition. * * @param { TypedArrayPredicateFn } predicate - A function that accepts up to three arguments. * The every method calls the predicate function for each element in the array until * the predicate returns a value which is coercible to the Boolean value false, or until the end of the array. - * @returns { boolean } true unless predicate returns a false value for a typed array element, - * in which case false is immediately returned. + * @returns { boolean } Check result. The value true is returned if all elements meet the given condition; + * otherwise, false is returned. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The every method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -5074,14 +5096,14 @@ declare namespace collections { */ every(predicate: TypedArrayPredicateFn): boolean; /** - * Returns the this object after filling the section identified by start and end with value. + * Fills all elements in a given range in this ArkTS Uint8Array with a value. * - * @param { number } value - value to fill array section with. - * @param { number } [start] - index to start filling the array at. If start is negative, it is treated as - * length+start where length is the length of the array. - * @param { number } [end] - index to stop filling the array at. If end is negative, it is treated as - * length+end. - * @returns { Uint8Array } The array itself. + * @param { number } value - Value to fill in. + * @param { number } [start] - Start index of the range. If a negative number is passed in, + * it refers to the index of start + Uint8Array.length. The default value is 0. + * @param { number } [end] - End index of the range (exclusive). If a negative number is passed in, + * it refers to the index of end + Uint8Array.length. The default value is the length of the ArkTS Uint8Array. + * @returns { Uint8Array } Filled ArkTS Uint8Array. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The fill method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -5090,14 +5112,14 @@ declare namespace collections { * @since 12 */ /** - * Returns the this object after filling the section identified by start and end with value. + * Fills all elements in a given range in this ArkTS Uint8Array with a value. * - * @param { number } value - value to fill array section with. - * @param { number } [start] - index to start filling the array at. If start is negative, it is treated as - * length+start where length is the length of the array. - * @param { number } [end] - index to stop filling the array at. If end is negative, it is treated as - * length+end. - * @returns { Uint8Array } The array itself. + * @param { number } value - Value to fill in. + * @param { number } [start] - Start index of the range. If a negative number is passed in, + * it refers to the index of start + Uint8Array.length. The default value is 0. + * @param { number } [end] - End index of the range (exclusive). If a negative number is passed in, + * it refers to the index of end + Uint8Array.length. The default value is the length of the ArkTS Uint8Array. + * @returns { Uint8Array } Filled ArkTS Uint8Array. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The fill method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -5108,11 +5130,11 @@ declare namespace collections { */ fill(value: number, start?: number, end?: number): Uint8Array; /** - * Returns the elements of an array that meet the condition specified in a callback function. + * Returns a new ArkTS Uint8Array that contains all elements that meet the given condition. * * @param { TypedArrayPredicateFn } predicate - A function that accepts up to three arguments. * The filter method calls the predicate function one time for each element in the array. - * @returns { Uint8Array } The array itself. + * @returns { Uint8Array } Filtered ArkTS Uint8Array. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The filter method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -5121,11 +5143,11 @@ declare namespace collections { * @since 12 */ /** - * Returns the elements of an array that meet the condition specified in a callback function. + * Returns a new ArkTS Uint8Array that contains all elements that meet the given condition. * * @param { TypedArrayPredicateFn } predicate - A function that accepts up to three arguments. * The filter method calls the predicate function one time for each element in the array. - * @returns { Uint8Array } The array itself. + * @returns { Uint8Array } Filtered ArkTS Uint8Array. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The filter method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -5136,14 +5158,14 @@ declare namespace collections { */ filter(predicate: TypedArrayPredicateFn): Uint8Array; /** - * Returns the value of the first element in the array where predicate is true, and undefined - * otherwise. + * Returns the value of the first element that passes a test provided by a callback function. + * If none of the elements pass the test, undefined is returned. * * @param { TypedArrayPredicateFn } predicate - find calls predicate once for each element of * the array, in ascending order, until it finds one where predicate returns true. * If such an element is found, find immediately returns that element value. Otherwise, find returns undefined. - * @returns { number | undefined } The first element in the typed array - * that satisfies the provided testing function. Otherwise, undefined is returned. + * @returns { number | undefined } Value of the first element that passes the test. + * If none of the elements pass the test, undefined is returned. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The find method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -5152,14 +5174,14 @@ declare namespace collections { * @since 12 */ /** - * Returns the value of the first element in the array where predicate is true, and undefined - * otherwise. + * Returns the value of the first element that passes a test provided by a callback function. + * If none of the elements pass the test, undefined is returned. * * @param { TypedArrayPredicateFn } predicate - find calls predicate once for each element of * the array, in ascending order, until it finds one where predicate returns true. * If such an element is found, find immediately returns that element value. Otherwise, find returns undefined. - * @returns { number | undefined } The first element in the typed array - * that satisfies the provided testing function. Otherwise, undefined is returned. + * @returns { number | undefined } Value of the first element that passes the test. + * If none of the elements pass the test, undefined is returned. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The find method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -5170,13 +5192,14 @@ declare namespace collections { */ find(predicate: TypedArrayPredicateFn): number | undefined; /** - * Returns the index of the first element in the array where predicate is true, and -1 - * otherwise. + * Returns the index of the first element that passes a test provided by a callback function. + * If none of the elements pass the test, -1 is returned. * * @param { TypedArrayPredicateFn } predicate - find calls predicate once for each element of * the array, in ascending order, until it finds one where predicate returns true. If such an element is found, * findIndex immediately returns that element index. Otherwise, findIndex returns -1. - * @returns { number } The index of the first element in the typed array that passes the test. Otherwise, -1. + * @returns { number } Index of the first element that passes the test. + * If none of the elements pass the test, -1 is returned. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The findIndex method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -5185,13 +5208,14 @@ declare namespace collections { * @since 12 */ /** - * Returns the index of the first element in the array where predicate is true, and -1 - * otherwise. + * Returns the index of the first element that passes a test provided by a callback function. + * If none of the elements pass the test, -1 is returned. * * @param { TypedArrayPredicateFn } predicate - find calls predicate once for each element of * the array, in ascending order, until it finds one where predicate returns true. If such an element is found, * findIndex immediately returns that element index. Otherwise, findIndex returns -1. - * @returns { number } The index of the first element in the typed array that passes the test. Otherwise, -1. + * @returns { number } Index of the first element that passes the test. + * If none of the elements pass the test, -1 is returned. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The findIndex method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -5202,7 +5226,7 @@ declare namespace collections { */ findIndex(predicate: TypedArrayPredicateFn): number; /** - * Performs the specified action for each element in an array. + * Calls a callback function for each element in this ArkTS Uint8Array. * * @param { TypedArrayForEachCallback } callbackFn - A function that * accepts up to three arguments. @@ -5215,7 +5239,7 @@ declare namespace collections { * @since 12 */ /** - * Performs the specified action for each element in an array. + * Calls a callback function for each element in this ArkTS Uint8Array. * * @param { TypedArrayForEachCallback } callbackFn - A function that * accepts up to three arguments. @@ -5230,12 +5254,14 @@ declare namespace collections { */ forEach(callbackFn: TypedArrayForEachCallback): void; /** - * Returns the index of the first occurrence of a value in an array. + * Returns the index of the first occurrence of a value in this ArkTS Uint8Array. + * If the value is not found, -1 is returned. * - * @param { number } searchElement - The value to locate in the array. - * @param { number } [fromIndex] - The array index at which to begin the search. If fromIndex is omitted, the - * search starts at index 0. - * @returns { number } The first index of searchElement in the typed array; -1 if not found. + * @param { number } searchElement - Value to search for. + * @param { number } [fromIndex] - Index from which the search starts. The default value is 0. + * If the index is greater than or equal to the length of the ArkTS Uint8Array, -1 is returned. + * If a negative number is passed in, the search starts from the end of the ArkTS Uint8Array. + * @returns { number } Index of the first occurrence of the value. If the value is not found, -1 is returned. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The indexOf method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -5244,12 +5270,14 @@ declare namespace collections { * @since 12 */ /** - * Returns the index of the first occurrence of a value in an array. + * Returns the index of the first occurrence of a value in this ArkTS Uint8Array. + * If the value is not found, -1 is returned. * - * @param { number } searchElement - The value to locate in the array. - * @param { number } [fromIndex] - The array index at which to begin the search. If fromIndex is omitted, the - * search starts at index 0. - * @returns { number } The first index of searchElement in the typed array; -1 if not found. + * @param { number } searchElement - Value to search for. + * @param { number } [fromIndex] - Index from which the search starts. The default value is 0. + * If the index is greater than or equal to the length of the ArkTS Uint8Array, -1 is returned. + * If a negative number is passed in, the search starts from the end of the ArkTS Uint8Array. + * @returns { number } Index of the first occurrence of the value. If the value is not found, -1 is returned. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The indexOf method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -5260,11 +5288,10 @@ declare namespace collections { */ indexOf(searchElement: number, fromIndex?: number): number; /** - * Adds all the elements of an array separated by the specified separator string. - * @param { string } [separator] - A string used to separate one element of an array from the next in the - * resulting String. If omitted, the array elements are separated with a comma. - * @returns { string } A string with all typed array elements joined. - * If array.length is 0, the empty string is returned. + * Concatenates all elements in this ArkTS Uint8Array into a string, with a given separator. + * @param { string } [separator] - Separator to be used. + * If no value is passed in, a comma (,) is used as the separator. + * @returns { string } String obtained. If the array is empty, an empty string is returned. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The join method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -5273,11 +5300,10 @@ declare namespace collections { * @since 12 */ /** - * Adds all the elements of an array separated by the specified separator string. - * @param { string } [separator] - A string used to separate one element of an array from the next in the - * resulting String. If omitted, the array elements are separated with a comma. - * @returns { string } A string with all typed array elements joined. - * If array.length is 0, the empty string is returned. + * Concatenates all elements in this ArkTS Uint8Array into a string, with a given separator. + * @param { string } [separator] - Separator to be used. + * If no value is passed in, a comma (,) is used as the separator. + * @returns { string } String obtained. If the array is empty, an empty string is returned. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The join method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -5288,13 +5314,13 @@ declare namespace collections { */ join(separator?: string): string; /** - * Calls a defined callback function on each element of an array, and returns an array that - * contains the results. + * Applies a callback function to each element in this ArkTS Uint8Array + * and uses the result to create an ArkTS Uint8Array. * * @param { TypedArrayMapCallback } callbackFn - A function that * accepts up to three arguments. * The map method calls the callbackfn function one time for each element in the array. - * @returns { Uint8Array } The array itself. + * @returns { Uint8Array } New ArkTS Uint8Array generated. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The map method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -5303,13 +5329,13 @@ declare namespace collections { * @since 12 */ /** - * Calls a defined callback function on each element of an array, and returns an array that - * contains the results. + * Applies a callback function to each element in this ArkTS Uint8Array + * and uses the result to create an ArkTS Uint8Array. * * @param { TypedArrayMapCallback } callbackFn - A function that * accepts up to three arguments. * The map method calls the callbackfn function one time for each element in the array. - * @returns { Uint8Array } The array itself. + * @returns { Uint8Array } New ArkTS Uint8Array generated. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The map method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -5440,7 +5466,7 @@ declare namespace collections { */ reduce(callbackFn: TypedArrayReduceCallback, initialValue: U): U; /** - * Reverses the elements in an Array. + * Reverses this ArkTS Uint8Array. * * @returns { Uint8Array } The reference to the original typed array, now reversed. *
Note that the typed array is reversed in place, and no copy is made. @@ -5451,7 +5477,7 @@ declare namespace collections { * @since 12 */ /** - * Reverses the elements in an Array. + * Reverses this ArkTS Uint8Array. * * @returns { Uint8Array } The reference to the original typed array, now reversed. *
Note that the typed array is reversed in place, and no copy is made. @@ -5464,10 +5490,10 @@ declare namespace collections { */ reverse(): Uint8Array; /** - * Sets a value or an array of values. + * Writes the elements in an array-like object to the given start position in sequence. * - * @param { ArrayLike } array - A typed or untyped array of values to set. - * @param { number } [offset] - The index in the current array at which the values are to be written. + * @param { ArrayLike } array - Array-like object whose elements will be written. + * @param { number } [offset] - Start position for writing data. The default value is 0. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The set method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -5476,10 +5502,10 @@ declare namespace collections { * @since 12 */ /** - * Sets a value or an array of values. + * Writes the elements in an array-like object to the given start position in sequence. * - * @param { ArrayLike } array - A typed or untyped array of values to set. - * @param { number } [offset] - The index in the current array at which the values are to be written. + * @param { ArrayLike } array - Array-like object whose elements will be written. + * @param { number } [offset] - Start position for writing data. The default value is 0. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The set method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -5490,12 +5516,13 @@ declare namespace collections { */ set(array: ArrayLike, offset?: number): void; /** - * Returns a section of an array. + * Selects a range of elements in this ArkTS Uint8Array to create an ArkTS Uint8Array. * - * @param { number } [start] - The beginning of the specified portion of the array. - * @param { number } [end] - The end of the specified portion of the array. - * This is exclusive of the element at the index 'end'. - * @returns { Uint8Array } A new typed array containing the extracted elements. + * @param { number } [start] - Start index of the range. If a negative number is passed in, + * it refers to the index of start + Uint8Array.length. The default value is 0. + * @param { number } [end] - End index of the range (exclusive). If a negative number is passed in, + * it refers to the index of end + Uint8Array.length. The default value is the length of the ArkTS Uint8Array. + * @returns { Uint8Array } New ArkTS Uint8Array generated. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The slice method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -5504,12 +5531,13 @@ declare namespace collections { * @since 12 */ /** - * Returns a section of an array. + * Selects a range of elements in this ArkTS Uint8Array to create an ArkTS Uint8Array. * - * @param { number } [start] - The beginning of the specified portion of the array. - * @param { number } [end] - The end of the specified portion of the array. - * This is exclusive of the element at the index 'end'. - * @returns { Uint8Array } A new typed array containing the extracted elements. + * @param { number } [start] - Start index of the range. If a negative number is passed in, + * it refers to the index of start + Uint8Array.length. The default value is 0. + * @param { number } [end] - End index of the range (exclusive). If a negative number is passed in, + * it refers to the index of end + Uint8Array.length. The default value is the length of the ArkTS Uint8Array. + * @returns { Uint8Array } New ArkTS Uint8Array generated. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The slice method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -5520,13 +5548,13 @@ declare namespace collections { */ slice(start?: number, end?: number): Uint8Array; /** - * Determines whether the specified callback function returns true for any element of an array. + * Checks whether any element in this ArkTS Uint8Array meets a given condition. * * @param { TypedArrayPredicateFn } predicate - A function that accepts up to three arguments. * The some method calls the predicate function for each element in the array until * the predicate returns a value which is coercible to the Boolean value true, or until the end of the array. - * @returns { boolean } false unless predicate returns a truthy value for a typed array element, - * in which case true is immediately returned. + * @returns { boolean } Check result. The value true is returned if an element meeting the given condition exists; + * otherwise, false is returned. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The some method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -5535,13 +5563,13 @@ declare namespace collections { * @since 12 */ /** - * Determines whether the specified callback function returns true for any element of an array. + * Checks whether any element in this ArkTS Uint8Array meets a given condition. * * @param { TypedArrayPredicateFn } predicate - A function that accepts up to three arguments. * The some method calls the predicate function for each element in the array until * the predicate returns a value which is coercible to the Boolean value true, or until the end of the array. - * @returns { boolean } false unless predicate returns a truthy value for a typed array element, - * in which case true is immediately returned. + * @returns { boolean } Check result. The value true is returned if an element meeting the given condition exists; + * otherwise, false is returned. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The some method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -5552,7 +5580,7 @@ declare namespace collections { */ some(predicate: TypedArrayPredicateFn): boolean; /** - * Sorts an array. + * Sorts elements in this ArkTS Uint8Array and returns the sorted ArkTS Uint8Array. * * @param { TypedArrayCompareFn } [compareFn] - Function used to determine the order of the elements. * It is expected to return a negative value if first argument is less than second argument, @@ -5568,7 +5596,7 @@ declare namespace collections { * @since 12 */ /** - * Sorts an array. + * Sorts elements in this ArkTS Uint8Array and returns the sorted ArkTS Uint8Array. * * @param { TypedArrayCompareFn } [compareFn] - Function used to determine the order of the elements. * It is expected to return a negative value if first argument is less than second argument, @@ -5586,12 +5614,13 @@ declare namespace collections { */ sort(compareFn?: TypedArrayCompareFn): Uint8Array; /** - * Gets a new Uint8Array view of the ArrayBuffer store for this array, referencing the elements - * at begin, inclusive, up to end, exclusive. + * Returns a new ArkTS Uint8Array based on the same ArkTS ArrayBuffer. * - * @param { number } [begin] - The index of the beginning of the array. - * @param { number } [end] - The index of the end of the array. - * @returns { Uint8Array } A new Uint8Array object. + * @param { number } [begin] - Start index of the range. If a negative number is passed in, + * it refers to the index of begin + Uint8Array.length. The default value is 0. + * @param { number } [end] - End index of the range (exclusive). If a negative number is passed in, + * it refers to the index of end + Uint8Array.length. The default value is the length of the ArkTS Uint8Array. + * @returns { Uint8Array } New ArkTS Uint8Array generated. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The subarray method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -5600,12 +5629,13 @@ declare namespace collections { * @since 12 */ /** - * Gets a new Uint8Array view of the ArrayBuffer store for this array, referencing the elements - * at begin, inclusive, up to end, exclusive. + * Returns a new ArkTS Uint8Array based on the same ArkTS ArrayBuffer. * - * @param { number } [begin] - The index of the beginning of the array. - * @param { number } [end] - The index of the end of the array. - * @returns { Uint8Array } A new Uint8Array object. + * @param { number } [begin] - Start index of the range. If a negative number is passed in, + * it refers to the index of begin + Uint8Array.length. The default value is 0. + * @param { number } [end] - End index of the range (exclusive). If a negative number is passed in, + * it refers to the index of end + Uint8Array.length. The default value is the length of the ArkTS Uint8Array. + * @returns { Uint8Array } New ArkTS Uint8Array generated. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The subarray method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -5616,10 +5646,10 @@ declare namespace collections { */ subarray(begin?: number, end?: number): Uint8Array; /** - * Returns the item located at the specified index. + * Returns the element at the given index. If no element is found, undefined is returned. * - * @param { number } index - The zero-based index of the desired code unit.
- * A negative index will count back from the last item. + * @param { number } index - Index of the element. The index in an array always starts from 0 and is an integer. + * If a negative number is passed in, it refers to the index of index + Uint8Array.length. * @returns { number | undefined } The element in the array matching the given index.
* Always returns undefined if index < -array.length or * index >= array.length without attempting to access the corresponding property. @@ -5631,10 +5661,10 @@ declare namespace collections { * @since 12 */ /** - * Returns the item located at the specified index. + * Returns the element at the given index. If no element is found, undefined is returned. * - * @param { number } index - The zero-based index of the desired code unit.
- * A negative index will count back from the last item. + * @param { number } index - Index of the element. The index in an array always starts from 0 and is an integer. + * If a negative number is passed in, it refers to the index of index + Uint8Array.length. * @returns { number | undefined } The element in the array matching the given index.
* Always returns undefined if index < -array.length or * index >= array.length without attempting to access the corresponding property. @@ -5648,7 +5678,9 @@ declare namespace collections { */ at(index: number): number | undefined; /** - * Returns an iterator that iterates over numbers. + * Returns an iterator, each item of which is a JavaScript object. + * NOTE: + * This API cannot be used in .ets files. * * @returns { IterableIterator } Iterator object that yields numbers. * @throws { BusinessError } 10200011 - The Symbol.iterator method cannot be bound. @@ -5657,7 +5689,9 @@ declare namespace collections { * @since 12 */ /** - * Returns an iterator that iterates over numbers. + * Returns an iterator, each item of which is a JavaScript object. + * NOTE: + * This API cannot be used in .ets files. * * @returns { IterableIterator } Iterator object that yields numbers. * @throws { BusinessError } 10200011 - The Symbol.iterator method cannot be bound. @@ -5668,20 +5702,20 @@ declare namespace collections { */ [Symbol.iterator](): IterableIterator; /** - * Returns an iterable of key, value pairs for every entry in the array + * Returns an iterator object that contains the key-value pair of each element in this ArkTS Uint8Array. * * @returns { IterableIterator<[number, number]> } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The entries method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @atomicservice * @since 12 */ /** - * Returns an iterable of key, value pairs for every entry in the array + * Returns an iterator object that contains the key-value pair of each element in this ArkTS Uint8Array. * * @returns { IterableIterator<[number, number]> } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The entries method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @crossplatform @@ -5690,20 +5724,20 @@ declare namespace collections { */ entries(): IterableIterator<[number, number]>; /** - * Returns an iterable of keys in the array + * Returns an iterator object that contains the key (index) of each element in this ArkTS Uint8Array. * * @returns { IterableIterator } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The keys method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @atomicservice * @since 12 */ /** - * Returns an iterable of keys in the array + * Returns an iterator object that contains the key (index) of each element in this ArkTS Uint8Array. * * @returns { IterableIterator } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The keys method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @crossplatform @@ -5712,20 +5746,20 @@ declare namespace collections { */ keys(): IterableIterator; /** - * Returns an iterable of values in the array + * Returns an iterator object that contains the value of each element in this ArkTS Uint8Array. * * @returns { IterableIterator } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The values method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @atomicservice * @since 12 */ /** - * Returns an iterable of values in the array + * Returns an iterator object that contains the value of each element in this ArkTS Uint8Array. * * @returns { IterableIterator } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The values method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @crossplatform @@ -5734,28 +5768,30 @@ declare namespace collections { */ values(): IterableIterator; /** - * Determines whether an array includes a certain element, returning true or false as appropriate. + * Checks whether elements are contained in this ArkTS Uint8Array. * - * @param { number } searchElement - The element to search for. - * @param { number } [fromIndex] - The position in this array at which to begin searching for searchElement. - * @returns { boolean } A boolean value which is true if the value searchElement is found
- * within the typed array (or the part of the typed array indicated by the index fromIndex, if specified). + * @param { number } searchElement - Element to search for. + * @param { number } [fromIndex] - Index from which the search starts. If a negative number is passed in, + * it refers to the index of fromIndex + Uint8Array.length. The default value is 0. + * @returns { boolean } Check result. The value true is returned if the element exists; + * otherwise, false is returned. * @throws { BusinessError } 401 - Parameter error. - * @throws { BusinessError } 10200011 - The at method cannot be bound. + * @throws { BusinessError } 10200011 - The includes method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @atomicservice * @since 12 */ /** - * Determines whether an array includes a certain element, returning true or false as appropriate. + * Checks whether elements are contained in this ArkTS Uint8Array. * - * @param { number } searchElement - The element to search for. - * @param { number } [fromIndex] - The position in this array at which to begin searching for searchElement. - * @returns { boolean } A boolean value which is true if the value searchElement is found
- * within the typed array (or the part of the typed array indicated by the index fromIndex, if specified). + * @param { number } searchElement - Element to search for. + * @param { number } [fromIndex] - Index from which the search starts. If a negative number is passed in, + * it refers to the index of fromIndex + Uint8Array.length. The default value is 0. + * @returns { boolean } Check result. The value true is returned if the element exists; + * otherwise, false is returned. * @throws { BusinessError } 401 - Parameter error. - * @throws { BusinessError } 10200011 - The at method cannot be bound. + * @throws { BusinessError } 10200011 - The includes method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @crossplatform @@ -5764,14 +5800,14 @@ declare namespace collections { */ includes(searchElement: number, fromIndex?: number): boolean; /** - * Returns the item at that index. + * Returns the element at a given index in this Uint8Array. * * @syscap SystemCapability.Utils.Lang * @atomicservice * @since 12 */ /** - * Returns the item at that index. + * Returns the element at a given index in this Uint8Array. * * @syscap SystemCapability.Utils.Lang * @crossplatform @@ -5780,11 +5816,12 @@ declare namespace collections { */ [index: number]: number; /** - * Find the last occurrence of a specified element in an Uint8Array. + * Obtains the index of the last occurrence of the specified value in this ArkTS Uint8Array. * * @param { number } searchElement - Element to search for in the Uint8Array.. - * @param { number } fromIndex - The index at which to start the search. If provided: - *
If this index is negative, it is treated as Uint8Array.length + fromIndex. + * @param { number } fromIndex - Index from which the search starts. The default value is 0. + * If the index is greater than or equal to the length of the ArkTS Uint8Array, -1 is returned. + * If a negative number is passed in, the search starts from the end of the ArkTS Uint8Array. * @returns { number } Returns the last index of the specified element if found; otherwise, returns -1. * @throws { BusinessError } 10200011 - The lastIndexOf method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -6849,7 +6886,7 @@ declare namespace collections { * Returns an iterable of key, value pairs for every entry in the array * * @returns { IterableIterator<[number, number]> } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The entries method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @atomicservice @@ -6859,7 +6896,7 @@ declare namespace collections { * Returns an iterable of key, value pairs for every entry in the array * * @returns { IterableIterator<[number, number]> } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The entries method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @crossplatform @@ -6871,7 +6908,7 @@ declare namespace collections { * Returns an iterable of keys in the array * * @returns { IterableIterator } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The keys method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @atomicservice @@ -6881,7 +6918,7 @@ declare namespace collections { * Returns an iterable of keys in the array * * @returns { IterableIterator } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The keys method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @crossplatform @@ -6893,7 +6930,7 @@ declare namespace collections { * Returns an iterable of values in the array * * @returns { IterableIterator } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The values method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @atomicservice @@ -6903,7 +6940,7 @@ declare namespace collections { * Returns an iterable of values in the array * * @returns { IterableIterator } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The values method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @crossplatform @@ -6919,7 +6956,7 @@ declare namespace collections { * @returns { boolean } A boolean value which is true if the value searchElement is found
* within the typed array (or the part of the typed array indicated by the index fromIndex, if specified). * @throws { BusinessError } 401 - Parameter error. - * @throws { BusinessError } 10200011 - The at method cannot be bound. + * @throws { BusinessError } 10200011 - The includes method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @atomicservice @@ -6933,7 +6970,7 @@ declare namespace collections { * @returns { boolean } A boolean value which is true if the value searchElement is found
* within the typed array (or the part of the typed array indicated by the index fromIndex, if specified). * @throws { BusinessError } 401 - Parameter error. - * @throws { BusinessError } 10200011 - The at method cannot be bound. + * @throws { BusinessError } 10200011 - The includes method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @crossplatform @@ -8025,7 +8062,7 @@ declare namespace collections { * Returns an iterable of key, value pairs for every entry in the array * * @returns { IterableIterator<[number, number]> } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The entries method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @atomicservice @@ -8035,7 +8072,7 @@ declare namespace collections { * Returns an iterable of key, value pairs for every entry in the array * * @returns { IterableIterator<[number, number]> } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The entries method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @crossplatform @@ -8047,7 +8084,7 @@ declare namespace collections { * Returns an iterable of keys in the array * * @returns { IterableIterator } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The keys method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @atomicservice @@ -8057,7 +8094,7 @@ declare namespace collections { * Returns an iterable of keys in the array * * @returns { IterableIterator } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The keys method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @crossplatform @@ -8069,7 +8106,7 @@ declare namespace collections { * Returns an iterable of values in the array * * @returns { IterableIterator } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The values method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @atomicservice @@ -8079,7 +8116,7 @@ declare namespace collections { * Returns an iterable of values in the array * * @returns { IterableIterator } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The values method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @crossplatform @@ -8095,7 +8132,7 @@ declare namespace collections { * @returns { boolean } A boolean value which is true if the value searchElement is found
* within the typed array (or the part of the typed array indicated by the index fromIndex, if specified). * @throws { BusinessError } 401 - Parameter error. - * @throws { BusinessError } 10200011 - The at method cannot be bound. + * @throws { BusinessError } 10200011 - The includes method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @atomicservice @@ -8109,7 +8146,7 @@ declare namespace collections { * @returns { boolean } A boolean value which is true if the value searchElement is found
* within the typed array (or the part of the typed array indicated by the index fromIndex, if specified). * @throws { BusinessError } 401 - Parameter error. - * @throws { BusinessError } 10200011 - The at method cannot be bound. + * @throws { BusinessError } 10200011 - The includes method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @crossplatform @@ -9203,7 +9240,7 @@ declare namespace collections { * Returns an iterable of key, value pairs for every entry in the array * * @returns { IterableIterator<[number, number]> } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The entries method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @atomicservice @@ -9213,7 +9250,7 @@ declare namespace collections { * Returns an iterable of key, value pairs for every entry in the array * * @returns { IterableIterator<[number, number]> } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The entries method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @crossplatform @@ -9225,7 +9262,7 @@ declare namespace collections { * Returns an iterable of keys in the array * * @returns { IterableIterator } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The keys method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @atomicservice @@ -9235,7 +9272,7 @@ declare namespace collections { * Returns an iterable of keys in the array * * @returns { IterableIterator } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The keys method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @crossplatform @@ -9247,7 +9284,7 @@ declare namespace collections { * Returns an iterable of values in the array * * @returns { IterableIterator } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The values method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @atomicservice @@ -9257,7 +9294,7 @@ declare namespace collections { * Returns an iterable of values in the array * * @returns { IterableIterator } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The values method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @crossplatform @@ -9273,7 +9310,7 @@ declare namespace collections { * @returns { boolean } A boolean value which is true if the value searchElement is found
* within the typed array (or the part of the typed array indicated by the index fromIndex, if specified). * @throws { BusinessError } 401 - Parameter error. - * @throws { BusinessError } 10200011 - The at method cannot be bound. + * @throws { BusinessError } 10200011 - The includes method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @atomicservice @@ -9287,7 +9324,7 @@ declare namespace collections { * @returns { boolean } A boolean value which is true if the value searchElement is found
* within the typed array (or the part of the typed array indicated by the index fromIndex, if specified). * @throws { BusinessError } 401 - Parameter error. - * @throws { BusinessError } 10200011 - The at method cannot be bound. + * @throws { BusinessError } 10200011 - The includes method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @crossplatform @@ -10379,7 +10416,7 @@ declare namespace collections { * Returns an iterable of key, value pairs for every entry in the array * * @returns { IterableIterator<[number, number]> } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The entries method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @atomicservice @@ -10389,7 +10426,7 @@ declare namespace collections { * Returns an iterable of key, value pairs for every entry in the array * * @returns { IterableIterator<[number, number]> } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The entries method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @crossplatform @@ -10401,7 +10438,7 @@ declare namespace collections { * Returns an iterable of keys in the array * * @returns { IterableIterator } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The keys method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @atomicservice @@ -10411,7 +10448,7 @@ declare namespace collections { * Returns an iterable of keys in the array * * @returns { IterableIterator } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The keys method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @crossplatform @@ -10423,7 +10460,7 @@ declare namespace collections { * Returns an iterable of values in the array * * @returns { IterableIterator } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The values method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @atomicservice @@ -10433,7 +10470,7 @@ declare namespace collections { * Returns an iterable of values in the array * * @returns { IterableIterator } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The values method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @crossplatform @@ -10449,7 +10486,7 @@ declare namespace collections { * @returns { boolean } A boolean value which is true if the value searchElement is found
* within the typed array (or the part of the typed array indicated by the index fromIndex, if specified). * @throws { BusinessError } 401 - Parameter error. - * @throws { BusinessError } 10200011 - The at method cannot be bound. + * @throws { BusinessError } 10200011 - The includes method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @atomicservice @@ -10463,7 +10500,7 @@ declare namespace collections { * @returns { boolean } A boolean value which is true if the value searchElement is found
* within the typed array (or the part of the typed array indicated by the index fromIndex, if specified). * @throws { BusinessError } 401 - Parameter error. - * @throws { BusinessError } 10200011 - The at method cannot be bound. + * @throws { BusinessError } 10200011 - The includes method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @crossplatform @@ -11525,7 +11562,7 @@ declare namespace collections { * Returns an iterable of key, value pairs for every entry in the array * * @returns { IterableIterator<[number, number]> } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The entries method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @atomicservice @@ -11535,7 +11572,7 @@ declare namespace collections { * Returns an iterable of key, value pairs for every entry in the array * * @returns { IterableIterator<[number, number]> } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The entries method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @crossplatform @@ -11547,7 +11584,7 @@ declare namespace collections { * Returns an iterable of keys in the array * * @returns { IterableIterator } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The keys method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @atomicservice @@ -11557,7 +11594,7 @@ declare namespace collections { * Returns an iterable of keys in the array * * @returns { IterableIterator } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The keys method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @crossplatform @@ -11569,7 +11606,7 @@ declare namespace collections { * Returns an iterable of values in the array * * @returns { IterableIterator } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The values method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @atomicservice @@ -11579,7 +11616,7 @@ declare namespace collections { * Returns an iterable of values in the array * * @returns { IterableIterator } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The values method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @crossplatform @@ -11595,7 +11632,7 @@ declare namespace collections { * @returns { boolean } A boolean value which is true if the value searchElement is found
* within the typed array (or the part of the typed array indicated by the index fromIndex, if specified). * @throws { BusinessError } 401 - Parameter error. - * @throws { BusinessError } 10200011 - The at method cannot be bound. + * @throws { BusinessError } 10200011 - The includes method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @atomicservice @@ -11609,7 +11646,7 @@ declare namespace collections { * @returns { boolean } A boolean value which is true if the value searchElement is found
* within the typed array (or the part of the typed array indicated by the index fromIndex, if specified). * @throws { BusinessError } 401 - Parameter error. - * @throws { BusinessError } 10200011 - The at method cannot be bound. + * @throws { BusinessError } 10200011 - The includes method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @crossplatform