Skip to content

Commit 90bcb94

Browse files
committed
doc: clarify behavior of napi_get_typedarray_info
Signed-off-by: Michael Dawson <michael_dawson@ca.ibm.com> Fixes: #32089
1 parent 881c932 commit 90bcb94

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/api/n-api.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2532,7 +2532,8 @@ napi_status napi_get_typedarray_info(napi_env env,
25322532
* `[out] length`: The number of elements in the `TypedArray`.
25332533
* `[out] data`: The data buffer underlying the `TypedArray` adjusted by
25342534
the `byte_offset` value so that it points to the first element in the
2535-
`TypedArray`.
2535+
`TypedArray`. If the length of the array is 0 this may be NULL or any
2536+
other pointer value.
25362537
* `[out] arraybuffer`: The `ArrayBuffer` underlying the `TypedArray`.
25372538
* `[out] byte_offset`: The byte offset within the underlying native array
25382539
at which the first element of the arrays is located. The value for the data

0 commit comments

Comments
 (0)