mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-25 11:02:11 +03:00
139b7a1aae
This commit updates the `Abi` associated type for all slice types to a `WasmSlice` type, an aggregate of two `u32` integers. This translates to an ABI where when passed as a function argument it expands to two integer arguments, and when passed as a return value it passes a return pointer as the first argument to get filled in. This is hopefully more forwards-compatible with the host bindings proposal which uses this strategy for passing string arguments at least. It's a little sketchy what we're doing as there's not really a stable ABI yet, but hopefully this'll all be relatively stable for awhile! |
||
---|---|---|
.. | ||
api.rs | ||
classes.rs | ||
closures.rs | ||
dependencies.rs | ||
enums.rs | ||
import_class.rs | ||
imports.rs | ||
jsobjects.rs | ||
main.rs | ||
math.rs | ||
node.rs | ||
non_debug.rs | ||
non_wasm.rs | ||
simple.rs | ||
slice.rs | ||
structural.rs |