Closed
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
Type
Projects
Status
Done