-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
Buffer.copyBytesFrom
should accept a DataView
as well.
#47924
Comments
I think I can help with this. I can modify the code to accomodate for dataView. |
Relevant comments on why To be frank at first glance, it looked manageable to me but it seems it's pretty complex. Comments suggest that a separate method should be created for this. Would need maintainers' advice. |
@jasnell what do you think |
There has been no activity on this feature request for 5 months and it is unlikely to be implemented. It will be closed 6 months after the last non-automated comment. For more information on how the project manages feature requests, please consult the feature request management document. |
There has been no activity on this feature request and it is being closed. If you feel closing this issue is not the right thing to do, please leave a comment. For more information on how the project manages feature requests, please consult the feature request management document. |
The issue
The
Buffer.copyBytesFrom
method was added by the issue #43862. What it does is create aBuffer
by copying the data to which the view of anArrayBuffer
orSharedArrayBuffer
is referring (“viewing”). The current problem is that it only accepts aTypedArray
for itsview
parameter, whenDataView
s, too, are views.My suggestion
I suggest:
Buffer.copyBytesFrom
to accept aDataView
as well for theview
parameter.The text was updated successfully, but these errors were encountered: