Skip to content
This repository was archived by the owner on Oct 31, 2023. It is now read-only.

chore: Replace wasmer uint8view with view calls#197

Closed
phated wants to merge 1 commit into
masterfrom
phated/wasm-view
Closed

chore: Replace wasmer uint8view with view calls#197
phated wants to merge 1 commit into
masterfrom
phated/wasm-view

Conversation

@phated
Copy link
Copy Markdown
Contributor

@phated phated commented May 17, 2023

This replaces the usage of wasmer's memory.uint8view() function and replaces it with memory.view(). It seems that the return type of uint8view differs by platform, but view is consistent.

My experiments indicate that these implementations will compile on native or wasm32 targets, but I'm leaving it a draft until that can be proven by an actual wasm32 build.

@phated
Copy link
Copy Markdown
Contributor Author

phated commented May 17, 2023

This is actually flagged as unimplemented!() in wasmer 2.3 but it is implemented in wasmer 3, which we are going to be switching to.

@TomAFrench
Copy link
Copy Markdown
Member

Seems like this is superceded by #208?

@phated
Copy link
Copy Markdown
Contributor Author

phated commented May 24, 2023

Yep! Wasmer3 fixes this stuff in a much better way.

@phated phated closed this May 24, 2023
@phated phated deleted the phated/wasm-view branch May 24, 2023 14:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants