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

cawfree/memory #10

Merged
merged 9 commits into from
May 10, 2023
Merged

cawfree/memory #10

merged 9 commits into from
May 10, 2023

Conversation

cawfree
Copy link
Owner

@cawfree cawfree commented May 10, 2023

Adds shared memory to an instance created by WebAssembly.

  • This is accessible as an ArrayBuffer returned via module.instance.exports.memory.
  • The backing byte array is shared between C++ and JavaScript, ensuring both environments share the same reference.

@cawfree cawfree merged commit 6956147 into main May 10, 2023
@cawfree cawfree deleted the cawfree/memory branch May 10, 2023 11:00
@cawfree cawfree mentioned this pull request May 10, 2023
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.

1 participant