ffi/wasm/core/ffi/marshaller
library
Properties
-
registeredPointerSizeBytes
↔ int?
-
The size of a pointer in bytes. Should be same for all loaded wasm modules.
getter/setter pair
-
sizeMap
→ Map<Type, int>
-
General Library Documentation Undocument By General Corporation & Global Corporation & General Developer
final
Functions
-
execute<T>(Function base, List<Object> args, Memory memory)
→ T
-
General Library Documentation Undocument By General Corporation & Global Corporation & General Developer
-
initTypes([int pointerSizeBytes = 4])
→ void
-
Must be called before working with
wasm_ffi
to initalize all type sizes.
-
listKnownTypes()
→ List<String>
-
General Library Documentation Undocument By General Corporation & Global Corporation & General Developer
-
marshall<NF extends Function, DF extends Function>(Function base, Memory memory)
→ DF
-
General Library Documentation Undocument By General Corporation & Global Corporation & General Developer
-
marshaller(String typeName)
→ Function
-
General Library Documentation Undocument By General Corporation & Global Corporation & General Developer
-
registerOpaqueType<T extends Opaque>([int? size])
→ void
-
Must be called with each type that extends Opaque before
attemtping to use that type.
-
sizeOf<T extends NativeType>()
→ int
-
Number of bytes used by native type T.