Skip to content
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

typed arrays #6

Open
0joshuaolson1 opened this issue Sep 22, 2017 · 1 comment
Open

typed arrays #6

0joshuaolson1 opened this issue Sep 22, 2017 · 1 comment

Comments

@0joshuaolson1
Copy link
Owner

0joshuaolson1 commented Sep 22, 2017

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Typed_arrays

Supported in environments stuck at ES5?

var buffer = new ArrayBuffer(2(bytes) * desiredLength);
var array = new Uint16Array(buffer);

Should this affect the api, since an 'array' has both a buffer and a view?

@0joshuaolson1
Copy link
Owner Author

Maybe a bad idea?:

indutny/bn.js#129 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant