-
Notifications
You must be signed in to change notification settings - Fork 34
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
APIs for ES6 DataView #202
Comments
Related to nodejs/node#11975 (comment) |
4 tasks
I'm taking this up :-) |
@shivanth thanks- might want to comment on nodejs/node#13926 so that people there know 😄 |
Landed in nodejs/node#14382 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
N-API currently has APIs for
ArrayBuffer
andTypedArray
classes, but not theDataView
class. TheDataView
class is specified by ES6 as another kind of view over anArrayBuffer
.While it could be possible to extend (and rename?)
napi_create_typedarray()
andnapi_get_typedarray_info()
to also supportDataView
objects, I think the combination would be too confusing, because aDataView
doesn't have a type, and measures length in terms of bytes instead of elements. So, probably there should be separate APIs:napi_is_dataview()
napi_create_dataview()
napi_get_dataview_info()
The text was updated successfully, but these errors were encountered: