MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / main

Function main

examples/serialize.c:149–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147}
148
149int main() {
150 wasm_byte_vec_t buffer;
151 if (serialize(&buffer)) {
152 return 1;
153 }
154 if (deserialize(&buffer)) {
155 return 1;
156 }
157 wasm_byte_vec_delete(&buffer);
158 return 0;
159}
160
161static void exit_with_error(const char *message, wasmtime_error_t *error,
162 wasm_trap_t *trap) {

Callers

nothing calls this directly

Calls 2

serializeFunction · 0.70
deserializeFunction · 0.70

Tested by

no test coverage detected