wasmtime_module_validate function
- @Native<Pointer<
wasmtime_error_t> Function(Pointer<wasm_engine_t> , Pointer<Uint8> , Size)>(ffi.Pointer<wasm_engine_t>, ffi.Pointer<ffi.Uint8>, ffi.Size)>()
- Pointer<
wasm_engine_t> engine, - Pointer<
Uint8> wasm, - int wasm_len
\brief Validate a WebAssembly binary.
This function will validate the provided byte sequence to determine if it is a valid WebAssembly binary within the context of the engine provided.
This function does not take ownership of its arguments but the caller is
expected to deallocate the returned error if it is non-NULL.
If the binary validates then NULL is returned, otherwise the error returned
describes why the binary did not validate.
Implementation
@ffi.Native<
ffi.Pointer<wasmtime_error_t> Function(
ffi.Pointer<wasm_engine_t>,
ffi.Pointer<ffi.Uint8>,
ffi.Size,
)
>()
external ffi.Pointer<wasmtime_error_t> wasmtime_module_validate(
ffi.Pointer<wasm_engine_t> engine,
ffi.Pointer<ffi.Uint8> wasm,
int wasm_len,
);