You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
napi is missing method to create buffer from ArrayBuffer #54440
Would like to work on it , and discuss more on it
I think his feature would bring the API in line with the existing napi_create_typedarray function @ronag@redyetidev
We already have a functionin in src/node_api.cc , should we update this function or create new one with different name @ronag@redyetidev
like to discuss on these 2 also , like reference and structure if already done for any other module
// Get the underlying ArrayBuffer data
// Create a Buffer from the ArrayBuffer
Activity
shubhamsugara22 commentedon Aug 20, 2024
Would like to work on it , and discuss more on it
I think his feature would bring the API in line with the existing napi_create_typedarray function
@ronag @redyetidev
shubhamsugara22 commentedon Aug 21, 2024
We already have a functionin in src/node_api.cc , should we update this function or create new one with different name
@ronag @redyetidev
like to discuss on these 2 also , like reference and structure if already done for any other module
// Get the underlying ArrayBuffer data
// Create a Buffer from the ArrayBuffer
ronag commentedon Aug 21, 2024
napi_create_buffer_from_array_bufferor something?shubhamsugara22 commentedon Aug 21, 2024
Though the same name regarding the other 2 points have any idea ?
gabrielschulhof commentedon Sep 13, 2024
Please use
That is, the prefix should not be
napi_for new APIs, butnode_api_.node-api: add napi_create_buffer_from_arraybuffer method
node-api: add napi_create_buffer_from_arraybuffer method