mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
doc: fix entry for napi_create_external_buffer
Remove text regarding copying, because `napi_create_external_buffer` does not copy. Fixes: https://github.com/nodejs/node/issues/33471 PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
1 parent
5f131f71e9
commit
25939ccded
1 file changed
+1
-1
+1
-1
@@ -2038,7 +2038,7 @@ napi_status napi_create_external_buffer(napi_env env,
|
||||
* `[in] env`: The environment that the API is invoked under.
|
||||
* `[in] length`: Size in bytes of the input buffer (should be the same as the
|
||||
size of the new buffer).
|
||||
* `[in] data`: Raw pointer to the underlying buffer to copy from.
|
||||
* `[in] data`: Raw pointer to the underlying buffer to expose to JavaScript.
|
||||
* `[in] finalize_cb`: Optional callback to call when the `ArrayBuffer` is being
|
||||
collected. [`napi_finalize`][] provides more details.
|
||||
* `[in] finalize_hint`: Optional hint to pass to the finalize callback during
|
||||
|
||||
Reference in new issue
Block a user