(store Storelike, src *C.wasmtime_val_t)
| 88 | } |
| 89 | |
| 90 | func takeVal(store Storelike, src *C.wasmtime_val_t) Val { |
| 91 | ret := mkVal(store, src) |
| 92 | C.wasmtime_val_unroot(src) |
| 93 | runtime.KeepAlive(store) |
| 94 | return ret |
| 95 | } |
| 96 | |
| 97 | // Kind returns the kind of value that this `Val` contains. |
| 98 | func (v Val) Kind() ValKind { |