17#ifdef WASMTIME_FEATURE_WAT
33 if (error !=
nullptr) {
36 std::vector<uint8_t> vec;
Errors coming from Wasmtime.
Definition: error.hh:24
Fallible result type used for Wasmtime.
Definition: error.hh:83
Span class used when c++20 is not available.
Definition: span.hh:45
iterator end() const
Returns end iterator.
Definition: span.hh:85
iterator begin() const
Returns begin iterator.
Definition: span.hh:82
Build-time defines for how the C API was built.
A list of bytes.
Definition: wasm.h:102
size_t size
Length of this vector.
Definition: wasm.h:102
wasm_byte_t * data
Pointer to the base of this vector.
Definition: wasm.h:102
void wasm_byte_vec_delete(wasm_byte_vec_t *)
Deletes a byte vector.
wasmtime_error_t * wasmtime_wat2wasm(const char *wat, size_t wat_len, wasm_byte_vec_t *ret)
Converts from the text format of WebAssembly to the binary format.
Result< std::vector< uint8_t > > wat2wasm(std::string_view wat)
Converts the WebAssembly text format into the WebAssembly binary format.
Definition: wat.hh:30