Skip to content

Added support for TypedArray interop between WASM and JS contexts #267

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

Closed
wants to merge 1 commit into from

Conversation

kyr0
Copy link

@kyr0 kyr0 commented Sep 17, 2018

As discussed in #263 and #240, I added support for memory mapped interop of all standard TypedArray subtypes. I added tests for every subtype to ensure a safe operation. Type checks ensure the safe construction of TypedArray subtypes in the loader lib.

@kyr0 kyr0 closed this Sep 17, 2018
@msbasanth
Copy link

Superb, is this change is already in... Whether I will get TypedArray interop in latest of AssemblyScript?

It would be great if you could share the sample usage...

@kyr0
Copy link
Author

kyr0 commented Sep 25, 2018

@msbasanth

Yes, it is already available when using the current develop branch.

See here:

Example code (using current impl. by @dcodeIO):

https://github.com/kyr0/assemblyscript-js-wasm-interop-example

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

Successfully merging this pull request may close these issues.

2 participants