Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 25939cc

Browse filesBrowse files
Gabriel Schulhofaddaleax
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 5f131f7 commit 25939cc
Copy full SHA for 25939cc

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Collapse file

‎doc/api/n-api.md‎

Copy file name to clipboardExpand all lines: doc/api/n-api.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -2038,7 +2038,7 @@ napi_status napi_create_external_buffer(napi_env env,
20382038
* `[in] env`: The environment that the API is invoked under.
20392039
* `[in] length`: Size in bytes of the input buffer (should be the same as the
20402040
size of the new buffer).
2041-
* `[in] data`: Raw pointer to the underlying buffer to copy from.
2041+
* `[in] data`: Raw pointer to the underlying buffer to expose to JavaScript.
20422042
* `[in] finalize_cb`: Optional callback to call when the `ArrayBuffer` is being
20432043
collected. [`napi_finalize`][] provides more details.
20442044
* `[in] finalize_hint`: Optional hint to pass to the finalize callback during

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.