-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
napi is missing method to create buffer from ArrayBuffer
#54440
Comments
Would like to work on it , and discuss more on it |
We already have a functionin in src/node_api.cc , should we update this function or create new one with different name
|
|
Though the same name regarding the other 2 points have any idea ? |
Please use napi_status node_api_create* That is, the prefix should not be |
PR-URL: #54505 Fixes: #54440 Reviewed-By: Robert Nagy <[email protected]> Reviewed-By: Gabriel Schulhof <[email protected]> Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Vladimir Morozov <[email protected]>
PR-URL: nodejs#54505 Fixes: nodejs#54440 Reviewed-By: Robert Nagy <[email protected]> Reviewed-By: Gabriel Schulhof <[email protected]> Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Vladimir Morozov <[email protected]>
PR-URL: nodejs#54505 Fixes: nodejs#54440 Reviewed-By: Robert Nagy <[email protected]> Reviewed-By: Gabriel Schulhof <[email protected]> Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Vladimir Morozov <[email protected]>
PR-URL: #54505 Fixes: #54440 Reviewed-By: Robert Nagy <[email protected]> Reviewed-By: Gabriel Schulhof <[email protected]> Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Vladimir Morozov <[email protected]>
What is the problem this feature will solve?
Not possible to create
Buffer
fromArrayBuffer
with napiWhat is the feature you are proposing to solve the problem?
Add signature similar to what we have for typed arrays:
What alternatives have you considered?
No response
The text was updated successfully, but these errors were encountered: