Skip to content

Commit e818455

Browse files
Gabriel SchulhofMylesBorins
Gabriel Schulhof
authored andcommitted
doc: fix entry for napi_create_external_buffer
Remove text regarding copying, because `napi_create_external_buffer` does not copy. Fixes: #33471 PR-URL: #34125 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Mathias Buus <mathiasbuus@gmail.com> Reviewed-By: Zeyu Yang <himself65@outlook.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 167a21a commit e818455

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/n-api.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2051,7 +2051,7 @@ napi_status napi_create_external_buffer(napi_env env,
20512051
* `[in] env`: The environment that the API is invoked under.
20522052
* `[in] length`: Size in bytes of the input buffer (should be the same as the
20532053
size of the new buffer).
2054-
* `[in] data`: Raw pointer to the underlying buffer to copy from.
2054+
* `[in] data`: Raw pointer to the underlying buffer to expose to JavaScript.
20552055
* `[in] finalize_cb`: Optional callback to call when the `ArrayBuffer` is being
20562056
collected. [`napi_finalize`][] provides more details.
20572057
* `[in] finalize_hint`: Optional hint to pass to the finalize callback during

0 commit comments

Comments
 (0)