Skip to content

Allow to access typed arrays by reference instead of copy #47

@letmaik

Description

@letmaik

Returning a typed array from AS to JS seems to make a copy of it. However, I'd like to obtain a view on the same underlying ArrayBuffer. Looks like .slice() is responsible for the copy:

return wasmExports.__getInt8Array(responseRef).slice();

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions