-
-
Notifications
You must be signed in to change notification settings - Fork 33.5k
Closed
Labels
addonsIssues and PRs related to native addons.Issues and PRs related to native addons.docIssues and PRs related to the documentations.Issues and PRs related to the documentations.node-apiIssues and PRs related to the Node-API.Issues and PRs related to the Node-API.
Description
napi_get_value_string_*
say e.g.:
[out] result
: Number of bytes copied into the buffer including the null. terminator.
However, the actual implementation in Node returns the number of bytes excluding the null terminator (so for an empty string, it will return 0
and not 1
).
Not sure if it's implementation or documentation issue, or I was just confused by the wording. cc @nodejs/n-api
Metadata
Metadata
Assignees
Labels
addonsIssues and PRs related to native addons.Issues and PRs related to native addons.docIssues and PRs related to the documentations.Issues and PRs related to the documentations.node-apiIssues and PRs related to the Node-API.Issues and PRs related to the Node-API.