Lines Matching refs:ptr
49 static void finalizer(void *ptr) { in finalizer() argument
50 std::unique_ptr<std::any> _ptr(static_cast<std::any *>(ptr)); in finalizer()
56 : ptr(wasmtime_store_new(engine.capi(), nullptr, finalizer)) {} in Store()
82 wasmtime_context_t *ptr; member in wasmtime::Store::Context
86 explicit Context(wasmtime_context_t *ptr) : ptr(ptr) {} in Context() argument
89 Context(Store &store) : Context(wasmtime_store_context(store.ptr.get())) {} in Context()
100 auto *error = wasmtime_context_gc(ptr); in gc()
114 auto *error = wasmtime_context_set_fuel(ptr, fuel); in set_fuel()
126 auto *error = wasmtime_context_get_fuel(ptr, &fuel); in get_fuel()
135 finalizer(static_cast<std::any *>(wasmtime_context_get_data(ptr))); in set_data()
137 ptr, std::make_unique<std::any>(std::move(data)).release()); in set_data()
142 return *static_cast<std::any *>(wasmtime_context_get_data(ptr)); in get_data()
152 auto *error = wasmtime_context_set_wasi(ptr, config.capi_release()); in set_wasi()
167 wasmtime_context_set_epoch_deadline(ptr, ticks_beyond_current); in set_epoch_deadline()
188 const wasmtime_context_t *capi() const { return ptr; } in capi()
191 wasmtime_context_t *capi() { return ptr; } in capi()
226 wasmtime_store_limiter(ptr.get(), memory_size, table_elements, instances, in limiter()
247 ptr.get(), raw_epoch_callback<std::remove_reference_t<F>>, in epoch_deadline_callback()