-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
Closed
Labels
bufferIssues and PRs related to the buffer subsystem.Issues and PRs related to the buffer subsystem.feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.node-apiIssues and PRs related to the Node-API.Issues and PRs related to the Node-API.
Description
What is the problem this feature will solve?
Not possible to create Buffer
from ArrayBuffer
with napi
What is the feature you are proposing to solve the problem?
Add signature similar to what we have for typed arrays:
napi_status napi_create_typedarray(napi_env env,
napi_typedarray_type type,
size_t length,
napi_value arraybuffer,
size_t byte_offset,
napi_value* result)
napi_status napi_create_buffer(napi_env env,
size_t length,
napi_value arraybuffer,
size_t byte_offset,
napi_value* result)
What alternatives have you considered?
No response
Metadata
Metadata
Assignees
Labels
bufferIssues and PRs related to the buffer subsystem.Issues and PRs related to the buffer subsystem.feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.node-apiIssues and PRs related to the Node-API.Issues and PRs related to the Node-API.
Type
Projects
Status
Done