You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! In my project, I have to rewrite parts of the VM context, and for that I use the wasm_vm::VMOffsets structure.
Right now, to access it, I write:
// with handle a &wasmer_vm::InstanceHandlelet module = handle.module_ref();let vmoffsets = VMOffsets::new(std::mem::size_of::<*mutu8>()asu8, module);
Would it be possible to add a method to InstanceHandle so that it can directly return a VMOffsets that makes sense for it? Making sure that it has the same pointer size, etc.
The text was updated successfully, but these errors were encountered:
Sure, I think it's perfectly fine to add such feature. InstanceAllocator already has this API (which is private), so I guess it's fine to expose it publicly through InstanceHandle or even InstanceRef.
Hywan
added a commit
to Hywan/wasmer
that referenced
this issue
Jan 22, 2021
Hello! In my project, I have to rewrite parts of the VM context, and for that I use the
wasm_vm::VMOffsets
structure.Right now, to access it, I write:
Would it be possible to add a method to
InstanceHandle
so that it can directly return aVMOffsets
that makes sense for it? Making sure that it has the same pointer size, etc.The text was updated successfully, but these errors were encountered: