Coverage for wasmtime/_bindings.py: 89%
4191 statements
« prev ^ index » next coverage.py v7.11.3, created at 2026-05-27 18:55 +0000
« prev ^ index » next coverage.py v7.11.3, created at 2026-05-27 18:55 +0000
1# flake8: noqa
2#
3# This is a procedurally generated file, DO NOT EDIT
4# instead edit `./ci/cbindgen.py` at the root of the repo
6import ctypes
7from typing import Any
8from enum import Enum, auto
9from ._ffi import dll, wasm_val_t, wasm_ref_t
11wasm_byte_t = ctypes.c_ubyte
13class wasm_byte_vec_t(ctypes.Structure):
14 _fields_ = [
15 ("size", ctypes.c_size_t),
16 ("data", ctypes.POINTER(wasm_byte_t)),
17 ]
18 size: int
19 data: ctypes._Pointer
21_wasm_byte_vec_new_empty = dll.wasm_byte_vec_new_empty
22_wasm_byte_vec_new_empty.restype = None
23_wasm_byte_vec_new_empty.argtypes = [ctypes.POINTER(wasm_byte_vec_t)]
24def wasm_byte_vec_new_empty(out: Any) -> None:
25 return _wasm_byte_vec_new_empty(out) # type: ignore
27_wasm_byte_vec_new_uninitialized = dll.wasm_byte_vec_new_uninitialized
28_wasm_byte_vec_new_uninitialized.restype = None
29_wasm_byte_vec_new_uninitialized.argtypes = [ctypes.POINTER(wasm_byte_vec_t), ctypes.c_size_t]
30def wasm_byte_vec_new_uninitialized(out: Any, arg1: Any) -> None:
31 return _wasm_byte_vec_new_uninitialized(out, arg1) # type: ignore
33_wasm_byte_vec_new = dll.wasm_byte_vec_new
34_wasm_byte_vec_new.restype = None
35_wasm_byte_vec_new.argtypes = [ctypes.POINTER(wasm_byte_vec_t), ctypes.c_size_t, ctypes.POINTER(wasm_byte_t)]
36def wasm_byte_vec_new(out: Any, arg1: Any, arg2: Any) -> None:
37 return _wasm_byte_vec_new(out, arg1, arg2) # type: ignore
39_wasm_byte_vec_copy = dll.wasm_byte_vec_copy
40_wasm_byte_vec_copy.restype = None
41_wasm_byte_vec_copy.argtypes = [ctypes.POINTER(wasm_byte_vec_t), ctypes.POINTER(wasm_byte_vec_t)]
42def wasm_byte_vec_copy(out: Any, arg1: Any) -> None:
43 return _wasm_byte_vec_copy(out, arg1) # type: ignore
45_wasm_byte_vec_delete = dll.wasm_byte_vec_delete
46_wasm_byte_vec_delete.restype = None
47_wasm_byte_vec_delete.argtypes = [ctypes.POINTER(wasm_byte_vec_t)]
48def wasm_byte_vec_delete(arg0: Any) -> None:
49 return _wasm_byte_vec_delete(arg0) # type: ignore
51wasm_name_t = wasm_byte_vec_t
53class wasm_config_t(ctypes.Structure):
54 pass
56_wasm_config_delete = dll.wasm_config_delete
57_wasm_config_delete.restype = None
58_wasm_config_delete.argtypes = [ctypes.POINTER(wasm_config_t)]
59def wasm_config_delete(arg0: Any) -> None:
60 return _wasm_config_delete(arg0) # type: ignore
62_wasm_config_new = dll.wasm_config_new
63_wasm_config_new.restype = ctypes.POINTER(wasm_config_t)
64_wasm_config_new.argtypes = []
65def wasm_config_new() -> ctypes._Pointer:
66 return _wasm_config_new() # type: ignore
68class wasm_engine_t(ctypes.Structure):
69 pass
71_wasm_engine_delete = dll.wasm_engine_delete
72_wasm_engine_delete.restype = None
73_wasm_engine_delete.argtypes = [ctypes.POINTER(wasm_engine_t)]
74def wasm_engine_delete(arg0: Any) -> None:
75 return _wasm_engine_delete(arg0) # type: ignore
77_wasm_engine_new = dll.wasm_engine_new
78_wasm_engine_new.restype = ctypes.POINTER(wasm_engine_t)
79_wasm_engine_new.argtypes = []
80def wasm_engine_new() -> ctypes._Pointer:
81 return _wasm_engine_new() # type: ignore
83_wasm_engine_new_with_config = dll.wasm_engine_new_with_config
84_wasm_engine_new_with_config.restype = ctypes.POINTER(wasm_engine_t)
85_wasm_engine_new_with_config.argtypes = [ctypes.POINTER(wasm_config_t)]
86def wasm_engine_new_with_config(arg0: Any) -> ctypes._Pointer:
87 return _wasm_engine_new_with_config(arg0) # type: ignore
89class wasm_store_t(ctypes.Structure):
90 pass
92_wasm_store_delete = dll.wasm_store_delete
93_wasm_store_delete.restype = None
94_wasm_store_delete.argtypes = [ctypes.POINTER(wasm_store_t)]
95def wasm_store_delete(arg0: Any) -> None:
96 return _wasm_store_delete(arg0) # type: ignore
98_wasm_store_new = dll.wasm_store_new
99_wasm_store_new.restype = ctypes.POINTER(wasm_store_t)
100_wasm_store_new.argtypes = [ctypes.POINTER(wasm_engine_t)]
101def wasm_store_new(arg0: Any) -> ctypes._Pointer:
102 return _wasm_store_new(arg0) # type: ignore
104wasm_mutability_t = ctypes.c_uint8
106class wasm_mutability_enum(Enum):
107 WASM_CONST = auto()
108 WASM_VAR = auto()
110class wasm_limits_t(ctypes.Structure):
111 _fields_ = [
112 ("min", ctypes.c_uint32),
113 ("max", ctypes.c_uint32),
114 ]
115 min: int
116 max: int
118class wasm_valtype_t(ctypes.Structure):
119 pass
121_wasm_valtype_delete = dll.wasm_valtype_delete
122_wasm_valtype_delete.restype = None
123_wasm_valtype_delete.argtypes = [ctypes.POINTER(wasm_valtype_t)]
124def wasm_valtype_delete(arg0: Any) -> None:
125 return _wasm_valtype_delete(arg0) # type: ignore
127class wasm_valtype_vec_t(ctypes.Structure):
128 _fields_ = [
129 ("size", ctypes.c_size_t),
130 ("data", ctypes.POINTER(ctypes.POINTER(wasm_valtype_t))),
131 ]
132 size: int
133 data: ctypes._Pointer
135_wasm_valtype_vec_new_empty = dll.wasm_valtype_vec_new_empty
136_wasm_valtype_vec_new_empty.restype = None
137_wasm_valtype_vec_new_empty.argtypes = [ctypes.POINTER(wasm_valtype_vec_t)]
138def wasm_valtype_vec_new_empty(out: Any) -> None:
139 return _wasm_valtype_vec_new_empty(out) # type: ignore
141_wasm_valtype_vec_new_uninitialized = dll.wasm_valtype_vec_new_uninitialized
142_wasm_valtype_vec_new_uninitialized.restype = None
143_wasm_valtype_vec_new_uninitialized.argtypes = [ctypes.POINTER(wasm_valtype_vec_t), ctypes.c_size_t]
144def wasm_valtype_vec_new_uninitialized(out: Any, arg1: Any) -> None:
145 return _wasm_valtype_vec_new_uninitialized(out, arg1) # type: ignore
147_wasm_valtype_vec_new = dll.wasm_valtype_vec_new
148_wasm_valtype_vec_new.restype = None
149_wasm_valtype_vec_new.argtypes = [ctypes.POINTER(wasm_valtype_vec_t), ctypes.c_size_t, ctypes.POINTER(ctypes.POINTER(wasm_valtype_t))]
150def wasm_valtype_vec_new(out: Any, arg1: Any, arg2: Any) -> None:
151 return _wasm_valtype_vec_new(out, arg1, arg2) # type: ignore
153_wasm_valtype_vec_copy = dll.wasm_valtype_vec_copy
154_wasm_valtype_vec_copy.restype = None
155_wasm_valtype_vec_copy.argtypes = [ctypes.POINTER(wasm_valtype_vec_t), ctypes.POINTER(wasm_valtype_vec_t)]
156def wasm_valtype_vec_copy(out: Any, arg1: Any) -> None:
157 return _wasm_valtype_vec_copy(out, arg1) # type: ignore
159_wasm_valtype_vec_delete = dll.wasm_valtype_vec_delete
160_wasm_valtype_vec_delete.restype = None
161_wasm_valtype_vec_delete.argtypes = [ctypes.POINTER(wasm_valtype_vec_t)]
162def wasm_valtype_vec_delete(arg0: Any) -> None:
163 return _wasm_valtype_vec_delete(arg0) # type: ignore
165_wasm_valtype_copy = dll.wasm_valtype_copy
166_wasm_valtype_copy.restype = ctypes.POINTER(wasm_valtype_t)
167_wasm_valtype_copy.argtypes = [ctypes.POINTER(wasm_valtype_t)]
168def wasm_valtype_copy(arg0: Any) -> ctypes._Pointer:
169 return _wasm_valtype_copy(arg0) # type: ignore
171wasm_valkind_t = ctypes.c_uint8
173class wasm_valkind_enum(Enum):
174 WASM_I32 = auto()
175 WASM_I64 = auto()
176 WASM_F32 = auto()
177 WASM_F64 = auto()
178 WASM_EXTERNREF = 128
179 WASM_FUNCREF = auto()
181_wasm_valtype_new = dll.wasm_valtype_new
182_wasm_valtype_new.restype = ctypes.POINTER(wasm_valtype_t)
183_wasm_valtype_new.argtypes = [wasm_valkind_t]
184def wasm_valtype_new(arg0: Any) -> ctypes._Pointer:
185 return _wasm_valtype_new(arg0) # type: ignore
187_wasm_valtype_kind = dll.wasm_valtype_kind
188_wasm_valtype_kind.restype = wasm_valkind_t
189_wasm_valtype_kind.argtypes = [ctypes.POINTER(wasm_valtype_t)]
190def wasm_valtype_kind(arg0: Any) -> wasm_valkind_t:
191 return _wasm_valtype_kind(arg0) # type: ignore
193class wasm_functype_t(ctypes.Structure):
194 pass
196_wasm_functype_delete = dll.wasm_functype_delete
197_wasm_functype_delete.restype = None
198_wasm_functype_delete.argtypes = [ctypes.POINTER(wasm_functype_t)]
199def wasm_functype_delete(arg0: Any) -> None:
200 return _wasm_functype_delete(arg0) # type: ignore
202class wasm_functype_vec_t(ctypes.Structure):
203 _fields_ = [
204 ("size", ctypes.c_size_t),
205 ("data", ctypes.POINTER(ctypes.POINTER(wasm_functype_t))),
206 ]
207 size: int
208 data: ctypes._Pointer
210_wasm_functype_vec_new_empty = dll.wasm_functype_vec_new_empty
211_wasm_functype_vec_new_empty.restype = None
212_wasm_functype_vec_new_empty.argtypes = [ctypes.POINTER(wasm_functype_vec_t)]
213def wasm_functype_vec_new_empty(out: Any) -> None:
214 return _wasm_functype_vec_new_empty(out) # type: ignore
216_wasm_functype_vec_new_uninitialized = dll.wasm_functype_vec_new_uninitialized
217_wasm_functype_vec_new_uninitialized.restype = None
218_wasm_functype_vec_new_uninitialized.argtypes = [ctypes.POINTER(wasm_functype_vec_t), ctypes.c_size_t]
219def wasm_functype_vec_new_uninitialized(out: Any, arg1: Any) -> None:
220 return _wasm_functype_vec_new_uninitialized(out, arg1) # type: ignore
222_wasm_functype_vec_new = dll.wasm_functype_vec_new
223_wasm_functype_vec_new.restype = None
224_wasm_functype_vec_new.argtypes = [ctypes.POINTER(wasm_functype_vec_t), ctypes.c_size_t, ctypes.POINTER(ctypes.POINTER(wasm_functype_t))]
225def wasm_functype_vec_new(out: Any, arg1: Any, arg2: Any) -> None:
226 return _wasm_functype_vec_new(out, arg1, arg2) # type: ignore
228_wasm_functype_vec_copy = dll.wasm_functype_vec_copy
229_wasm_functype_vec_copy.restype = None
230_wasm_functype_vec_copy.argtypes = [ctypes.POINTER(wasm_functype_vec_t), ctypes.POINTER(wasm_functype_vec_t)]
231def wasm_functype_vec_copy(out: Any, arg1: Any) -> None:
232 return _wasm_functype_vec_copy(out, arg1) # type: ignore
234_wasm_functype_vec_delete = dll.wasm_functype_vec_delete
235_wasm_functype_vec_delete.restype = None
236_wasm_functype_vec_delete.argtypes = [ctypes.POINTER(wasm_functype_vec_t)]
237def wasm_functype_vec_delete(arg0: Any) -> None:
238 return _wasm_functype_vec_delete(arg0) # type: ignore
240_wasm_functype_copy = dll.wasm_functype_copy
241_wasm_functype_copy.restype = ctypes.POINTER(wasm_functype_t)
242_wasm_functype_copy.argtypes = [ctypes.POINTER(wasm_functype_t)]
243def wasm_functype_copy(arg0: Any) -> ctypes._Pointer:
244 return _wasm_functype_copy(arg0) # type: ignore
246_wasm_functype_new = dll.wasm_functype_new
247_wasm_functype_new.restype = ctypes.POINTER(wasm_functype_t)
248_wasm_functype_new.argtypes = [ctypes.POINTER(wasm_valtype_vec_t), ctypes.POINTER(wasm_valtype_vec_t)]
249def wasm_functype_new(params: Any, results: Any) -> ctypes._Pointer:
250 return _wasm_functype_new(params, results) # type: ignore
252_wasm_functype_params = dll.wasm_functype_params
253_wasm_functype_params.restype = ctypes.POINTER(wasm_valtype_vec_t)
254_wasm_functype_params.argtypes = [ctypes.POINTER(wasm_functype_t)]
255def wasm_functype_params(arg0: Any) -> ctypes._Pointer:
256 return _wasm_functype_params(arg0) # type: ignore
258_wasm_functype_results = dll.wasm_functype_results
259_wasm_functype_results.restype = ctypes.POINTER(wasm_valtype_vec_t)
260_wasm_functype_results.argtypes = [ctypes.POINTER(wasm_functype_t)]
261def wasm_functype_results(arg0: Any) -> ctypes._Pointer:
262 return _wasm_functype_results(arg0) # type: ignore
264class wasm_globaltype_t(ctypes.Structure):
265 pass
267_wasm_globaltype_delete = dll.wasm_globaltype_delete
268_wasm_globaltype_delete.restype = None
269_wasm_globaltype_delete.argtypes = [ctypes.POINTER(wasm_globaltype_t)]
270def wasm_globaltype_delete(arg0: Any) -> None:
271 return _wasm_globaltype_delete(arg0) # type: ignore
273class wasm_globaltype_vec_t(ctypes.Structure):
274 _fields_ = [
275 ("size", ctypes.c_size_t),
276 ("data", ctypes.POINTER(ctypes.POINTER(wasm_globaltype_t))),
277 ]
278 size: int
279 data: ctypes._Pointer
281_wasm_globaltype_vec_new_empty = dll.wasm_globaltype_vec_new_empty
282_wasm_globaltype_vec_new_empty.restype = None
283_wasm_globaltype_vec_new_empty.argtypes = [ctypes.POINTER(wasm_globaltype_vec_t)]
284def wasm_globaltype_vec_new_empty(out: Any) -> None:
285 return _wasm_globaltype_vec_new_empty(out) # type: ignore
287_wasm_globaltype_vec_new_uninitialized = dll.wasm_globaltype_vec_new_uninitialized
288_wasm_globaltype_vec_new_uninitialized.restype = None
289_wasm_globaltype_vec_new_uninitialized.argtypes = [ctypes.POINTER(wasm_globaltype_vec_t), ctypes.c_size_t]
290def wasm_globaltype_vec_new_uninitialized(out: Any, arg1: Any) -> None:
291 return _wasm_globaltype_vec_new_uninitialized(out, arg1) # type: ignore
293_wasm_globaltype_vec_new = dll.wasm_globaltype_vec_new
294_wasm_globaltype_vec_new.restype = None
295_wasm_globaltype_vec_new.argtypes = [ctypes.POINTER(wasm_globaltype_vec_t), ctypes.c_size_t, ctypes.POINTER(ctypes.POINTER(wasm_globaltype_t))]
296def wasm_globaltype_vec_new(out: Any, arg1: Any, arg2: Any) -> None:
297 return _wasm_globaltype_vec_new(out, arg1, arg2) # type: ignore
299_wasm_globaltype_vec_copy = dll.wasm_globaltype_vec_copy
300_wasm_globaltype_vec_copy.restype = None
301_wasm_globaltype_vec_copy.argtypes = [ctypes.POINTER(wasm_globaltype_vec_t), ctypes.POINTER(wasm_globaltype_vec_t)]
302def wasm_globaltype_vec_copy(out: Any, arg1: Any) -> None:
303 return _wasm_globaltype_vec_copy(out, arg1) # type: ignore
305_wasm_globaltype_vec_delete = dll.wasm_globaltype_vec_delete
306_wasm_globaltype_vec_delete.restype = None
307_wasm_globaltype_vec_delete.argtypes = [ctypes.POINTER(wasm_globaltype_vec_t)]
308def wasm_globaltype_vec_delete(arg0: Any) -> None:
309 return _wasm_globaltype_vec_delete(arg0) # type: ignore
311_wasm_globaltype_copy = dll.wasm_globaltype_copy
312_wasm_globaltype_copy.restype = ctypes.POINTER(wasm_globaltype_t)
313_wasm_globaltype_copy.argtypes = [ctypes.POINTER(wasm_globaltype_t)]
314def wasm_globaltype_copy(arg0: Any) -> ctypes._Pointer:
315 return _wasm_globaltype_copy(arg0) # type: ignore
317_wasm_globaltype_new = dll.wasm_globaltype_new
318_wasm_globaltype_new.restype = ctypes.POINTER(wasm_globaltype_t)
319_wasm_globaltype_new.argtypes = [ctypes.POINTER(wasm_valtype_t), wasm_mutability_t]
320def wasm_globaltype_new(arg0: Any, arg1: Any) -> ctypes._Pointer:
321 return _wasm_globaltype_new(arg0, arg1) # type: ignore
323_wasm_globaltype_content = dll.wasm_globaltype_content
324_wasm_globaltype_content.restype = ctypes.POINTER(wasm_valtype_t)
325_wasm_globaltype_content.argtypes = [ctypes.POINTER(wasm_globaltype_t)]
326def wasm_globaltype_content(arg0: Any) -> ctypes._Pointer:
327 return _wasm_globaltype_content(arg0) # type: ignore
329_wasm_globaltype_mutability = dll.wasm_globaltype_mutability
330_wasm_globaltype_mutability.restype = wasm_mutability_t
331_wasm_globaltype_mutability.argtypes = [ctypes.POINTER(wasm_globaltype_t)]
332def wasm_globaltype_mutability(arg0: Any) -> wasm_mutability_t:
333 return _wasm_globaltype_mutability(arg0) # type: ignore
335class wasm_tabletype_t(ctypes.Structure):
336 pass
338_wasm_tabletype_delete = dll.wasm_tabletype_delete
339_wasm_tabletype_delete.restype = None
340_wasm_tabletype_delete.argtypes = [ctypes.POINTER(wasm_tabletype_t)]
341def wasm_tabletype_delete(arg0: Any) -> None:
342 return _wasm_tabletype_delete(arg0) # type: ignore
344class wasm_tabletype_vec_t(ctypes.Structure):
345 _fields_ = [
346 ("size", ctypes.c_size_t),
347 ("data", ctypes.POINTER(ctypes.POINTER(wasm_tabletype_t))),
348 ]
349 size: int
350 data: ctypes._Pointer
352_wasm_tabletype_vec_new_empty = dll.wasm_tabletype_vec_new_empty
353_wasm_tabletype_vec_new_empty.restype = None
354_wasm_tabletype_vec_new_empty.argtypes = [ctypes.POINTER(wasm_tabletype_vec_t)]
355def wasm_tabletype_vec_new_empty(out: Any) -> None:
356 return _wasm_tabletype_vec_new_empty(out) # type: ignore
358_wasm_tabletype_vec_new_uninitialized = dll.wasm_tabletype_vec_new_uninitialized
359_wasm_tabletype_vec_new_uninitialized.restype = None
360_wasm_tabletype_vec_new_uninitialized.argtypes = [ctypes.POINTER(wasm_tabletype_vec_t), ctypes.c_size_t]
361def wasm_tabletype_vec_new_uninitialized(out: Any, arg1: Any) -> None:
362 return _wasm_tabletype_vec_new_uninitialized(out, arg1) # type: ignore
364_wasm_tabletype_vec_new = dll.wasm_tabletype_vec_new
365_wasm_tabletype_vec_new.restype = None
366_wasm_tabletype_vec_new.argtypes = [ctypes.POINTER(wasm_tabletype_vec_t), ctypes.c_size_t, ctypes.POINTER(ctypes.POINTER(wasm_tabletype_t))]
367def wasm_tabletype_vec_new(out: Any, arg1: Any, arg2: Any) -> None:
368 return _wasm_tabletype_vec_new(out, arg1, arg2) # type: ignore
370_wasm_tabletype_vec_copy = dll.wasm_tabletype_vec_copy
371_wasm_tabletype_vec_copy.restype = None
372_wasm_tabletype_vec_copy.argtypes = [ctypes.POINTER(wasm_tabletype_vec_t), ctypes.POINTER(wasm_tabletype_vec_t)]
373def wasm_tabletype_vec_copy(out: Any, arg1: Any) -> None:
374 return _wasm_tabletype_vec_copy(out, arg1) # type: ignore
376_wasm_tabletype_vec_delete = dll.wasm_tabletype_vec_delete
377_wasm_tabletype_vec_delete.restype = None
378_wasm_tabletype_vec_delete.argtypes = [ctypes.POINTER(wasm_tabletype_vec_t)]
379def wasm_tabletype_vec_delete(arg0: Any) -> None:
380 return _wasm_tabletype_vec_delete(arg0) # type: ignore
382_wasm_tabletype_copy = dll.wasm_tabletype_copy
383_wasm_tabletype_copy.restype = ctypes.POINTER(wasm_tabletype_t)
384_wasm_tabletype_copy.argtypes = [ctypes.POINTER(wasm_tabletype_t)]
385def wasm_tabletype_copy(arg0: Any) -> ctypes._Pointer:
386 return _wasm_tabletype_copy(arg0) # type: ignore
388_wasm_tabletype_new = dll.wasm_tabletype_new
389_wasm_tabletype_new.restype = ctypes.POINTER(wasm_tabletype_t)
390_wasm_tabletype_new.argtypes = [ctypes.POINTER(wasm_valtype_t), ctypes.POINTER(wasm_limits_t)]
391def wasm_tabletype_new(arg0: Any, arg1: Any) -> ctypes._Pointer:
392 return _wasm_tabletype_new(arg0, arg1) # type: ignore
394_wasm_tabletype_element = dll.wasm_tabletype_element
395_wasm_tabletype_element.restype = ctypes.POINTER(wasm_valtype_t)
396_wasm_tabletype_element.argtypes = [ctypes.POINTER(wasm_tabletype_t)]
397def wasm_tabletype_element(arg0: Any) -> ctypes._Pointer:
398 return _wasm_tabletype_element(arg0) # type: ignore
400_wasm_tabletype_limits = dll.wasm_tabletype_limits
401_wasm_tabletype_limits.restype = ctypes.POINTER(wasm_limits_t)
402_wasm_tabletype_limits.argtypes = [ctypes.POINTER(wasm_tabletype_t)]
403def wasm_tabletype_limits(arg0: Any) -> ctypes._Pointer:
404 return _wasm_tabletype_limits(arg0) # type: ignore
406class wasm_memorytype_t(ctypes.Structure):
407 pass
409_wasm_memorytype_delete = dll.wasm_memorytype_delete
410_wasm_memorytype_delete.restype = None
411_wasm_memorytype_delete.argtypes = [ctypes.POINTER(wasm_memorytype_t)]
412def wasm_memorytype_delete(arg0: Any) -> None:
413 return _wasm_memorytype_delete(arg0) # type: ignore
415class wasm_memorytype_vec_t(ctypes.Structure):
416 _fields_ = [
417 ("size", ctypes.c_size_t),
418 ("data", ctypes.POINTER(ctypes.POINTER(wasm_memorytype_t))),
419 ]
420 size: int
421 data: ctypes._Pointer
423_wasm_memorytype_vec_new_empty = dll.wasm_memorytype_vec_new_empty
424_wasm_memorytype_vec_new_empty.restype = None
425_wasm_memorytype_vec_new_empty.argtypes = [ctypes.POINTER(wasm_memorytype_vec_t)]
426def wasm_memorytype_vec_new_empty(out: Any) -> None:
427 return _wasm_memorytype_vec_new_empty(out) # type: ignore
429_wasm_memorytype_vec_new_uninitialized = dll.wasm_memorytype_vec_new_uninitialized
430_wasm_memorytype_vec_new_uninitialized.restype = None
431_wasm_memorytype_vec_new_uninitialized.argtypes = [ctypes.POINTER(wasm_memorytype_vec_t), ctypes.c_size_t]
432def wasm_memorytype_vec_new_uninitialized(out: Any, arg1: Any) -> None:
433 return _wasm_memorytype_vec_new_uninitialized(out, arg1) # type: ignore
435_wasm_memorytype_vec_new = dll.wasm_memorytype_vec_new
436_wasm_memorytype_vec_new.restype = None
437_wasm_memorytype_vec_new.argtypes = [ctypes.POINTER(wasm_memorytype_vec_t), ctypes.c_size_t, ctypes.POINTER(ctypes.POINTER(wasm_memorytype_t))]
438def wasm_memorytype_vec_new(out: Any, arg1: Any, arg2: Any) -> None:
439 return _wasm_memorytype_vec_new(out, arg1, arg2) # type: ignore
441_wasm_memorytype_vec_copy = dll.wasm_memorytype_vec_copy
442_wasm_memorytype_vec_copy.restype = None
443_wasm_memorytype_vec_copy.argtypes = [ctypes.POINTER(wasm_memorytype_vec_t), ctypes.POINTER(wasm_memorytype_vec_t)]
444def wasm_memorytype_vec_copy(out: Any, arg1: Any) -> None:
445 return _wasm_memorytype_vec_copy(out, arg1) # type: ignore
447_wasm_memorytype_vec_delete = dll.wasm_memorytype_vec_delete
448_wasm_memorytype_vec_delete.restype = None
449_wasm_memorytype_vec_delete.argtypes = [ctypes.POINTER(wasm_memorytype_vec_t)]
450def wasm_memorytype_vec_delete(arg0: Any) -> None:
451 return _wasm_memorytype_vec_delete(arg0) # type: ignore
453_wasm_memorytype_copy = dll.wasm_memorytype_copy
454_wasm_memorytype_copy.restype = ctypes.POINTER(wasm_memorytype_t)
455_wasm_memorytype_copy.argtypes = [ctypes.POINTER(wasm_memorytype_t)]
456def wasm_memorytype_copy(arg0: Any) -> ctypes._Pointer:
457 return _wasm_memorytype_copy(arg0) # type: ignore
459_wasm_memorytype_new = dll.wasm_memorytype_new
460_wasm_memorytype_new.restype = ctypes.POINTER(wasm_memorytype_t)
461_wasm_memorytype_new.argtypes = [ctypes.POINTER(wasm_limits_t)]
462def wasm_memorytype_new(arg0: Any) -> ctypes._Pointer:
463 return _wasm_memorytype_new(arg0) # type: ignore
465_wasm_memorytype_limits = dll.wasm_memorytype_limits
466_wasm_memorytype_limits.restype = ctypes.POINTER(wasm_limits_t)
467_wasm_memorytype_limits.argtypes = [ctypes.POINTER(wasm_memorytype_t)]
468def wasm_memorytype_limits(arg0: Any) -> ctypes._Pointer:
469 return _wasm_memorytype_limits(arg0) # type: ignore
471class wasm_tagtype_t(ctypes.Structure):
472 pass
474_wasm_tagtype_delete = dll.wasm_tagtype_delete
475_wasm_tagtype_delete.restype = None
476_wasm_tagtype_delete.argtypes = [ctypes.POINTER(wasm_tagtype_t)]
477def wasm_tagtype_delete(arg0: Any) -> None:
478 return _wasm_tagtype_delete(arg0) # type: ignore
480class wasm_tagtype_vec_t(ctypes.Structure):
481 _fields_ = [
482 ("size", ctypes.c_size_t),
483 ("data", ctypes.POINTER(ctypes.POINTER(wasm_tagtype_t))),
484 ]
485 size: int
486 data: ctypes._Pointer
488_wasm_tagtype_copy = dll.wasm_tagtype_copy
489_wasm_tagtype_copy.restype = ctypes.POINTER(wasm_tagtype_t)
490_wasm_tagtype_copy.argtypes = [ctypes.POINTER(wasm_tagtype_t)]
491def wasm_tagtype_copy(arg0: Any) -> ctypes._Pointer:
492 return _wasm_tagtype_copy(arg0) # type: ignore
494_wasm_tagtype_new = dll.wasm_tagtype_new
495_wasm_tagtype_new.restype = ctypes.POINTER(wasm_tagtype_t)
496_wasm_tagtype_new.argtypes = [ctypes.POINTER(wasm_functype_t)]
497def wasm_tagtype_new(arg0: Any) -> ctypes._Pointer:
498 return _wasm_tagtype_new(arg0) # type: ignore
500_wasm_tagtype_functype = dll.wasm_tagtype_functype
501_wasm_tagtype_functype.restype = ctypes.POINTER(wasm_functype_t)
502_wasm_tagtype_functype.argtypes = [ctypes.POINTER(wasm_tagtype_t)]
503def wasm_tagtype_functype(arg0: Any) -> ctypes._Pointer:
504 return _wasm_tagtype_functype(arg0) # type: ignore
506class wasm_externtype_t(ctypes.Structure):
507 pass
509_wasm_externtype_delete = dll.wasm_externtype_delete
510_wasm_externtype_delete.restype = None
511_wasm_externtype_delete.argtypes = [ctypes.POINTER(wasm_externtype_t)]
512def wasm_externtype_delete(arg0: Any) -> None:
513 return _wasm_externtype_delete(arg0) # type: ignore
515class wasm_externtype_vec_t(ctypes.Structure):
516 _fields_ = [
517 ("size", ctypes.c_size_t),
518 ("data", ctypes.POINTER(ctypes.POINTER(wasm_externtype_t))),
519 ]
520 size: int
521 data: ctypes._Pointer
523_wasm_externtype_vec_new_empty = dll.wasm_externtype_vec_new_empty
524_wasm_externtype_vec_new_empty.restype = None
525_wasm_externtype_vec_new_empty.argtypes = [ctypes.POINTER(wasm_externtype_vec_t)]
526def wasm_externtype_vec_new_empty(out: Any) -> None:
527 return _wasm_externtype_vec_new_empty(out) # type: ignore
529_wasm_externtype_vec_new_uninitialized = dll.wasm_externtype_vec_new_uninitialized
530_wasm_externtype_vec_new_uninitialized.restype = None
531_wasm_externtype_vec_new_uninitialized.argtypes = [ctypes.POINTER(wasm_externtype_vec_t), ctypes.c_size_t]
532def wasm_externtype_vec_new_uninitialized(out: Any, arg1: Any) -> None:
533 return _wasm_externtype_vec_new_uninitialized(out, arg1) # type: ignore
535_wasm_externtype_vec_new = dll.wasm_externtype_vec_new
536_wasm_externtype_vec_new.restype = None
537_wasm_externtype_vec_new.argtypes = [ctypes.POINTER(wasm_externtype_vec_t), ctypes.c_size_t, ctypes.POINTER(ctypes.POINTER(wasm_externtype_t))]
538def wasm_externtype_vec_new(out: Any, arg1: Any, arg2: Any) -> None:
539 return _wasm_externtype_vec_new(out, arg1, arg2) # type: ignore
541_wasm_externtype_vec_copy = dll.wasm_externtype_vec_copy
542_wasm_externtype_vec_copy.restype = None
543_wasm_externtype_vec_copy.argtypes = [ctypes.POINTER(wasm_externtype_vec_t), ctypes.POINTER(wasm_externtype_vec_t)]
544def wasm_externtype_vec_copy(out: Any, arg1: Any) -> None:
545 return _wasm_externtype_vec_copy(out, arg1) # type: ignore
547_wasm_externtype_vec_delete = dll.wasm_externtype_vec_delete
548_wasm_externtype_vec_delete.restype = None
549_wasm_externtype_vec_delete.argtypes = [ctypes.POINTER(wasm_externtype_vec_t)]
550def wasm_externtype_vec_delete(arg0: Any) -> None:
551 return _wasm_externtype_vec_delete(arg0) # type: ignore
553_wasm_externtype_copy = dll.wasm_externtype_copy
554_wasm_externtype_copy.restype = ctypes.POINTER(wasm_externtype_t)
555_wasm_externtype_copy.argtypes = [ctypes.POINTER(wasm_externtype_t)]
556def wasm_externtype_copy(arg0: Any) -> ctypes._Pointer:
557 return _wasm_externtype_copy(arg0) # type: ignore
559wasm_externkind_t = ctypes.c_uint8
561class wasm_externkind_enum(Enum):
562 WASM_EXTERN_FUNC = auto()
563 WASM_EXTERN_GLOBAL = auto()
564 WASM_EXTERN_TABLE = auto()
565 WASM_EXTERN_MEMORY = auto()
566 WASM_EXTERN_TAG = auto()
568_wasm_externtype_kind = dll.wasm_externtype_kind
569_wasm_externtype_kind.restype = wasm_externkind_t
570_wasm_externtype_kind.argtypes = [ctypes.POINTER(wasm_externtype_t)]
571def wasm_externtype_kind(arg0: Any) -> wasm_externkind_t:
572 return _wasm_externtype_kind(arg0) # type: ignore
574_wasm_functype_as_externtype = dll.wasm_functype_as_externtype
575_wasm_functype_as_externtype.restype = ctypes.POINTER(wasm_externtype_t)
576_wasm_functype_as_externtype.argtypes = [ctypes.POINTER(wasm_functype_t)]
577def wasm_functype_as_externtype(arg0: Any) -> ctypes._Pointer:
578 return _wasm_functype_as_externtype(arg0) # type: ignore
580_wasm_globaltype_as_externtype = dll.wasm_globaltype_as_externtype
581_wasm_globaltype_as_externtype.restype = ctypes.POINTER(wasm_externtype_t)
582_wasm_globaltype_as_externtype.argtypes = [ctypes.POINTER(wasm_globaltype_t)]
583def wasm_globaltype_as_externtype(arg0: Any) -> ctypes._Pointer:
584 return _wasm_globaltype_as_externtype(arg0) # type: ignore
586_wasm_tabletype_as_externtype = dll.wasm_tabletype_as_externtype
587_wasm_tabletype_as_externtype.restype = ctypes.POINTER(wasm_externtype_t)
588_wasm_tabletype_as_externtype.argtypes = [ctypes.POINTER(wasm_tabletype_t)]
589def wasm_tabletype_as_externtype(arg0: Any) -> ctypes._Pointer:
590 return _wasm_tabletype_as_externtype(arg0) # type: ignore
592_wasm_memorytype_as_externtype = dll.wasm_memorytype_as_externtype
593_wasm_memorytype_as_externtype.restype = ctypes.POINTER(wasm_externtype_t)
594_wasm_memorytype_as_externtype.argtypes = [ctypes.POINTER(wasm_memorytype_t)]
595def wasm_memorytype_as_externtype(arg0: Any) -> ctypes._Pointer:
596 return _wasm_memorytype_as_externtype(arg0) # type: ignore
598_wasm_tagtype_as_externtype = dll.wasm_tagtype_as_externtype
599_wasm_tagtype_as_externtype.restype = ctypes.POINTER(wasm_externtype_t)
600_wasm_tagtype_as_externtype.argtypes = [ctypes.POINTER(wasm_tagtype_t)]
601def wasm_tagtype_as_externtype(arg0: Any) -> ctypes._Pointer:
602 return _wasm_tagtype_as_externtype(arg0) # type: ignore
604_wasm_externtype_as_functype = dll.wasm_externtype_as_functype
605_wasm_externtype_as_functype.restype = ctypes.POINTER(wasm_functype_t)
606_wasm_externtype_as_functype.argtypes = [ctypes.POINTER(wasm_externtype_t)]
607def wasm_externtype_as_functype(arg0: Any) -> ctypes._Pointer:
608 return _wasm_externtype_as_functype(arg0) # type: ignore
610_wasm_externtype_as_globaltype = dll.wasm_externtype_as_globaltype
611_wasm_externtype_as_globaltype.restype = ctypes.POINTER(wasm_globaltype_t)
612_wasm_externtype_as_globaltype.argtypes = [ctypes.POINTER(wasm_externtype_t)]
613def wasm_externtype_as_globaltype(arg0: Any) -> ctypes._Pointer:
614 return _wasm_externtype_as_globaltype(arg0) # type: ignore
616_wasm_externtype_as_tabletype = dll.wasm_externtype_as_tabletype
617_wasm_externtype_as_tabletype.restype = ctypes.POINTER(wasm_tabletype_t)
618_wasm_externtype_as_tabletype.argtypes = [ctypes.POINTER(wasm_externtype_t)]
619def wasm_externtype_as_tabletype(arg0: Any) -> ctypes._Pointer:
620 return _wasm_externtype_as_tabletype(arg0) # type: ignore
622_wasm_externtype_as_memorytype = dll.wasm_externtype_as_memorytype
623_wasm_externtype_as_memorytype.restype = ctypes.POINTER(wasm_memorytype_t)
624_wasm_externtype_as_memorytype.argtypes = [ctypes.POINTER(wasm_externtype_t)]
625def wasm_externtype_as_memorytype(arg0: Any) -> ctypes._Pointer:
626 return _wasm_externtype_as_memorytype(arg0) # type: ignore
628_wasm_externtype_as_tagtype = dll.wasm_externtype_as_tagtype
629_wasm_externtype_as_tagtype.restype = ctypes.POINTER(wasm_tagtype_t)
630_wasm_externtype_as_tagtype.argtypes = [ctypes.POINTER(wasm_externtype_t)]
631def wasm_externtype_as_tagtype(arg0: Any) -> ctypes._Pointer:
632 return _wasm_externtype_as_tagtype(arg0) # type: ignore
634_wasm_functype_as_externtype_const = dll.wasm_functype_as_externtype_const
635_wasm_functype_as_externtype_const.restype = ctypes.POINTER(wasm_externtype_t)
636_wasm_functype_as_externtype_const.argtypes = [ctypes.POINTER(wasm_functype_t)]
637def wasm_functype_as_externtype_const(arg0: Any) -> ctypes._Pointer:
638 return _wasm_functype_as_externtype_const(arg0) # type: ignore
640_wasm_globaltype_as_externtype_const = dll.wasm_globaltype_as_externtype_const
641_wasm_globaltype_as_externtype_const.restype = ctypes.POINTER(wasm_externtype_t)
642_wasm_globaltype_as_externtype_const.argtypes = [ctypes.POINTER(wasm_globaltype_t)]
643def wasm_globaltype_as_externtype_const(arg0: Any) -> ctypes._Pointer:
644 return _wasm_globaltype_as_externtype_const(arg0) # type: ignore
646_wasm_tabletype_as_externtype_const = dll.wasm_tabletype_as_externtype_const
647_wasm_tabletype_as_externtype_const.restype = ctypes.POINTER(wasm_externtype_t)
648_wasm_tabletype_as_externtype_const.argtypes = [ctypes.POINTER(wasm_tabletype_t)]
649def wasm_tabletype_as_externtype_const(arg0: Any) -> ctypes._Pointer:
650 return _wasm_tabletype_as_externtype_const(arg0) # type: ignore
652_wasm_memorytype_as_externtype_const = dll.wasm_memorytype_as_externtype_const
653_wasm_memorytype_as_externtype_const.restype = ctypes.POINTER(wasm_externtype_t)
654_wasm_memorytype_as_externtype_const.argtypes = [ctypes.POINTER(wasm_memorytype_t)]
655def wasm_memorytype_as_externtype_const(arg0: Any) -> ctypes._Pointer:
656 return _wasm_memorytype_as_externtype_const(arg0) # type: ignore
658_wasm_tagtype_as_externtype_const = dll.wasm_tagtype_as_externtype_const
659_wasm_tagtype_as_externtype_const.restype = ctypes.POINTER(wasm_externtype_t)
660_wasm_tagtype_as_externtype_const.argtypes = [ctypes.POINTER(wasm_tagtype_t)]
661def wasm_tagtype_as_externtype_const(arg0: Any) -> ctypes._Pointer:
662 return _wasm_tagtype_as_externtype_const(arg0) # type: ignore
664_wasm_externtype_as_functype_const = dll.wasm_externtype_as_functype_const
665_wasm_externtype_as_functype_const.restype = ctypes.POINTER(wasm_functype_t)
666_wasm_externtype_as_functype_const.argtypes = [ctypes.POINTER(wasm_externtype_t)]
667def wasm_externtype_as_functype_const(arg0: Any) -> ctypes._Pointer:
668 return _wasm_externtype_as_functype_const(arg0) # type: ignore
670_wasm_externtype_as_globaltype_const = dll.wasm_externtype_as_globaltype_const
671_wasm_externtype_as_globaltype_const.restype = ctypes.POINTER(wasm_globaltype_t)
672_wasm_externtype_as_globaltype_const.argtypes = [ctypes.POINTER(wasm_externtype_t)]
673def wasm_externtype_as_globaltype_const(arg0: Any) -> ctypes._Pointer:
674 return _wasm_externtype_as_globaltype_const(arg0) # type: ignore
676_wasm_externtype_as_tabletype_const = dll.wasm_externtype_as_tabletype_const
677_wasm_externtype_as_tabletype_const.restype = ctypes.POINTER(wasm_tabletype_t)
678_wasm_externtype_as_tabletype_const.argtypes = [ctypes.POINTER(wasm_externtype_t)]
679def wasm_externtype_as_tabletype_const(arg0: Any) -> ctypes._Pointer:
680 return _wasm_externtype_as_tabletype_const(arg0) # type: ignore
682_wasm_externtype_as_memorytype_const = dll.wasm_externtype_as_memorytype_const
683_wasm_externtype_as_memorytype_const.restype = ctypes.POINTER(wasm_memorytype_t)
684_wasm_externtype_as_memorytype_const.argtypes = [ctypes.POINTER(wasm_externtype_t)]
685def wasm_externtype_as_memorytype_const(arg0: Any) -> ctypes._Pointer:
686 return _wasm_externtype_as_memorytype_const(arg0) # type: ignore
688_wasm_externtype_as_tagtype_const = dll.wasm_externtype_as_tagtype_const
689_wasm_externtype_as_tagtype_const.restype = ctypes.POINTER(wasm_tagtype_t)
690_wasm_externtype_as_tagtype_const.argtypes = [ctypes.POINTER(wasm_externtype_t)]
691def wasm_externtype_as_tagtype_const(arg0: Any) -> ctypes._Pointer:
692 return _wasm_externtype_as_tagtype_const(arg0) # type: ignore
694class wasm_importtype_t(ctypes.Structure):
695 pass
697_wasm_importtype_delete = dll.wasm_importtype_delete
698_wasm_importtype_delete.restype = None
699_wasm_importtype_delete.argtypes = [ctypes.POINTER(wasm_importtype_t)]
700def wasm_importtype_delete(arg0: Any) -> None:
701 return _wasm_importtype_delete(arg0) # type: ignore
703class wasm_importtype_vec_t(ctypes.Structure):
704 _fields_ = [
705 ("size", ctypes.c_size_t),
706 ("data", ctypes.POINTER(ctypes.POINTER(wasm_importtype_t))),
707 ]
708 size: int
709 data: ctypes._Pointer
711_wasm_importtype_vec_new_empty = dll.wasm_importtype_vec_new_empty
712_wasm_importtype_vec_new_empty.restype = None
713_wasm_importtype_vec_new_empty.argtypes = [ctypes.POINTER(wasm_importtype_vec_t)]
714def wasm_importtype_vec_new_empty(out: Any) -> None:
715 return _wasm_importtype_vec_new_empty(out) # type: ignore
717_wasm_importtype_vec_new_uninitialized = dll.wasm_importtype_vec_new_uninitialized
718_wasm_importtype_vec_new_uninitialized.restype = None
719_wasm_importtype_vec_new_uninitialized.argtypes = [ctypes.POINTER(wasm_importtype_vec_t), ctypes.c_size_t]
720def wasm_importtype_vec_new_uninitialized(out: Any, arg1: Any) -> None:
721 return _wasm_importtype_vec_new_uninitialized(out, arg1) # type: ignore
723_wasm_importtype_vec_new = dll.wasm_importtype_vec_new
724_wasm_importtype_vec_new.restype = None
725_wasm_importtype_vec_new.argtypes = [ctypes.POINTER(wasm_importtype_vec_t), ctypes.c_size_t, ctypes.POINTER(ctypes.POINTER(wasm_importtype_t))]
726def wasm_importtype_vec_new(out: Any, arg1: Any, arg2: Any) -> None:
727 return _wasm_importtype_vec_new(out, arg1, arg2) # type: ignore
729_wasm_importtype_vec_copy = dll.wasm_importtype_vec_copy
730_wasm_importtype_vec_copy.restype = None
731_wasm_importtype_vec_copy.argtypes = [ctypes.POINTER(wasm_importtype_vec_t), ctypes.POINTER(wasm_importtype_vec_t)]
732def wasm_importtype_vec_copy(out: Any, arg1: Any) -> None:
733 return _wasm_importtype_vec_copy(out, arg1) # type: ignore
735_wasm_importtype_vec_delete = dll.wasm_importtype_vec_delete
736_wasm_importtype_vec_delete.restype = None
737_wasm_importtype_vec_delete.argtypes = [ctypes.POINTER(wasm_importtype_vec_t)]
738def wasm_importtype_vec_delete(arg0: Any) -> None:
739 return _wasm_importtype_vec_delete(arg0) # type: ignore
741_wasm_importtype_copy = dll.wasm_importtype_copy
742_wasm_importtype_copy.restype = ctypes.POINTER(wasm_importtype_t)
743_wasm_importtype_copy.argtypes = [ctypes.POINTER(wasm_importtype_t)]
744def wasm_importtype_copy(arg0: Any) -> ctypes._Pointer:
745 return _wasm_importtype_copy(arg0) # type: ignore
747_wasm_importtype_new = dll.wasm_importtype_new
748_wasm_importtype_new.restype = ctypes.POINTER(wasm_importtype_t)
749_wasm_importtype_new.argtypes = [ctypes.POINTER(wasm_name_t), ctypes.POINTER(wasm_name_t), ctypes.POINTER(wasm_externtype_t)]
750def wasm_importtype_new(module: Any, name: Any, arg2: Any) -> ctypes._Pointer:
751 return _wasm_importtype_new(module, name, arg2) # type: ignore
753_wasm_importtype_module = dll.wasm_importtype_module
754_wasm_importtype_module.restype = ctypes.POINTER(wasm_name_t)
755_wasm_importtype_module.argtypes = [ctypes.POINTER(wasm_importtype_t)]
756def wasm_importtype_module(arg0: Any) -> ctypes._Pointer:
757 return _wasm_importtype_module(arg0) # type: ignore
759_wasm_importtype_name = dll.wasm_importtype_name
760_wasm_importtype_name.restype = ctypes.POINTER(wasm_name_t)
761_wasm_importtype_name.argtypes = [ctypes.POINTER(wasm_importtype_t)]
762def wasm_importtype_name(arg0: Any) -> ctypes._Pointer:
763 return _wasm_importtype_name(arg0) # type: ignore
765_wasm_importtype_type = dll.wasm_importtype_type
766_wasm_importtype_type.restype = ctypes.POINTER(wasm_externtype_t)
767_wasm_importtype_type.argtypes = [ctypes.POINTER(wasm_importtype_t)]
768def wasm_importtype_type(arg0: Any) -> ctypes._Pointer:
769 return _wasm_importtype_type(arg0) # type: ignore
771class wasm_exporttype_t(ctypes.Structure):
772 pass
774_wasm_exporttype_delete = dll.wasm_exporttype_delete
775_wasm_exporttype_delete.restype = None
776_wasm_exporttype_delete.argtypes = [ctypes.POINTER(wasm_exporttype_t)]
777def wasm_exporttype_delete(arg0: Any) -> None:
778 return _wasm_exporttype_delete(arg0) # type: ignore
780class wasm_exporttype_vec_t(ctypes.Structure):
781 _fields_ = [
782 ("size", ctypes.c_size_t),
783 ("data", ctypes.POINTER(ctypes.POINTER(wasm_exporttype_t))),
784 ]
785 size: int
786 data: ctypes._Pointer
788_wasm_exporttype_vec_new_empty = dll.wasm_exporttype_vec_new_empty
789_wasm_exporttype_vec_new_empty.restype = None
790_wasm_exporttype_vec_new_empty.argtypes = [ctypes.POINTER(wasm_exporttype_vec_t)]
791def wasm_exporttype_vec_new_empty(out: Any) -> None:
792 return _wasm_exporttype_vec_new_empty(out) # type: ignore
794_wasm_exporttype_vec_new_uninitialized = dll.wasm_exporttype_vec_new_uninitialized
795_wasm_exporttype_vec_new_uninitialized.restype = None
796_wasm_exporttype_vec_new_uninitialized.argtypes = [ctypes.POINTER(wasm_exporttype_vec_t), ctypes.c_size_t]
797def wasm_exporttype_vec_new_uninitialized(out: Any, arg1: Any) -> None:
798 return _wasm_exporttype_vec_new_uninitialized(out, arg1) # type: ignore
800_wasm_exporttype_vec_new = dll.wasm_exporttype_vec_new
801_wasm_exporttype_vec_new.restype = None
802_wasm_exporttype_vec_new.argtypes = [ctypes.POINTER(wasm_exporttype_vec_t), ctypes.c_size_t, ctypes.POINTER(ctypes.POINTER(wasm_exporttype_t))]
803def wasm_exporttype_vec_new(out: Any, arg1: Any, arg2: Any) -> None:
804 return _wasm_exporttype_vec_new(out, arg1, arg2) # type: ignore
806_wasm_exporttype_vec_copy = dll.wasm_exporttype_vec_copy
807_wasm_exporttype_vec_copy.restype = None
808_wasm_exporttype_vec_copy.argtypes = [ctypes.POINTER(wasm_exporttype_vec_t), ctypes.POINTER(wasm_exporttype_vec_t)]
809def wasm_exporttype_vec_copy(out: Any, arg1: Any) -> None:
810 return _wasm_exporttype_vec_copy(out, arg1) # type: ignore
812_wasm_exporttype_vec_delete = dll.wasm_exporttype_vec_delete
813_wasm_exporttype_vec_delete.restype = None
814_wasm_exporttype_vec_delete.argtypes = [ctypes.POINTER(wasm_exporttype_vec_t)]
815def wasm_exporttype_vec_delete(arg0: Any) -> None:
816 return _wasm_exporttype_vec_delete(arg0) # type: ignore
818_wasm_exporttype_copy = dll.wasm_exporttype_copy
819_wasm_exporttype_copy.restype = ctypes.POINTER(wasm_exporttype_t)
820_wasm_exporttype_copy.argtypes = [ctypes.POINTER(wasm_exporttype_t)]
821def wasm_exporttype_copy(arg0: Any) -> ctypes._Pointer:
822 return _wasm_exporttype_copy(arg0) # type: ignore
824_wasm_exporttype_new = dll.wasm_exporttype_new
825_wasm_exporttype_new.restype = ctypes.POINTER(wasm_exporttype_t)
826_wasm_exporttype_new.argtypes = [ctypes.POINTER(wasm_name_t), ctypes.POINTER(wasm_externtype_t)]
827def wasm_exporttype_new(arg0: Any, arg1: Any) -> ctypes._Pointer:
828 return _wasm_exporttype_new(arg0, arg1) # type: ignore
830_wasm_exporttype_name = dll.wasm_exporttype_name
831_wasm_exporttype_name.restype = ctypes.POINTER(wasm_name_t)
832_wasm_exporttype_name.argtypes = [ctypes.POINTER(wasm_exporttype_t)]
833def wasm_exporttype_name(arg0: Any) -> ctypes._Pointer:
834 return _wasm_exporttype_name(arg0) # type: ignore
836_wasm_exporttype_type = dll.wasm_exporttype_type
837_wasm_exporttype_type.restype = ctypes.POINTER(wasm_externtype_t)
838_wasm_exporttype_type.argtypes = [ctypes.POINTER(wasm_exporttype_t)]
839def wasm_exporttype_type(arg0: Any) -> ctypes._Pointer:
840 return _wasm_exporttype_type(arg0) # type: ignore
842_wasm_val_delete = dll.wasm_val_delete
843_wasm_val_delete.restype = None
844_wasm_val_delete.argtypes = [ctypes.POINTER(wasm_val_t)]
845def wasm_val_delete(v: Any) -> None:
846 return _wasm_val_delete(v) # type: ignore
848_wasm_val_copy = dll.wasm_val_copy
849_wasm_val_copy.restype = None
850_wasm_val_copy.argtypes = [ctypes.POINTER(wasm_val_t), ctypes.POINTER(wasm_val_t)]
851def wasm_val_copy(out: Any, arg1: Any) -> None:
852 return _wasm_val_copy(out, arg1) # type: ignore
854class wasm_val_vec_t(ctypes.Structure):
855 _fields_ = [
856 ("size", ctypes.c_size_t),
857 ("data", ctypes.POINTER(wasm_val_t)),
858 ]
859 size: int
860 data: ctypes._Pointer
862_wasm_val_vec_new_empty = dll.wasm_val_vec_new_empty
863_wasm_val_vec_new_empty.restype = None
864_wasm_val_vec_new_empty.argtypes = [ctypes.POINTER(wasm_val_vec_t)]
865def wasm_val_vec_new_empty(out: Any) -> None:
866 return _wasm_val_vec_new_empty(out) # type: ignore
868_wasm_val_vec_new_uninitialized = dll.wasm_val_vec_new_uninitialized
869_wasm_val_vec_new_uninitialized.restype = None
870_wasm_val_vec_new_uninitialized.argtypes = [ctypes.POINTER(wasm_val_vec_t), ctypes.c_size_t]
871def wasm_val_vec_new_uninitialized(out: Any, arg1: Any) -> None:
872 return _wasm_val_vec_new_uninitialized(out, arg1) # type: ignore
874_wasm_val_vec_new = dll.wasm_val_vec_new
875_wasm_val_vec_new.restype = None
876_wasm_val_vec_new.argtypes = [ctypes.POINTER(wasm_val_vec_t), ctypes.c_size_t, ctypes.POINTER(wasm_val_t)]
877def wasm_val_vec_new(out: Any, arg1: Any, arg2: Any) -> None:
878 return _wasm_val_vec_new(out, arg1, arg2) # type: ignore
880_wasm_val_vec_copy = dll.wasm_val_vec_copy
881_wasm_val_vec_copy.restype = None
882_wasm_val_vec_copy.argtypes = [ctypes.POINTER(wasm_val_vec_t), ctypes.POINTER(wasm_val_vec_t)]
883def wasm_val_vec_copy(out: Any, arg1: Any) -> None:
884 return _wasm_val_vec_copy(out, arg1) # type: ignore
886_wasm_val_vec_delete = dll.wasm_val_vec_delete
887_wasm_val_vec_delete.restype = None
888_wasm_val_vec_delete.argtypes = [ctypes.POINTER(wasm_val_vec_t)]
889def wasm_val_vec_delete(arg0: Any) -> None:
890 return _wasm_val_vec_delete(arg0) # type: ignore
892_wasm_ref_delete = dll.wasm_ref_delete
893_wasm_ref_delete.restype = None
894_wasm_ref_delete.argtypes = [ctypes.POINTER(wasm_ref_t)]
895def wasm_ref_delete(arg0: Any) -> None:
896 return _wasm_ref_delete(arg0) # type: ignore
898_wasm_ref_copy = dll.wasm_ref_copy
899_wasm_ref_copy.restype = ctypes.POINTER(wasm_ref_t)
900_wasm_ref_copy.argtypes = [ctypes.POINTER(wasm_ref_t)]
901def wasm_ref_copy(arg0: Any) -> ctypes._Pointer:
902 return _wasm_ref_copy(arg0) # type: ignore
904_wasm_ref_same = dll.wasm_ref_same
905_wasm_ref_same.restype = ctypes.c_bool
906_wasm_ref_same.argtypes = [ctypes.POINTER(wasm_ref_t), ctypes.POINTER(wasm_ref_t)]
907def wasm_ref_same(arg0: Any, arg1: Any) -> bool:
908 return _wasm_ref_same(arg0, arg1) # type: ignore
910_wasm_ref_get_host_info = dll.wasm_ref_get_host_info
911_wasm_ref_get_host_info.restype = ctypes.c_void_p
912_wasm_ref_get_host_info.argtypes = [ctypes.POINTER(wasm_ref_t)]
913def wasm_ref_get_host_info(arg0: Any) -> ctypes._Pointer:
914 return _wasm_ref_get_host_info(arg0) # type: ignore
916_wasm_ref_set_host_info = dll.wasm_ref_set_host_info
917_wasm_ref_set_host_info.restype = None
918_wasm_ref_set_host_info.argtypes = [ctypes.POINTER(wasm_ref_t), ctypes.c_void_p]
919def wasm_ref_set_host_info(arg0: Any, arg1: Any) -> None:
920 return _wasm_ref_set_host_info(arg0, arg1) # type: ignore
922_wasm_ref_set_host_info_with_finalizer = dll.wasm_ref_set_host_info_with_finalizer
923_wasm_ref_set_host_info_with_finalizer.restype = None
924_wasm_ref_set_host_info_with_finalizer.argtypes = [ctypes.POINTER(wasm_ref_t), ctypes.c_void_p, ctypes.CFUNCTYPE(None, ctypes.c_void_p)]
925def wasm_ref_set_host_info_with_finalizer(arg0: Any, arg1: Any, arg2: Any) -> None:
926 return _wasm_ref_set_host_info_with_finalizer(arg0, arg1, arg2) # type: ignore
928class wasm_frame_t(ctypes.Structure):
929 pass
931_wasm_frame_delete = dll.wasm_frame_delete
932_wasm_frame_delete.restype = None
933_wasm_frame_delete.argtypes = [ctypes.POINTER(wasm_frame_t)]
934def wasm_frame_delete(arg0: Any) -> None:
935 return _wasm_frame_delete(arg0) # type: ignore
937class wasm_frame_vec_t(ctypes.Structure):
938 _fields_ = [
939 ("size", ctypes.c_size_t),
940 ("data", ctypes.POINTER(ctypes.POINTER(wasm_frame_t))),
941 ]
942 size: int
943 data: ctypes._Pointer
945_wasm_frame_vec_new_empty = dll.wasm_frame_vec_new_empty
946_wasm_frame_vec_new_empty.restype = None
947_wasm_frame_vec_new_empty.argtypes = [ctypes.POINTER(wasm_frame_vec_t)]
948def wasm_frame_vec_new_empty(out: Any) -> None:
949 return _wasm_frame_vec_new_empty(out) # type: ignore
951_wasm_frame_vec_new_uninitialized = dll.wasm_frame_vec_new_uninitialized
952_wasm_frame_vec_new_uninitialized.restype = None
953_wasm_frame_vec_new_uninitialized.argtypes = [ctypes.POINTER(wasm_frame_vec_t), ctypes.c_size_t]
954def wasm_frame_vec_new_uninitialized(out: Any, arg1: Any) -> None:
955 return _wasm_frame_vec_new_uninitialized(out, arg1) # type: ignore
957_wasm_frame_vec_new = dll.wasm_frame_vec_new
958_wasm_frame_vec_new.restype = None
959_wasm_frame_vec_new.argtypes = [ctypes.POINTER(wasm_frame_vec_t), ctypes.c_size_t, ctypes.POINTER(ctypes.POINTER(wasm_frame_t))]
960def wasm_frame_vec_new(out: Any, arg1: Any, arg2: Any) -> None:
961 return _wasm_frame_vec_new(out, arg1, arg2) # type: ignore
963_wasm_frame_vec_copy = dll.wasm_frame_vec_copy
964_wasm_frame_vec_copy.restype = None
965_wasm_frame_vec_copy.argtypes = [ctypes.POINTER(wasm_frame_vec_t), ctypes.POINTER(wasm_frame_vec_t)]
966def wasm_frame_vec_copy(out: Any, arg1: Any) -> None:
967 return _wasm_frame_vec_copy(out, arg1) # type: ignore
969_wasm_frame_vec_delete = dll.wasm_frame_vec_delete
970_wasm_frame_vec_delete.restype = None
971_wasm_frame_vec_delete.argtypes = [ctypes.POINTER(wasm_frame_vec_t)]
972def wasm_frame_vec_delete(arg0: Any) -> None:
973 return _wasm_frame_vec_delete(arg0) # type: ignore
975_wasm_frame_copy = dll.wasm_frame_copy
976_wasm_frame_copy.restype = ctypes.POINTER(wasm_frame_t)
977_wasm_frame_copy.argtypes = [ctypes.POINTER(wasm_frame_t)]
978def wasm_frame_copy(arg0: Any) -> ctypes._Pointer:
979 return _wasm_frame_copy(arg0) # type: ignore
981_wasm_frame_func_index = dll.wasm_frame_func_index
982_wasm_frame_func_index.restype = ctypes.c_uint32
983_wasm_frame_func_index.argtypes = [ctypes.POINTER(wasm_frame_t)]
984def wasm_frame_func_index(arg0: Any) -> int:
985 return _wasm_frame_func_index(arg0) # type: ignore
987_wasm_frame_func_offset = dll.wasm_frame_func_offset
988_wasm_frame_func_offset.restype = ctypes.c_size_t
989_wasm_frame_func_offset.argtypes = [ctypes.POINTER(wasm_frame_t)]
990def wasm_frame_func_offset(arg0: Any) -> int:
991 return _wasm_frame_func_offset(arg0) # type: ignore
993_wasm_frame_module_offset = dll.wasm_frame_module_offset
994_wasm_frame_module_offset.restype = ctypes.c_size_t
995_wasm_frame_module_offset.argtypes = [ctypes.POINTER(wasm_frame_t)]
996def wasm_frame_module_offset(arg0: Any) -> int:
997 return _wasm_frame_module_offset(arg0) # type: ignore
999wasm_message_t = wasm_name_t
1001class wasm_trap_t(ctypes.Structure):
1002 pass
1004_wasm_trap_delete = dll.wasm_trap_delete
1005_wasm_trap_delete.restype = None
1006_wasm_trap_delete.argtypes = [ctypes.POINTER(wasm_trap_t)]
1007def wasm_trap_delete(arg0: Any) -> None:
1008 return _wasm_trap_delete(arg0) # type: ignore
1010_wasm_trap_copy = dll.wasm_trap_copy
1011_wasm_trap_copy.restype = ctypes.POINTER(wasm_trap_t)
1012_wasm_trap_copy.argtypes = [ctypes.POINTER(wasm_trap_t)]
1013def wasm_trap_copy(arg0: Any) -> ctypes._Pointer:
1014 return _wasm_trap_copy(arg0) # type: ignore
1016_wasm_trap_same = dll.wasm_trap_same
1017_wasm_trap_same.restype = ctypes.c_bool
1018_wasm_trap_same.argtypes = [ctypes.POINTER(wasm_trap_t), ctypes.POINTER(wasm_trap_t)]
1019def wasm_trap_same(arg0: Any, arg1: Any) -> bool:
1020 return _wasm_trap_same(arg0, arg1) # type: ignore
1022_wasm_trap_get_host_info = dll.wasm_trap_get_host_info
1023_wasm_trap_get_host_info.restype = ctypes.c_void_p
1024_wasm_trap_get_host_info.argtypes = [ctypes.POINTER(wasm_trap_t)]
1025def wasm_trap_get_host_info(arg0: Any) -> ctypes._Pointer:
1026 return _wasm_trap_get_host_info(arg0) # type: ignore
1028_wasm_trap_set_host_info = dll.wasm_trap_set_host_info
1029_wasm_trap_set_host_info.restype = None
1030_wasm_trap_set_host_info.argtypes = [ctypes.POINTER(wasm_trap_t), ctypes.c_void_p]
1031def wasm_trap_set_host_info(arg0: Any, arg1: Any) -> None:
1032 return _wasm_trap_set_host_info(arg0, arg1) # type: ignore
1034_wasm_trap_set_host_info_with_finalizer = dll.wasm_trap_set_host_info_with_finalizer
1035_wasm_trap_set_host_info_with_finalizer.restype = None
1036_wasm_trap_set_host_info_with_finalizer.argtypes = [ctypes.POINTER(wasm_trap_t), ctypes.c_void_p, ctypes.CFUNCTYPE(None, ctypes.c_void_p)]
1037def wasm_trap_set_host_info_with_finalizer(arg0: Any, arg1: Any, arg2: Any) -> None:
1038 return _wasm_trap_set_host_info_with_finalizer(arg0, arg1, arg2) # type: ignore
1040_wasm_trap_as_ref = dll.wasm_trap_as_ref
1041_wasm_trap_as_ref.restype = ctypes.POINTER(wasm_ref_t)
1042_wasm_trap_as_ref.argtypes = [ctypes.POINTER(wasm_trap_t)]
1043def wasm_trap_as_ref(arg0: Any) -> ctypes._Pointer:
1044 return _wasm_trap_as_ref(arg0) # type: ignore
1046_wasm_ref_as_trap = dll.wasm_ref_as_trap
1047_wasm_ref_as_trap.restype = ctypes.POINTER(wasm_trap_t)
1048_wasm_ref_as_trap.argtypes = [ctypes.POINTER(wasm_ref_t)]
1049def wasm_ref_as_trap(arg0: Any) -> ctypes._Pointer:
1050 return _wasm_ref_as_trap(arg0) # type: ignore
1052_wasm_trap_as_ref_const = dll.wasm_trap_as_ref_const
1053_wasm_trap_as_ref_const.restype = ctypes.POINTER(wasm_ref_t)
1054_wasm_trap_as_ref_const.argtypes = [ctypes.POINTER(wasm_trap_t)]
1055def wasm_trap_as_ref_const(arg0: Any) -> ctypes._Pointer:
1056 return _wasm_trap_as_ref_const(arg0) # type: ignore
1058_wasm_ref_as_trap_const = dll.wasm_ref_as_trap_const
1059_wasm_ref_as_trap_const.restype = ctypes.POINTER(wasm_trap_t)
1060_wasm_ref_as_trap_const.argtypes = [ctypes.POINTER(wasm_ref_t)]
1061def wasm_ref_as_trap_const(arg0: Any) -> ctypes._Pointer:
1062 return _wasm_ref_as_trap_const(arg0) # type: ignore
1064_wasm_trap_new = dll.wasm_trap_new
1065_wasm_trap_new.restype = ctypes.POINTER(wasm_trap_t)
1066_wasm_trap_new.argtypes = [ctypes.POINTER(wasm_store_t), ctypes.POINTER(wasm_message_t)]
1067def wasm_trap_new(store: Any, arg1: Any) -> ctypes._Pointer:
1068 return _wasm_trap_new(store, arg1) # type: ignore
1070_wasm_trap_message = dll.wasm_trap_message
1071_wasm_trap_message.restype = None
1072_wasm_trap_message.argtypes = [ctypes.POINTER(wasm_trap_t), ctypes.POINTER(wasm_message_t)]
1073def wasm_trap_message(arg0: Any, out: Any) -> None:
1074 return _wasm_trap_message(arg0, out) # type: ignore
1076_wasm_trap_origin = dll.wasm_trap_origin
1077_wasm_trap_origin.restype = ctypes.POINTER(wasm_frame_t)
1078_wasm_trap_origin.argtypes = [ctypes.POINTER(wasm_trap_t)]
1079def wasm_trap_origin(arg0: Any) -> ctypes._Pointer:
1080 return _wasm_trap_origin(arg0) # type: ignore
1082_wasm_trap_trace = dll.wasm_trap_trace
1083_wasm_trap_trace.restype = None
1084_wasm_trap_trace.argtypes = [ctypes.POINTER(wasm_trap_t), ctypes.POINTER(wasm_frame_vec_t)]
1085def wasm_trap_trace(arg0: Any, out: Any) -> None:
1086 return _wasm_trap_trace(arg0, out) # type: ignore
1088class wasm_foreign_t(ctypes.Structure):
1089 pass
1091_wasm_foreign_delete = dll.wasm_foreign_delete
1092_wasm_foreign_delete.restype = None
1093_wasm_foreign_delete.argtypes = [ctypes.POINTER(wasm_foreign_t)]
1094def wasm_foreign_delete(arg0: Any) -> None:
1095 return _wasm_foreign_delete(arg0) # type: ignore
1097_wasm_foreign_copy = dll.wasm_foreign_copy
1098_wasm_foreign_copy.restype = ctypes.POINTER(wasm_foreign_t)
1099_wasm_foreign_copy.argtypes = [ctypes.POINTER(wasm_foreign_t)]
1100def wasm_foreign_copy(arg0: Any) -> ctypes._Pointer:
1101 return _wasm_foreign_copy(arg0) # type: ignore
1103_wasm_foreign_same = dll.wasm_foreign_same
1104_wasm_foreign_same.restype = ctypes.c_bool
1105_wasm_foreign_same.argtypes = [ctypes.POINTER(wasm_foreign_t), ctypes.POINTER(wasm_foreign_t)]
1106def wasm_foreign_same(arg0: Any, arg1: Any) -> bool:
1107 return _wasm_foreign_same(arg0, arg1) # type: ignore
1109_wasm_foreign_get_host_info = dll.wasm_foreign_get_host_info
1110_wasm_foreign_get_host_info.restype = ctypes.c_void_p
1111_wasm_foreign_get_host_info.argtypes = [ctypes.POINTER(wasm_foreign_t)]
1112def wasm_foreign_get_host_info(arg0: Any) -> ctypes._Pointer:
1113 return _wasm_foreign_get_host_info(arg0) # type: ignore
1115_wasm_foreign_set_host_info = dll.wasm_foreign_set_host_info
1116_wasm_foreign_set_host_info.restype = None
1117_wasm_foreign_set_host_info.argtypes = [ctypes.POINTER(wasm_foreign_t), ctypes.c_void_p]
1118def wasm_foreign_set_host_info(arg0: Any, arg1: Any) -> None:
1119 return _wasm_foreign_set_host_info(arg0, arg1) # type: ignore
1121_wasm_foreign_set_host_info_with_finalizer = dll.wasm_foreign_set_host_info_with_finalizer
1122_wasm_foreign_set_host_info_with_finalizer.restype = None
1123_wasm_foreign_set_host_info_with_finalizer.argtypes = [ctypes.POINTER(wasm_foreign_t), ctypes.c_void_p, ctypes.CFUNCTYPE(None, ctypes.c_void_p)]
1124def wasm_foreign_set_host_info_with_finalizer(arg0: Any, arg1: Any, arg2: Any) -> None:
1125 return _wasm_foreign_set_host_info_with_finalizer(arg0, arg1, arg2) # type: ignore
1127_wasm_foreign_as_ref = dll.wasm_foreign_as_ref
1128_wasm_foreign_as_ref.restype = ctypes.POINTER(wasm_ref_t)
1129_wasm_foreign_as_ref.argtypes = [ctypes.POINTER(wasm_foreign_t)]
1130def wasm_foreign_as_ref(arg0: Any) -> ctypes._Pointer:
1131 return _wasm_foreign_as_ref(arg0) # type: ignore
1133_wasm_ref_as_foreign = dll.wasm_ref_as_foreign
1134_wasm_ref_as_foreign.restype = ctypes.POINTER(wasm_foreign_t)
1135_wasm_ref_as_foreign.argtypes = [ctypes.POINTER(wasm_ref_t)]
1136def wasm_ref_as_foreign(arg0: Any) -> ctypes._Pointer:
1137 return _wasm_ref_as_foreign(arg0) # type: ignore
1139_wasm_foreign_as_ref_const = dll.wasm_foreign_as_ref_const
1140_wasm_foreign_as_ref_const.restype = ctypes.POINTER(wasm_ref_t)
1141_wasm_foreign_as_ref_const.argtypes = [ctypes.POINTER(wasm_foreign_t)]
1142def wasm_foreign_as_ref_const(arg0: Any) -> ctypes._Pointer:
1143 return _wasm_foreign_as_ref_const(arg0) # type: ignore
1145_wasm_ref_as_foreign_const = dll.wasm_ref_as_foreign_const
1146_wasm_ref_as_foreign_const.restype = ctypes.POINTER(wasm_foreign_t)
1147_wasm_ref_as_foreign_const.argtypes = [ctypes.POINTER(wasm_ref_t)]
1148def wasm_ref_as_foreign_const(arg0: Any) -> ctypes._Pointer:
1149 return _wasm_ref_as_foreign_const(arg0) # type: ignore
1151_wasm_foreign_new = dll.wasm_foreign_new
1152_wasm_foreign_new.restype = ctypes.POINTER(wasm_foreign_t)
1153_wasm_foreign_new.argtypes = [ctypes.POINTER(wasm_store_t)]
1154def wasm_foreign_new(arg0: Any) -> ctypes._Pointer:
1155 return _wasm_foreign_new(arg0) # type: ignore
1157class wasm_module_t(ctypes.Structure):
1158 pass
1160_wasm_module_delete = dll.wasm_module_delete
1161_wasm_module_delete.restype = None
1162_wasm_module_delete.argtypes = [ctypes.POINTER(wasm_module_t)]
1163def wasm_module_delete(arg0: Any) -> None:
1164 return _wasm_module_delete(arg0) # type: ignore
1166_wasm_module_copy = dll.wasm_module_copy
1167_wasm_module_copy.restype = ctypes.POINTER(wasm_module_t)
1168_wasm_module_copy.argtypes = [ctypes.POINTER(wasm_module_t)]
1169def wasm_module_copy(arg0: Any) -> ctypes._Pointer:
1170 return _wasm_module_copy(arg0) # type: ignore
1172_wasm_module_same = dll.wasm_module_same
1173_wasm_module_same.restype = ctypes.c_bool
1174_wasm_module_same.argtypes = [ctypes.POINTER(wasm_module_t), ctypes.POINTER(wasm_module_t)]
1175def wasm_module_same(arg0: Any, arg1: Any) -> bool:
1176 return _wasm_module_same(arg0, arg1) # type: ignore
1178_wasm_module_get_host_info = dll.wasm_module_get_host_info
1179_wasm_module_get_host_info.restype = ctypes.c_void_p
1180_wasm_module_get_host_info.argtypes = [ctypes.POINTER(wasm_module_t)]
1181def wasm_module_get_host_info(arg0: Any) -> ctypes._Pointer:
1182 return _wasm_module_get_host_info(arg0) # type: ignore
1184_wasm_module_set_host_info = dll.wasm_module_set_host_info
1185_wasm_module_set_host_info.restype = None
1186_wasm_module_set_host_info.argtypes = [ctypes.POINTER(wasm_module_t), ctypes.c_void_p]
1187def wasm_module_set_host_info(arg0: Any, arg1: Any) -> None:
1188 return _wasm_module_set_host_info(arg0, arg1) # type: ignore
1190_wasm_module_set_host_info_with_finalizer = dll.wasm_module_set_host_info_with_finalizer
1191_wasm_module_set_host_info_with_finalizer.restype = None
1192_wasm_module_set_host_info_with_finalizer.argtypes = [ctypes.POINTER(wasm_module_t), ctypes.c_void_p, ctypes.CFUNCTYPE(None, ctypes.c_void_p)]
1193def wasm_module_set_host_info_with_finalizer(arg0: Any, arg1: Any, arg2: Any) -> None:
1194 return _wasm_module_set_host_info_with_finalizer(arg0, arg1, arg2) # type: ignore
1196_wasm_module_as_ref = dll.wasm_module_as_ref
1197_wasm_module_as_ref.restype = ctypes.POINTER(wasm_ref_t)
1198_wasm_module_as_ref.argtypes = [ctypes.POINTER(wasm_module_t)]
1199def wasm_module_as_ref(arg0: Any) -> ctypes._Pointer:
1200 return _wasm_module_as_ref(arg0) # type: ignore
1202_wasm_ref_as_module = dll.wasm_ref_as_module
1203_wasm_ref_as_module.restype = ctypes.POINTER(wasm_module_t)
1204_wasm_ref_as_module.argtypes = [ctypes.POINTER(wasm_ref_t)]
1205def wasm_ref_as_module(arg0: Any) -> ctypes._Pointer:
1206 return _wasm_ref_as_module(arg0) # type: ignore
1208_wasm_module_as_ref_const = dll.wasm_module_as_ref_const
1209_wasm_module_as_ref_const.restype = ctypes.POINTER(wasm_ref_t)
1210_wasm_module_as_ref_const.argtypes = [ctypes.POINTER(wasm_module_t)]
1211def wasm_module_as_ref_const(arg0: Any) -> ctypes._Pointer:
1212 return _wasm_module_as_ref_const(arg0) # type: ignore
1214_wasm_ref_as_module_const = dll.wasm_ref_as_module_const
1215_wasm_ref_as_module_const.restype = ctypes.POINTER(wasm_module_t)
1216_wasm_ref_as_module_const.argtypes = [ctypes.POINTER(wasm_ref_t)]
1217def wasm_ref_as_module_const(arg0: Any) -> ctypes._Pointer:
1218 return _wasm_ref_as_module_const(arg0) # type: ignore
1220class wasm_shared_module_t(ctypes.Structure):
1221 pass
1223_wasm_shared_module_delete = dll.wasm_shared_module_delete
1224_wasm_shared_module_delete.restype = None
1225_wasm_shared_module_delete.argtypes = [ctypes.POINTER(wasm_shared_module_t)]
1226def wasm_shared_module_delete(arg0: Any) -> None:
1227 return _wasm_shared_module_delete(arg0) # type: ignore
1229_wasm_module_share = dll.wasm_module_share
1230_wasm_module_share.restype = ctypes.POINTER(wasm_shared_module_t)
1231_wasm_module_share.argtypes = [ctypes.POINTER(wasm_module_t)]
1232def wasm_module_share(arg0: Any) -> ctypes._Pointer:
1233 return _wasm_module_share(arg0) # type: ignore
1235_wasm_module_obtain = dll.wasm_module_obtain
1236_wasm_module_obtain.restype = ctypes.POINTER(wasm_module_t)
1237_wasm_module_obtain.argtypes = [ctypes.POINTER(wasm_store_t), ctypes.POINTER(wasm_shared_module_t)]
1238def wasm_module_obtain(arg0: Any, arg1: Any) -> ctypes._Pointer:
1239 return _wasm_module_obtain(arg0, arg1) # type: ignore
1241_wasm_module_new = dll.wasm_module_new
1242_wasm_module_new.restype = ctypes.POINTER(wasm_module_t)
1243_wasm_module_new.argtypes = [ctypes.POINTER(wasm_store_t), ctypes.POINTER(wasm_byte_vec_t)]
1244def wasm_module_new(arg0: Any, binary: Any) -> ctypes._Pointer:
1245 return _wasm_module_new(arg0, binary) # type: ignore
1247_wasm_module_validate = dll.wasm_module_validate
1248_wasm_module_validate.restype = ctypes.c_bool
1249_wasm_module_validate.argtypes = [ctypes.POINTER(wasm_store_t), ctypes.POINTER(wasm_byte_vec_t)]
1250def wasm_module_validate(arg0: Any, binary: Any) -> bool:
1251 return _wasm_module_validate(arg0, binary) # type: ignore
1253_wasm_module_imports = dll.wasm_module_imports
1254_wasm_module_imports.restype = None
1255_wasm_module_imports.argtypes = [ctypes.POINTER(wasm_module_t), ctypes.POINTER(wasm_importtype_vec_t)]
1256def wasm_module_imports(arg0: Any, out: Any) -> None:
1257 return _wasm_module_imports(arg0, out) # type: ignore
1259_wasm_module_exports = dll.wasm_module_exports
1260_wasm_module_exports.restype = None
1261_wasm_module_exports.argtypes = [ctypes.POINTER(wasm_module_t), ctypes.POINTER(wasm_exporttype_vec_t)]
1262def wasm_module_exports(arg0: Any, out: Any) -> None:
1263 return _wasm_module_exports(arg0, out) # type: ignore
1265_wasm_module_serialize = dll.wasm_module_serialize
1266_wasm_module_serialize.restype = None
1267_wasm_module_serialize.argtypes = [ctypes.POINTER(wasm_module_t), ctypes.POINTER(wasm_byte_vec_t)]
1268def wasm_module_serialize(arg0: Any, out: Any) -> None:
1269 return _wasm_module_serialize(arg0, out) # type: ignore
1271_wasm_module_deserialize = dll.wasm_module_deserialize
1272_wasm_module_deserialize.restype = ctypes.POINTER(wasm_module_t)
1273_wasm_module_deserialize.argtypes = [ctypes.POINTER(wasm_store_t), ctypes.POINTER(wasm_byte_vec_t)]
1274def wasm_module_deserialize(arg0: Any, arg1: Any) -> ctypes._Pointer:
1275 return _wasm_module_deserialize(arg0, arg1) # type: ignore
1277class wasm_func_t(ctypes.Structure):
1278 pass
1280_wasm_func_delete = dll.wasm_func_delete
1281_wasm_func_delete.restype = None
1282_wasm_func_delete.argtypes = [ctypes.POINTER(wasm_func_t)]
1283def wasm_func_delete(arg0: Any) -> None:
1284 return _wasm_func_delete(arg0) # type: ignore
1286_wasm_func_copy = dll.wasm_func_copy
1287_wasm_func_copy.restype = ctypes.POINTER(wasm_func_t)
1288_wasm_func_copy.argtypes = [ctypes.POINTER(wasm_func_t)]
1289def wasm_func_copy(arg0: Any) -> ctypes._Pointer:
1290 return _wasm_func_copy(arg0) # type: ignore
1292_wasm_func_same = dll.wasm_func_same
1293_wasm_func_same.restype = ctypes.c_bool
1294_wasm_func_same.argtypes = [ctypes.POINTER(wasm_func_t), ctypes.POINTER(wasm_func_t)]
1295def wasm_func_same(arg0: Any, arg1: Any) -> bool:
1296 return _wasm_func_same(arg0, arg1) # type: ignore
1298_wasm_func_get_host_info = dll.wasm_func_get_host_info
1299_wasm_func_get_host_info.restype = ctypes.c_void_p
1300_wasm_func_get_host_info.argtypes = [ctypes.POINTER(wasm_func_t)]
1301def wasm_func_get_host_info(arg0: Any) -> ctypes._Pointer:
1302 return _wasm_func_get_host_info(arg0) # type: ignore
1304_wasm_func_set_host_info = dll.wasm_func_set_host_info
1305_wasm_func_set_host_info.restype = None
1306_wasm_func_set_host_info.argtypes = [ctypes.POINTER(wasm_func_t), ctypes.c_void_p]
1307def wasm_func_set_host_info(arg0: Any, arg1: Any) -> None:
1308 return _wasm_func_set_host_info(arg0, arg1) # type: ignore
1310_wasm_func_set_host_info_with_finalizer = dll.wasm_func_set_host_info_with_finalizer
1311_wasm_func_set_host_info_with_finalizer.restype = None
1312_wasm_func_set_host_info_with_finalizer.argtypes = [ctypes.POINTER(wasm_func_t), ctypes.c_void_p, ctypes.CFUNCTYPE(None, ctypes.c_void_p)]
1313def wasm_func_set_host_info_with_finalizer(arg0: Any, arg1: Any, arg2: Any) -> None:
1314 return _wasm_func_set_host_info_with_finalizer(arg0, arg1, arg2) # type: ignore
1316_wasm_func_as_ref = dll.wasm_func_as_ref
1317_wasm_func_as_ref.restype = ctypes.POINTER(wasm_ref_t)
1318_wasm_func_as_ref.argtypes = [ctypes.POINTER(wasm_func_t)]
1319def wasm_func_as_ref(arg0: Any) -> ctypes._Pointer:
1320 return _wasm_func_as_ref(arg0) # type: ignore
1322_wasm_ref_as_func = dll.wasm_ref_as_func
1323_wasm_ref_as_func.restype = ctypes.POINTER(wasm_func_t)
1324_wasm_ref_as_func.argtypes = [ctypes.POINTER(wasm_ref_t)]
1325def wasm_ref_as_func(arg0: Any) -> ctypes._Pointer:
1326 return _wasm_ref_as_func(arg0) # type: ignore
1328_wasm_func_as_ref_const = dll.wasm_func_as_ref_const
1329_wasm_func_as_ref_const.restype = ctypes.POINTER(wasm_ref_t)
1330_wasm_func_as_ref_const.argtypes = [ctypes.POINTER(wasm_func_t)]
1331def wasm_func_as_ref_const(arg0: Any) -> ctypes._Pointer:
1332 return _wasm_func_as_ref_const(arg0) # type: ignore
1334_wasm_ref_as_func_const = dll.wasm_ref_as_func_const
1335_wasm_ref_as_func_const.restype = ctypes.POINTER(wasm_func_t)
1336_wasm_ref_as_func_const.argtypes = [ctypes.POINTER(wasm_ref_t)]
1337def wasm_ref_as_func_const(arg0: Any) -> ctypes._Pointer:
1338 return _wasm_ref_as_func_const(arg0) # type: ignore
1340wasm_func_callback_t = ctypes.CFUNCTYPE(ctypes.c_size_t, ctypes.POINTER(wasm_val_vec_t), ctypes.POINTER(wasm_val_vec_t))
1342wasm_func_callback_with_env_t = ctypes.CFUNCTYPE(ctypes.c_size_t, ctypes.c_void_p, ctypes.POINTER(wasm_val_vec_t), ctypes.POINTER(wasm_val_vec_t))
1344_wasm_func_new = dll.wasm_func_new
1345_wasm_func_new.restype = ctypes.POINTER(wasm_func_t)
1346_wasm_func_new.argtypes = [ctypes.POINTER(wasm_store_t), ctypes.POINTER(wasm_functype_t), wasm_func_callback_t]
1347def wasm_func_new(arg0: Any, arg1: Any, arg2: Any) -> ctypes._Pointer:
1348 return _wasm_func_new(arg0, arg1, arg2) # type: ignore
1350_wasm_func_new_with_env = dll.wasm_func_new_with_env
1351_wasm_func_new_with_env.restype = ctypes.POINTER(wasm_func_t)
1352_wasm_func_new_with_env.argtypes = [ctypes.POINTER(wasm_store_t), ctypes.POINTER(wasm_functype_t), wasm_func_callback_with_env_t, ctypes.c_void_p, ctypes.CFUNCTYPE(None, ctypes.c_void_p)]
1353def wasm_func_new_with_env(arg0: Any, type: Any, arg2: Any, env: Any, finalizer: Any) -> ctypes._Pointer:
1354 return _wasm_func_new_with_env(arg0, type, arg2, env, finalizer) # type: ignore
1356_wasm_func_type = dll.wasm_func_type
1357_wasm_func_type.restype = ctypes.POINTER(wasm_functype_t)
1358_wasm_func_type.argtypes = [ctypes.POINTER(wasm_func_t)]
1359def wasm_func_type(arg0: Any) -> ctypes._Pointer:
1360 return _wasm_func_type(arg0) # type: ignore
1362_wasm_func_param_arity = dll.wasm_func_param_arity
1363_wasm_func_param_arity.restype = ctypes.c_size_t
1364_wasm_func_param_arity.argtypes = [ctypes.POINTER(wasm_func_t)]
1365def wasm_func_param_arity(arg0: Any) -> int:
1366 return _wasm_func_param_arity(arg0) # type: ignore
1368_wasm_func_result_arity = dll.wasm_func_result_arity
1369_wasm_func_result_arity.restype = ctypes.c_size_t
1370_wasm_func_result_arity.argtypes = [ctypes.POINTER(wasm_func_t)]
1371def wasm_func_result_arity(arg0: Any) -> int:
1372 return _wasm_func_result_arity(arg0) # type: ignore
1374_wasm_func_call = dll.wasm_func_call
1375_wasm_func_call.restype = ctypes.POINTER(wasm_trap_t)
1376_wasm_func_call.argtypes = [ctypes.POINTER(wasm_func_t), ctypes.POINTER(wasm_val_vec_t), ctypes.POINTER(wasm_val_vec_t)]
1377def wasm_func_call(arg0: Any, args: Any, results: Any) -> ctypes._Pointer:
1378 return _wasm_func_call(arg0, args, results) # type: ignore
1380class wasm_global_t(ctypes.Structure):
1381 pass
1383_wasm_global_delete = dll.wasm_global_delete
1384_wasm_global_delete.restype = None
1385_wasm_global_delete.argtypes = [ctypes.POINTER(wasm_global_t)]
1386def wasm_global_delete(arg0: Any) -> None:
1387 return _wasm_global_delete(arg0) # type: ignore
1389_wasm_global_copy = dll.wasm_global_copy
1390_wasm_global_copy.restype = ctypes.POINTER(wasm_global_t)
1391_wasm_global_copy.argtypes = [ctypes.POINTER(wasm_global_t)]
1392def wasm_global_copy(arg0: Any) -> ctypes._Pointer:
1393 return _wasm_global_copy(arg0) # type: ignore
1395_wasm_global_same = dll.wasm_global_same
1396_wasm_global_same.restype = ctypes.c_bool
1397_wasm_global_same.argtypes = [ctypes.POINTER(wasm_global_t), ctypes.POINTER(wasm_global_t)]
1398def wasm_global_same(arg0: Any, arg1: Any) -> bool:
1399 return _wasm_global_same(arg0, arg1) # type: ignore
1401_wasm_global_get_host_info = dll.wasm_global_get_host_info
1402_wasm_global_get_host_info.restype = ctypes.c_void_p
1403_wasm_global_get_host_info.argtypes = [ctypes.POINTER(wasm_global_t)]
1404def wasm_global_get_host_info(arg0: Any) -> ctypes._Pointer:
1405 return _wasm_global_get_host_info(arg0) # type: ignore
1407_wasm_global_set_host_info = dll.wasm_global_set_host_info
1408_wasm_global_set_host_info.restype = None
1409_wasm_global_set_host_info.argtypes = [ctypes.POINTER(wasm_global_t), ctypes.c_void_p]
1410def wasm_global_set_host_info(arg0: Any, arg1: Any) -> None:
1411 return _wasm_global_set_host_info(arg0, arg1) # type: ignore
1413_wasm_global_set_host_info_with_finalizer = dll.wasm_global_set_host_info_with_finalizer
1414_wasm_global_set_host_info_with_finalizer.restype = None
1415_wasm_global_set_host_info_with_finalizer.argtypes = [ctypes.POINTER(wasm_global_t), ctypes.c_void_p, ctypes.CFUNCTYPE(None, ctypes.c_void_p)]
1416def wasm_global_set_host_info_with_finalizer(arg0: Any, arg1: Any, arg2: Any) -> None:
1417 return _wasm_global_set_host_info_with_finalizer(arg0, arg1, arg2) # type: ignore
1419_wasm_global_as_ref = dll.wasm_global_as_ref
1420_wasm_global_as_ref.restype = ctypes.POINTER(wasm_ref_t)
1421_wasm_global_as_ref.argtypes = [ctypes.POINTER(wasm_global_t)]
1422def wasm_global_as_ref(arg0: Any) -> ctypes._Pointer:
1423 return _wasm_global_as_ref(arg0) # type: ignore
1425_wasm_ref_as_global = dll.wasm_ref_as_global
1426_wasm_ref_as_global.restype = ctypes.POINTER(wasm_global_t)
1427_wasm_ref_as_global.argtypes = [ctypes.POINTER(wasm_ref_t)]
1428def wasm_ref_as_global(arg0: Any) -> ctypes._Pointer:
1429 return _wasm_ref_as_global(arg0) # type: ignore
1431_wasm_global_as_ref_const = dll.wasm_global_as_ref_const
1432_wasm_global_as_ref_const.restype = ctypes.POINTER(wasm_ref_t)
1433_wasm_global_as_ref_const.argtypes = [ctypes.POINTER(wasm_global_t)]
1434def wasm_global_as_ref_const(arg0: Any) -> ctypes._Pointer:
1435 return _wasm_global_as_ref_const(arg0) # type: ignore
1437_wasm_ref_as_global_const = dll.wasm_ref_as_global_const
1438_wasm_ref_as_global_const.restype = ctypes.POINTER(wasm_global_t)
1439_wasm_ref_as_global_const.argtypes = [ctypes.POINTER(wasm_ref_t)]
1440def wasm_ref_as_global_const(arg0: Any) -> ctypes._Pointer:
1441 return _wasm_ref_as_global_const(arg0) # type: ignore
1443_wasm_global_new = dll.wasm_global_new
1444_wasm_global_new.restype = ctypes.POINTER(wasm_global_t)
1445_wasm_global_new.argtypes = [ctypes.POINTER(wasm_store_t), ctypes.POINTER(wasm_globaltype_t), ctypes.POINTER(wasm_val_t)]
1446def wasm_global_new(arg0: Any, arg1: Any, arg2: Any) -> ctypes._Pointer:
1447 return _wasm_global_new(arg0, arg1, arg2) # type: ignore
1449_wasm_global_type = dll.wasm_global_type
1450_wasm_global_type.restype = ctypes.POINTER(wasm_globaltype_t)
1451_wasm_global_type.argtypes = [ctypes.POINTER(wasm_global_t)]
1452def wasm_global_type(arg0: Any) -> ctypes._Pointer:
1453 return _wasm_global_type(arg0) # type: ignore
1455_wasm_global_get = dll.wasm_global_get
1456_wasm_global_get.restype = None
1457_wasm_global_get.argtypes = [ctypes.POINTER(wasm_global_t), ctypes.POINTER(wasm_val_t)]
1458def wasm_global_get(arg0: Any, out: Any) -> None:
1459 return _wasm_global_get(arg0, out) # type: ignore
1461_wasm_global_set = dll.wasm_global_set
1462_wasm_global_set.restype = None
1463_wasm_global_set.argtypes = [ctypes.POINTER(wasm_global_t), ctypes.POINTER(wasm_val_t)]
1464def wasm_global_set(arg0: Any, arg1: Any) -> None:
1465 return _wasm_global_set(arg0, arg1) # type: ignore
1467class wasm_table_t(ctypes.Structure):
1468 pass
1470_wasm_table_delete = dll.wasm_table_delete
1471_wasm_table_delete.restype = None
1472_wasm_table_delete.argtypes = [ctypes.POINTER(wasm_table_t)]
1473def wasm_table_delete(arg0: Any) -> None:
1474 return _wasm_table_delete(arg0) # type: ignore
1476_wasm_table_copy = dll.wasm_table_copy
1477_wasm_table_copy.restype = ctypes.POINTER(wasm_table_t)
1478_wasm_table_copy.argtypes = [ctypes.POINTER(wasm_table_t)]
1479def wasm_table_copy(arg0: Any) -> ctypes._Pointer:
1480 return _wasm_table_copy(arg0) # type: ignore
1482_wasm_table_same = dll.wasm_table_same
1483_wasm_table_same.restype = ctypes.c_bool
1484_wasm_table_same.argtypes = [ctypes.POINTER(wasm_table_t), ctypes.POINTER(wasm_table_t)]
1485def wasm_table_same(arg0: Any, arg1: Any) -> bool:
1486 return _wasm_table_same(arg0, arg1) # type: ignore
1488_wasm_table_get_host_info = dll.wasm_table_get_host_info
1489_wasm_table_get_host_info.restype = ctypes.c_void_p
1490_wasm_table_get_host_info.argtypes = [ctypes.POINTER(wasm_table_t)]
1491def wasm_table_get_host_info(arg0: Any) -> ctypes._Pointer:
1492 return _wasm_table_get_host_info(arg0) # type: ignore
1494_wasm_table_set_host_info = dll.wasm_table_set_host_info
1495_wasm_table_set_host_info.restype = None
1496_wasm_table_set_host_info.argtypes = [ctypes.POINTER(wasm_table_t), ctypes.c_void_p]
1497def wasm_table_set_host_info(arg0: Any, arg1: Any) -> None:
1498 return _wasm_table_set_host_info(arg0, arg1) # type: ignore
1500_wasm_table_set_host_info_with_finalizer = dll.wasm_table_set_host_info_with_finalizer
1501_wasm_table_set_host_info_with_finalizer.restype = None
1502_wasm_table_set_host_info_with_finalizer.argtypes = [ctypes.POINTER(wasm_table_t), ctypes.c_void_p, ctypes.CFUNCTYPE(None, ctypes.c_void_p)]
1503def wasm_table_set_host_info_with_finalizer(arg0: Any, arg1: Any, arg2: Any) -> None:
1504 return _wasm_table_set_host_info_with_finalizer(arg0, arg1, arg2) # type: ignore
1506_wasm_table_as_ref = dll.wasm_table_as_ref
1507_wasm_table_as_ref.restype = ctypes.POINTER(wasm_ref_t)
1508_wasm_table_as_ref.argtypes = [ctypes.POINTER(wasm_table_t)]
1509def wasm_table_as_ref(arg0: Any) -> ctypes._Pointer:
1510 return _wasm_table_as_ref(arg0) # type: ignore
1512_wasm_ref_as_table = dll.wasm_ref_as_table
1513_wasm_ref_as_table.restype = ctypes.POINTER(wasm_table_t)
1514_wasm_ref_as_table.argtypes = [ctypes.POINTER(wasm_ref_t)]
1515def wasm_ref_as_table(arg0: Any) -> ctypes._Pointer:
1516 return _wasm_ref_as_table(arg0) # type: ignore
1518_wasm_table_as_ref_const = dll.wasm_table_as_ref_const
1519_wasm_table_as_ref_const.restype = ctypes.POINTER(wasm_ref_t)
1520_wasm_table_as_ref_const.argtypes = [ctypes.POINTER(wasm_table_t)]
1521def wasm_table_as_ref_const(arg0: Any) -> ctypes._Pointer:
1522 return _wasm_table_as_ref_const(arg0) # type: ignore
1524_wasm_ref_as_table_const = dll.wasm_ref_as_table_const
1525_wasm_ref_as_table_const.restype = ctypes.POINTER(wasm_table_t)
1526_wasm_ref_as_table_const.argtypes = [ctypes.POINTER(wasm_ref_t)]
1527def wasm_ref_as_table_const(arg0: Any) -> ctypes._Pointer:
1528 return _wasm_ref_as_table_const(arg0) # type: ignore
1530wasm_table_size_t = ctypes.c_uint32
1532_wasm_table_new = dll.wasm_table_new
1533_wasm_table_new.restype = ctypes.POINTER(wasm_table_t)
1534_wasm_table_new.argtypes = [ctypes.POINTER(wasm_store_t), ctypes.POINTER(wasm_tabletype_t), ctypes.POINTER(wasm_ref_t)]
1535def wasm_table_new(arg0: Any, arg1: Any, init: Any) -> ctypes._Pointer:
1536 return _wasm_table_new(arg0, arg1, init) # type: ignore
1538_wasm_table_type = dll.wasm_table_type
1539_wasm_table_type.restype = ctypes.POINTER(wasm_tabletype_t)
1540_wasm_table_type.argtypes = [ctypes.POINTER(wasm_table_t)]
1541def wasm_table_type(arg0: Any) -> ctypes._Pointer:
1542 return _wasm_table_type(arg0) # type: ignore
1544_wasm_table_get = dll.wasm_table_get
1545_wasm_table_get.restype = ctypes.POINTER(wasm_ref_t)
1546_wasm_table_get.argtypes = [ctypes.POINTER(wasm_table_t), wasm_table_size_t]
1547def wasm_table_get(arg0: Any, index: Any) -> ctypes._Pointer:
1548 return _wasm_table_get(arg0, index) # type: ignore
1550_wasm_table_set = dll.wasm_table_set
1551_wasm_table_set.restype = ctypes.c_bool
1552_wasm_table_set.argtypes = [ctypes.POINTER(wasm_table_t), wasm_table_size_t, ctypes.POINTER(wasm_ref_t)]
1553def wasm_table_set(arg0: Any, index: Any, arg2: Any) -> bool:
1554 return _wasm_table_set(arg0, index, arg2) # type: ignore
1556_wasm_table_size = dll.wasm_table_size
1557_wasm_table_size.restype = wasm_table_size_t
1558_wasm_table_size.argtypes = [ctypes.POINTER(wasm_table_t)]
1559def wasm_table_size(arg0: Any) -> int:
1560 return _wasm_table_size(arg0) # type: ignore
1562_wasm_table_grow = dll.wasm_table_grow
1563_wasm_table_grow.restype = ctypes.c_bool
1564_wasm_table_grow.argtypes = [ctypes.POINTER(wasm_table_t), wasm_table_size_t, ctypes.POINTER(wasm_ref_t)]
1565def wasm_table_grow(arg0: Any, delta: Any, init: Any) -> bool:
1566 return _wasm_table_grow(arg0, delta, init) # type: ignore
1568class wasm_memory_t(ctypes.Structure):
1569 pass
1571_wasm_memory_delete = dll.wasm_memory_delete
1572_wasm_memory_delete.restype = None
1573_wasm_memory_delete.argtypes = [ctypes.POINTER(wasm_memory_t)]
1574def wasm_memory_delete(arg0: Any) -> None:
1575 return _wasm_memory_delete(arg0) # type: ignore
1577_wasm_memory_copy = dll.wasm_memory_copy
1578_wasm_memory_copy.restype = ctypes.POINTER(wasm_memory_t)
1579_wasm_memory_copy.argtypes = [ctypes.POINTER(wasm_memory_t)]
1580def wasm_memory_copy(arg0: Any) -> ctypes._Pointer:
1581 return _wasm_memory_copy(arg0) # type: ignore
1583_wasm_memory_same = dll.wasm_memory_same
1584_wasm_memory_same.restype = ctypes.c_bool
1585_wasm_memory_same.argtypes = [ctypes.POINTER(wasm_memory_t), ctypes.POINTER(wasm_memory_t)]
1586def wasm_memory_same(arg0: Any, arg1: Any) -> bool:
1587 return _wasm_memory_same(arg0, arg1) # type: ignore
1589_wasm_memory_get_host_info = dll.wasm_memory_get_host_info
1590_wasm_memory_get_host_info.restype = ctypes.c_void_p
1591_wasm_memory_get_host_info.argtypes = [ctypes.POINTER(wasm_memory_t)]
1592def wasm_memory_get_host_info(arg0: Any) -> ctypes._Pointer:
1593 return _wasm_memory_get_host_info(arg0) # type: ignore
1595_wasm_memory_set_host_info = dll.wasm_memory_set_host_info
1596_wasm_memory_set_host_info.restype = None
1597_wasm_memory_set_host_info.argtypes = [ctypes.POINTER(wasm_memory_t), ctypes.c_void_p]
1598def wasm_memory_set_host_info(arg0: Any, arg1: Any) -> None:
1599 return _wasm_memory_set_host_info(arg0, arg1) # type: ignore
1601_wasm_memory_set_host_info_with_finalizer = dll.wasm_memory_set_host_info_with_finalizer
1602_wasm_memory_set_host_info_with_finalizer.restype = None
1603_wasm_memory_set_host_info_with_finalizer.argtypes = [ctypes.POINTER(wasm_memory_t), ctypes.c_void_p, ctypes.CFUNCTYPE(None, ctypes.c_void_p)]
1604def wasm_memory_set_host_info_with_finalizer(arg0: Any, arg1: Any, arg2: Any) -> None:
1605 return _wasm_memory_set_host_info_with_finalizer(arg0, arg1, arg2) # type: ignore
1607_wasm_memory_as_ref = dll.wasm_memory_as_ref
1608_wasm_memory_as_ref.restype = ctypes.POINTER(wasm_ref_t)
1609_wasm_memory_as_ref.argtypes = [ctypes.POINTER(wasm_memory_t)]
1610def wasm_memory_as_ref(arg0: Any) -> ctypes._Pointer:
1611 return _wasm_memory_as_ref(arg0) # type: ignore
1613_wasm_ref_as_memory = dll.wasm_ref_as_memory
1614_wasm_ref_as_memory.restype = ctypes.POINTER(wasm_memory_t)
1615_wasm_ref_as_memory.argtypes = [ctypes.POINTER(wasm_ref_t)]
1616def wasm_ref_as_memory(arg0: Any) -> ctypes._Pointer:
1617 return _wasm_ref_as_memory(arg0) # type: ignore
1619_wasm_memory_as_ref_const = dll.wasm_memory_as_ref_const
1620_wasm_memory_as_ref_const.restype = ctypes.POINTER(wasm_ref_t)
1621_wasm_memory_as_ref_const.argtypes = [ctypes.POINTER(wasm_memory_t)]
1622def wasm_memory_as_ref_const(arg0: Any) -> ctypes._Pointer:
1623 return _wasm_memory_as_ref_const(arg0) # type: ignore
1625_wasm_ref_as_memory_const = dll.wasm_ref_as_memory_const
1626_wasm_ref_as_memory_const.restype = ctypes.POINTER(wasm_memory_t)
1627_wasm_ref_as_memory_const.argtypes = [ctypes.POINTER(wasm_ref_t)]
1628def wasm_ref_as_memory_const(arg0: Any) -> ctypes._Pointer:
1629 return _wasm_ref_as_memory_const(arg0) # type: ignore
1631wasm_memory_pages_t = ctypes.c_uint32
1633_wasm_memory_new = dll.wasm_memory_new
1634_wasm_memory_new.restype = ctypes.POINTER(wasm_memory_t)
1635_wasm_memory_new.argtypes = [ctypes.POINTER(wasm_store_t), ctypes.POINTER(wasm_memorytype_t)]
1636def wasm_memory_new(arg0: Any, arg1: Any) -> ctypes._Pointer:
1637 return _wasm_memory_new(arg0, arg1) # type: ignore
1639_wasm_memory_type = dll.wasm_memory_type
1640_wasm_memory_type.restype = ctypes.POINTER(wasm_memorytype_t)
1641_wasm_memory_type.argtypes = [ctypes.POINTER(wasm_memory_t)]
1642def wasm_memory_type(arg0: Any) -> ctypes._Pointer:
1643 return _wasm_memory_type(arg0) # type: ignore
1645_wasm_memory_data = dll.wasm_memory_data
1646_wasm_memory_data.restype = ctypes.POINTER(ctypes.c_ubyte)
1647_wasm_memory_data.argtypes = [ctypes.POINTER(wasm_memory_t)]
1648def wasm_memory_data(arg0: Any) -> ctypes._Pointer:
1649 return _wasm_memory_data(arg0) # type: ignore
1651_wasm_memory_data_size = dll.wasm_memory_data_size
1652_wasm_memory_data_size.restype = ctypes.c_size_t
1653_wasm_memory_data_size.argtypes = [ctypes.POINTER(wasm_memory_t)]
1654def wasm_memory_data_size(arg0: Any) -> int:
1655 return _wasm_memory_data_size(arg0) # type: ignore
1657_wasm_memory_size = dll.wasm_memory_size
1658_wasm_memory_size.restype = wasm_memory_pages_t
1659_wasm_memory_size.argtypes = [ctypes.POINTER(wasm_memory_t)]
1660def wasm_memory_size(arg0: Any) -> int:
1661 return _wasm_memory_size(arg0) # type: ignore
1663_wasm_memory_grow = dll.wasm_memory_grow
1664_wasm_memory_grow.restype = ctypes.c_bool
1665_wasm_memory_grow.argtypes = [ctypes.POINTER(wasm_memory_t), wasm_memory_pages_t]
1666def wasm_memory_grow(arg0: Any, delta: Any) -> bool:
1667 return _wasm_memory_grow(arg0, delta) # type: ignore
1669class wasm_extern_t(ctypes.Structure):
1670 pass
1672_wasm_extern_delete = dll.wasm_extern_delete
1673_wasm_extern_delete.restype = None
1674_wasm_extern_delete.argtypes = [ctypes.POINTER(wasm_extern_t)]
1675def wasm_extern_delete(arg0: Any) -> None:
1676 return _wasm_extern_delete(arg0) # type: ignore
1678_wasm_extern_copy = dll.wasm_extern_copy
1679_wasm_extern_copy.restype = ctypes.POINTER(wasm_extern_t)
1680_wasm_extern_copy.argtypes = [ctypes.POINTER(wasm_extern_t)]
1681def wasm_extern_copy(arg0: Any) -> ctypes._Pointer:
1682 return _wasm_extern_copy(arg0) # type: ignore
1684_wasm_extern_same = dll.wasm_extern_same
1685_wasm_extern_same.restype = ctypes.c_bool
1686_wasm_extern_same.argtypes = [ctypes.POINTER(wasm_extern_t), ctypes.POINTER(wasm_extern_t)]
1687def wasm_extern_same(arg0: Any, arg1: Any) -> bool:
1688 return _wasm_extern_same(arg0, arg1) # type: ignore
1690_wasm_extern_get_host_info = dll.wasm_extern_get_host_info
1691_wasm_extern_get_host_info.restype = ctypes.c_void_p
1692_wasm_extern_get_host_info.argtypes = [ctypes.POINTER(wasm_extern_t)]
1693def wasm_extern_get_host_info(arg0: Any) -> ctypes._Pointer:
1694 return _wasm_extern_get_host_info(arg0) # type: ignore
1696_wasm_extern_set_host_info = dll.wasm_extern_set_host_info
1697_wasm_extern_set_host_info.restype = None
1698_wasm_extern_set_host_info.argtypes = [ctypes.POINTER(wasm_extern_t), ctypes.c_void_p]
1699def wasm_extern_set_host_info(arg0: Any, arg1: Any) -> None:
1700 return _wasm_extern_set_host_info(arg0, arg1) # type: ignore
1702_wasm_extern_set_host_info_with_finalizer = dll.wasm_extern_set_host_info_with_finalizer
1703_wasm_extern_set_host_info_with_finalizer.restype = None
1704_wasm_extern_set_host_info_with_finalizer.argtypes = [ctypes.POINTER(wasm_extern_t), ctypes.c_void_p, ctypes.CFUNCTYPE(None, ctypes.c_void_p)]
1705def wasm_extern_set_host_info_with_finalizer(arg0: Any, arg1: Any, arg2: Any) -> None:
1706 return _wasm_extern_set_host_info_with_finalizer(arg0, arg1, arg2) # type: ignore
1708_wasm_extern_as_ref = dll.wasm_extern_as_ref
1709_wasm_extern_as_ref.restype = ctypes.POINTER(wasm_ref_t)
1710_wasm_extern_as_ref.argtypes = [ctypes.POINTER(wasm_extern_t)]
1711def wasm_extern_as_ref(arg0: Any) -> ctypes._Pointer:
1712 return _wasm_extern_as_ref(arg0) # type: ignore
1714_wasm_ref_as_extern = dll.wasm_ref_as_extern
1715_wasm_ref_as_extern.restype = ctypes.POINTER(wasm_extern_t)
1716_wasm_ref_as_extern.argtypes = [ctypes.POINTER(wasm_ref_t)]
1717def wasm_ref_as_extern(arg0: Any) -> ctypes._Pointer:
1718 return _wasm_ref_as_extern(arg0) # type: ignore
1720_wasm_extern_as_ref_const = dll.wasm_extern_as_ref_const
1721_wasm_extern_as_ref_const.restype = ctypes.POINTER(wasm_ref_t)
1722_wasm_extern_as_ref_const.argtypes = [ctypes.POINTER(wasm_extern_t)]
1723def wasm_extern_as_ref_const(arg0: Any) -> ctypes._Pointer:
1724 return _wasm_extern_as_ref_const(arg0) # type: ignore
1726_wasm_ref_as_extern_const = dll.wasm_ref_as_extern_const
1727_wasm_ref_as_extern_const.restype = ctypes.POINTER(wasm_extern_t)
1728_wasm_ref_as_extern_const.argtypes = [ctypes.POINTER(wasm_ref_t)]
1729def wasm_ref_as_extern_const(arg0: Any) -> ctypes._Pointer:
1730 return _wasm_ref_as_extern_const(arg0) # type: ignore
1732class wasm_extern_vec_t(ctypes.Structure):
1733 _fields_ = [
1734 ("size", ctypes.c_size_t),
1735 ("data", ctypes.POINTER(ctypes.POINTER(wasm_extern_t))),
1736 ]
1737 size: int
1738 data: ctypes._Pointer
1740_wasm_extern_vec_new_empty = dll.wasm_extern_vec_new_empty
1741_wasm_extern_vec_new_empty.restype = None
1742_wasm_extern_vec_new_empty.argtypes = [ctypes.POINTER(wasm_extern_vec_t)]
1743def wasm_extern_vec_new_empty(out: Any) -> None:
1744 return _wasm_extern_vec_new_empty(out) # type: ignore
1746_wasm_extern_vec_new_uninitialized = dll.wasm_extern_vec_new_uninitialized
1747_wasm_extern_vec_new_uninitialized.restype = None
1748_wasm_extern_vec_new_uninitialized.argtypes = [ctypes.POINTER(wasm_extern_vec_t), ctypes.c_size_t]
1749def wasm_extern_vec_new_uninitialized(out: Any, arg1: Any) -> None:
1750 return _wasm_extern_vec_new_uninitialized(out, arg1) # type: ignore
1752_wasm_extern_vec_new = dll.wasm_extern_vec_new
1753_wasm_extern_vec_new.restype = None
1754_wasm_extern_vec_new.argtypes = [ctypes.POINTER(wasm_extern_vec_t), ctypes.c_size_t, ctypes.POINTER(ctypes.POINTER(wasm_extern_t))]
1755def wasm_extern_vec_new(out: Any, arg1: Any, arg2: Any) -> None:
1756 return _wasm_extern_vec_new(out, arg1, arg2) # type: ignore
1758_wasm_extern_vec_copy = dll.wasm_extern_vec_copy
1759_wasm_extern_vec_copy.restype = None
1760_wasm_extern_vec_copy.argtypes = [ctypes.POINTER(wasm_extern_vec_t), ctypes.POINTER(wasm_extern_vec_t)]
1761def wasm_extern_vec_copy(out: Any, arg1: Any) -> None:
1762 return _wasm_extern_vec_copy(out, arg1) # type: ignore
1764_wasm_extern_vec_delete = dll.wasm_extern_vec_delete
1765_wasm_extern_vec_delete.restype = None
1766_wasm_extern_vec_delete.argtypes = [ctypes.POINTER(wasm_extern_vec_t)]
1767def wasm_extern_vec_delete(arg0: Any) -> None:
1768 return _wasm_extern_vec_delete(arg0) # type: ignore
1770_wasm_extern_kind = dll.wasm_extern_kind
1771_wasm_extern_kind.restype = wasm_externkind_t
1772_wasm_extern_kind.argtypes = [ctypes.POINTER(wasm_extern_t)]
1773def wasm_extern_kind(arg0: Any) -> wasm_externkind_t:
1774 return _wasm_extern_kind(arg0) # type: ignore
1776_wasm_extern_type = dll.wasm_extern_type
1777_wasm_extern_type.restype = ctypes.POINTER(wasm_externtype_t)
1778_wasm_extern_type.argtypes = [ctypes.POINTER(wasm_extern_t)]
1779def wasm_extern_type(arg0: Any) -> ctypes._Pointer:
1780 return _wasm_extern_type(arg0) # type: ignore
1782_wasm_func_as_extern = dll.wasm_func_as_extern
1783_wasm_func_as_extern.restype = ctypes.POINTER(wasm_extern_t)
1784_wasm_func_as_extern.argtypes = [ctypes.POINTER(wasm_func_t)]
1785def wasm_func_as_extern(arg0: Any) -> ctypes._Pointer:
1786 return _wasm_func_as_extern(arg0) # type: ignore
1788_wasm_global_as_extern = dll.wasm_global_as_extern
1789_wasm_global_as_extern.restype = ctypes.POINTER(wasm_extern_t)
1790_wasm_global_as_extern.argtypes = [ctypes.POINTER(wasm_global_t)]
1791def wasm_global_as_extern(arg0: Any) -> ctypes._Pointer:
1792 return _wasm_global_as_extern(arg0) # type: ignore
1794_wasm_table_as_extern = dll.wasm_table_as_extern
1795_wasm_table_as_extern.restype = ctypes.POINTER(wasm_extern_t)
1796_wasm_table_as_extern.argtypes = [ctypes.POINTER(wasm_table_t)]
1797def wasm_table_as_extern(arg0: Any) -> ctypes._Pointer:
1798 return _wasm_table_as_extern(arg0) # type: ignore
1800_wasm_memory_as_extern = dll.wasm_memory_as_extern
1801_wasm_memory_as_extern.restype = ctypes.POINTER(wasm_extern_t)
1802_wasm_memory_as_extern.argtypes = [ctypes.POINTER(wasm_memory_t)]
1803def wasm_memory_as_extern(arg0: Any) -> ctypes._Pointer:
1804 return _wasm_memory_as_extern(arg0) # type: ignore
1806_wasm_extern_as_func = dll.wasm_extern_as_func
1807_wasm_extern_as_func.restype = ctypes.POINTER(wasm_func_t)
1808_wasm_extern_as_func.argtypes = [ctypes.POINTER(wasm_extern_t)]
1809def wasm_extern_as_func(arg0: Any) -> ctypes._Pointer:
1810 return _wasm_extern_as_func(arg0) # type: ignore
1812_wasm_extern_as_global = dll.wasm_extern_as_global
1813_wasm_extern_as_global.restype = ctypes.POINTER(wasm_global_t)
1814_wasm_extern_as_global.argtypes = [ctypes.POINTER(wasm_extern_t)]
1815def wasm_extern_as_global(arg0: Any) -> ctypes._Pointer:
1816 return _wasm_extern_as_global(arg0) # type: ignore
1818_wasm_extern_as_table = dll.wasm_extern_as_table
1819_wasm_extern_as_table.restype = ctypes.POINTER(wasm_table_t)
1820_wasm_extern_as_table.argtypes = [ctypes.POINTER(wasm_extern_t)]
1821def wasm_extern_as_table(arg0: Any) -> ctypes._Pointer:
1822 return _wasm_extern_as_table(arg0) # type: ignore
1824_wasm_extern_as_memory = dll.wasm_extern_as_memory
1825_wasm_extern_as_memory.restype = ctypes.POINTER(wasm_memory_t)
1826_wasm_extern_as_memory.argtypes = [ctypes.POINTER(wasm_extern_t)]
1827def wasm_extern_as_memory(arg0: Any) -> ctypes._Pointer:
1828 return _wasm_extern_as_memory(arg0) # type: ignore
1830_wasm_func_as_extern_const = dll.wasm_func_as_extern_const
1831_wasm_func_as_extern_const.restype = ctypes.POINTER(wasm_extern_t)
1832_wasm_func_as_extern_const.argtypes = [ctypes.POINTER(wasm_func_t)]
1833def wasm_func_as_extern_const(arg0: Any) -> ctypes._Pointer:
1834 return _wasm_func_as_extern_const(arg0) # type: ignore
1836_wasm_global_as_extern_const = dll.wasm_global_as_extern_const
1837_wasm_global_as_extern_const.restype = ctypes.POINTER(wasm_extern_t)
1838_wasm_global_as_extern_const.argtypes = [ctypes.POINTER(wasm_global_t)]
1839def wasm_global_as_extern_const(arg0: Any) -> ctypes._Pointer:
1840 return _wasm_global_as_extern_const(arg0) # type: ignore
1842_wasm_table_as_extern_const = dll.wasm_table_as_extern_const
1843_wasm_table_as_extern_const.restype = ctypes.POINTER(wasm_extern_t)
1844_wasm_table_as_extern_const.argtypes = [ctypes.POINTER(wasm_table_t)]
1845def wasm_table_as_extern_const(arg0: Any) -> ctypes._Pointer:
1846 return _wasm_table_as_extern_const(arg0) # type: ignore
1848_wasm_memory_as_extern_const = dll.wasm_memory_as_extern_const
1849_wasm_memory_as_extern_const.restype = ctypes.POINTER(wasm_extern_t)
1850_wasm_memory_as_extern_const.argtypes = [ctypes.POINTER(wasm_memory_t)]
1851def wasm_memory_as_extern_const(arg0: Any) -> ctypes._Pointer:
1852 return _wasm_memory_as_extern_const(arg0) # type: ignore
1854_wasm_extern_as_func_const = dll.wasm_extern_as_func_const
1855_wasm_extern_as_func_const.restype = ctypes.POINTER(wasm_func_t)
1856_wasm_extern_as_func_const.argtypes = [ctypes.POINTER(wasm_extern_t)]
1857def wasm_extern_as_func_const(arg0: Any) -> ctypes._Pointer:
1858 return _wasm_extern_as_func_const(arg0) # type: ignore
1860_wasm_extern_as_global_const = dll.wasm_extern_as_global_const
1861_wasm_extern_as_global_const.restype = ctypes.POINTER(wasm_global_t)
1862_wasm_extern_as_global_const.argtypes = [ctypes.POINTER(wasm_extern_t)]
1863def wasm_extern_as_global_const(arg0: Any) -> ctypes._Pointer:
1864 return _wasm_extern_as_global_const(arg0) # type: ignore
1866_wasm_extern_as_table_const = dll.wasm_extern_as_table_const
1867_wasm_extern_as_table_const.restype = ctypes.POINTER(wasm_table_t)
1868_wasm_extern_as_table_const.argtypes = [ctypes.POINTER(wasm_extern_t)]
1869def wasm_extern_as_table_const(arg0: Any) -> ctypes._Pointer:
1870 return _wasm_extern_as_table_const(arg0) # type: ignore
1872_wasm_extern_as_memory_const = dll.wasm_extern_as_memory_const
1873_wasm_extern_as_memory_const.restype = ctypes.POINTER(wasm_memory_t)
1874_wasm_extern_as_memory_const.argtypes = [ctypes.POINTER(wasm_extern_t)]
1875def wasm_extern_as_memory_const(arg0: Any) -> ctypes._Pointer:
1876 return _wasm_extern_as_memory_const(arg0) # type: ignore
1878class wasm_instance_t(ctypes.Structure):
1879 pass
1881_wasm_instance_delete = dll.wasm_instance_delete
1882_wasm_instance_delete.restype = None
1883_wasm_instance_delete.argtypes = [ctypes.POINTER(wasm_instance_t)]
1884def wasm_instance_delete(arg0: Any) -> None:
1885 return _wasm_instance_delete(arg0) # type: ignore
1887_wasm_instance_copy = dll.wasm_instance_copy
1888_wasm_instance_copy.restype = ctypes.POINTER(wasm_instance_t)
1889_wasm_instance_copy.argtypes = [ctypes.POINTER(wasm_instance_t)]
1890def wasm_instance_copy(arg0: Any) -> ctypes._Pointer:
1891 return _wasm_instance_copy(arg0) # type: ignore
1893_wasm_instance_same = dll.wasm_instance_same
1894_wasm_instance_same.restype = ctypes.c_bool
1895_wasm_instance_same.argtypes = [ctypes.POINTER(wasm_instance_t), ctypes.POINTER(wasm_instance_t)]
1896def wasm_instance_same(arg0: Any, arg1: Any) -> bool:
1897 return _wasm_instance_same(arg0, arg1) # type: ignore
1899_wasm_instance_get_host_info = dll.wasm_instance_get_host_info
1900_wasm_instance_get_host_info.restype = ctypes.c_void_p
1901_wasm_instance_get_host_info.argtypes = [ctypes.POINTER(wasm_instance_t)]
1902def wasm_instance_get_host_info(arg0: Any) -> ctypes._Pointer:
1903 return _wasm_instance_get_host_info(arg0) # type: ignore
1905_wasm_instance_set_host_info = dll.wasm_instance_set_host_info
1906_wasm_instance_set_host_info.restype = None
1907_wasm_instance_set_host_info.argtypes = [ctypes.POINTER(wasm_instance_t), ctypes.c_void_p]
1908def wasm_instance_set_host_info(arg0: Any, arg1: Any) -> None:
1909 return _wasm_instance_set_host_info(arg0, arg1) # type: ignore
1911_wasm_instance_set_host_info_with_finalizer = dll.wasm_instance_set_host_info_with_finalizer
1912_wasm_instance_set_host_info_with_finalizer.restype = None
1913_wasm_instance_set_host_info_with_finalizer.argtypes = [ctypes.POINTER(wasm_instance_t), ctypes.c_void_p, ctypes.CFUNCTYPE(None, ctypes.c_void_p)]
1914def wasm_instance_set_host_info_with_finalizer(arg0: Any, arg1: Any, arg2: Any) -> None:
1915 return _wasm_instance_set_host_info_with_finalizer(arg0, arg1, arg2) # type: ignore
1917_wasm_instance_as_ref = dll.wasm_instance_as_ref
1918_wasm_instance_as_ref.restype = ctypes.POINTER(wasm_ref_t)
1919_wasm_instance_as_ref.argtypes = [ctypes.POINTER(wasm_instance_t)]
1920def wasm_instance_as_ref(arg0: Any) -> ctypes._Pointer:
1921 return _wasm_instance_as_ref(arg0) # type: ignore
1923_wasm_ref_as_instance = dll.wasm_ref_as_instance
1924_wasm_ref_as_instance.restype = ctypes.POINTER(wasm_instance_t)
1925_wasm_ref_as_instance.argtypes = [ctypes.POINTER(wasm_ref_t)]
1926def wasm_ref_as_instance(arg0: Any) -> ctypes._Pointer:
1927 return _wasm_ref_as_instance(arg0) # type: ignore
1929_wasm_instance_as_ref_const = dll.wasm_instance_as_ref_const
1930_wasm_instance_as_ref_const.restype = ctypes.POINTER(wasm_ref_t)
1931_wasm_instance_as_ref_const.argtypes = [ctypes.POINTER(wasm_instance_t)]
1932def wasm_instance_as_ref_const(arg0: Any) -> ctypes._Pointer:
1933 return _wasm_instance_as_ref_const(arg0) # type: ignore
1935_wasm_ref_as_instance_const = dll.wasm_ref_as_instance_const
1936_wasm_ref_as_instance_const.restype = ctypes.POINTER(wasm_instance_t)
1937_wasm_ref_as_instance_const.argtypes = [ctypes.POINTER(wasm_ref_t)]
1938def wasm_ref_as_instance_const(arg0: Any) -> ctypes._Pointer:
1939 return _wasm_ref_as_instance_const(arg0) # type: ignore
1941_wasm_instance_new = dll.wasm_instance_new
1942_wasm_instance_new.restype = ctypes.POINTER(wasm_instance_t)
1943_wasm_instance_new.argtypes = [ctypes.POINTER(wasm_store_t), ctypes.POINTER(wasm_module_t), ctypes.POINTER(wasm_extern_vec_t), ctypes.POINTER(ctypes.POINTER(wasm_trap_t))]
1944def wasm_instance_new(arg0: Any, arg1: Any, imports: Any, arg3: Any) -> ctypes._Pointer:
1945 return _wasm_instance_new(arg0, arg1, imports, arg3) # type: ignore
1947_wasm_instance_exports = dll.wasm_instance_exports
1948_wasm_instance_exports.restype = None
1949_wasm_instance_exports.argtypes = [ctypes.POINTER(wasm_instance_t), ctypes.POINTER(wasm_extern_vec_t)]
1950def wasm_instance_exports(arg0: Any, out: Any) -> None:
1951 return _wasm_instance_exports(arg0, out) # type: ignore
1953class wasi_config_t(ctypes.Structure):
1954 pass
1956_wasi_config_delete = dll.wasi_config_delete
1957_wasi_config_delete.restype = None
1958_wasi_config_delete.argtypes = [ctypes.POINTER(wasi_config_t)]
1959def wasi_config_delete(arg0: Any) -> None:
1960 return _wasi_config_delete(arg0) # type: ignore
1962_wasi_config_new = dll.wasi_config_new
1963_wasi_config_new.restype = ctypes.POINTER(wasi_config_t)
1964_wasi_config_new.argtypes = []
1965def wasi_config_new() -> ctypes._Pointer:
1966 return _wasi_config_new() # type: ignore
1968_wasi_config_inherit_network = dll.wasi_config_inherit_network
1969_wasi_config_inherit_network.restype = None
1970_wasi_config_inherit_network.argtypes = [ctypes.POINTER(wasi_config_t)]
1971def wasi_config_inherit_network(config: Any) -> None:
1972 return _wasi_config_inherit_network(config) # type: ignore
1974_wasi_config_allow_ip_name_lookup = dll.wasi_config_allow_ip_name_lookup
1975_wasi_config_allow_ip_name_lookup.restype = None
1976_wasi_config_allow_ip_name_lookup.argtypes = [ctypes.POINTER(wasi_config_t), ctypes.c_bool]
1977def wasi_config_allow_ip_name_lookup(config: Any, enable: Any) -> None:
1978 return _wasi_config_allow_ip_name_lookup(config, enable) # type: ignore
1980_wasi_config_set_argv = dll.wasi_config_set_argv
1981_wasi_config_set_argv.restype = ctypes.c_bool
1982_wasi_config_set_argv.argtypes = [ctypes.POINTER(wasi_config_t), ctypes.c_size_t, ctypes.POINTER(ctypes.POINTER(ctypes.c_char))]
1983def wasi_config_set_argv(config: Any, argc: Any, argv: Any) -> bool:
1984 return _wasi_config_set_argv(config, argc, argv) # type: ignore
1986_wasi_config_inherit_argv = dll.wasi_config_inherit_argv
1987_wasi_config_inherit_argv.restype = None
1988_wasi_config_inherit_argv.argtypes = [ctypes.POINTER(wasi_config_t)]
1989def wasi_config_inherit_argv(config: Any) -> None:
1990 return _wasi_config_inherit_argv(config) # type: ignore
1992_wasi_config_set_env = dll.wasi_config_set_env
1993_wasi_config_set_env.restype = ctypes.c_bool
1994_wasi_config_set_env.argtypes = [ctypes.POINTER(wasi_config_t), ctypes.c_size_t, ctypes.POINTER(ctypes.POINTER(ctypes.c_char)), ctypes.POINTER(ctypes.POINTER(ctypes.c_char))]
1995def wasi_config_set_env(config: Any, envc: Any, names: Any, values: Any) -> bool:
1996 return _wasi_config_set_env(config, envc, names, values) # type: ignore
1998_wasi_config_inherit_env = dll.wasi_config_inherit_env
1999_wasi_config_inherit_env.restype = None
2000_wasi_config_inherit_env.argtypes = [ctypes.POINTER(wasi_config_t)]
2001def wasi_config_inherit_env(config: Any) -> None:
2002 return _wasi_config_inherit_env(config) # type: ignore
2004_wasi_config_set_stdin_file = dll.wasi_config_set_stdin_file
2005_wasi_config_set_stdin_file.restype = ctypes.c_bool
2006_wasi_config_set_stdin_file.argtypes = [ctypes.POINTER(wasi_config_t), ctypes.POINTER(ctypes.c_char)]
2007def wasi_config_set_stdin_file(config: Any, path: Any) -> bool:
2008 return _wasi_config_set_stdin_file(config, path) # type: ignore
2010_wasi_config_set_stdin_bytes = dll.wasi_config_set_stdin_bytes
2011_wasi_config_set_stdin_bytes.restype = None
2012_wasi_config_set_stdin_bytes.argtypes = [ctypes.POINTER(wasi_config_t), ctypes.POINTER(wasm_byte_vec_t)]
2013def wasi_config_set_stdin_bytes(config: Any, binary: Any) -> None:
2014 return _wasi_config_set_stdin_bytes(config, binary) # type: ignore
2016_wasi_config_inherit_stdin = dll.wasi_config_inherit_stdin
2017_wasi_config_inherit_stdin.restype = None
2018_wasi_config_inherit_stdin.argtypes = [ctypes.POINTER(wasi_config_t)]
2019def wasi_config_inherit_stdin(config: Any) -> None:
2020 return _wasi_config_inherit_stdin(config) # type: ignore
2022_wasi_config_set_stdout_file = dll.wasi_config_set_stdout_file
2023_wasi_config_set_stdout_file.restype = ctypes.c_bool
2024_wasi_config_set_stdout_file.argtypes = [ctypes.POINTER(wasi_config_t), ctypes.POINTER(ctypes.c_char)]
2025def wasi_config_set_stdout_file(config: Any, path: Any) -> bool:
2026 return _wasi_config_set_stdout_file(config, path) # type: ignore
2028_wasi_config_inherit_stdout = dll.wasi_config_inherit_stdout
2029_wasi_config_inherit_stdout.restype = None
2030_wasi_config_inherit_stdout.argtypes = [ctypes.POINTER(wasi_config_t)]
2031def wasi_config_inherit_stdout(config: Any) -> None:
2032 return _wasi_config_inherit_stdout(config) # type: ignore
2034_wasi_config_set_stdout_custom = dll.wasi_config_set_stdout_custom
2035_wasi_config_set_stdout_custom.restype = None
2036_wasi_config_set_stdout_custom.argtypes = [ctypes.POINTER(wasi_config_t), ctypes.CFUNCTYPE(ctypes.c_ssize_t, ctypes.c_void_p, ctypes.POINTER(ctypes.c_ubyte), ctypes.c_size_t), ctypes.c_void_p, ctypes.CFUNCTYPE(None, ctypes.c_void_p)]
2037def wasi_config_set_stdout_custom(config: Any, callback: Any, data: Any, finalizer: Any) -> None:
2038 return _wasi_config_set_stdout_custom(config, callback, data, finalizer) # type: ignore
2040_wasi_config_set_stderr_file = dll.wasi_config_set_stderr_file
2041_wasi_config_set_stderr_file.restype = ctypes.c_bool
2042_wasi_config_set_stderr_file.argtypes = [ctypes.POINTER(wasi_config_t), ctypes.POINTER(ctypes.c_char)]
2043def wasi_config_set_stderr_file(config: Any, path: Any) -> bool:
2044 return _wasi_config_set_stderr_file(config, path) # type: ignore
2046_wasi_config_inherit_stderr = dll.wasi_config_inherit_stderr
2047_wasi_config_inherit_stderr.restype = None
2048_wasi_config_inherit_stderr.argtypes = [ctypes.POINTER(wasi_config_t)]
2049def wasi_config_inherit_stderr(config: Any) -> None:
2050 return _wasi_config_inherit_stderr(config) # type: ignore
2052_wasi_config_set_stderr_custom = dll.wasi_config_set_stderr_custom
2053_wasi_config_set_stderr_custom.restype = None
2054_wasi_config_set_stderr_custom.argtypes = [ctypes.POINTER(wasi_config_t), ctypes.CFUNCTYPE(ctypes.c_ssize_t, ctypes.c_void_p, ctypes.POINTER(ctypes.c_ubyte), ctypes.c_size_t), ctypes.c_void_p, ctypes.CFUNCTYPE(None, ctypes.c_void_p)]
2055def wasi_config_set_stderr_custom(config: Any, callback: Any, data: Any, finalizer: Any) -> None:
2056 return _wasi_config_set_stderr_custom(config, callback, data, finalizer) # type: ignore
2058class wasi_dir_perms_flags(Enum):
2059 WASMTIME_WASI_DIR_PERMS_READ = 1
2060 WASMTIME_WASI_DIR_PERMS_WRITE = 2
2062wasi_dir_perms = ctypes.c_size_t
2064class wasi_file_perms_flags(Enum):
2065 WASMTIME_WASI_FILE_PERMS_READ = 1
2066 WASMTIME_WASI_FILE_PERMS_WRITE = 2
2068wasi_file_perms = ctypes.c_size_t
2070_wasi_config_preopen_dir = dll.wasi_config_preopen_dir
2071_wasi_config_preopen_dir.restype = ctypes.c_bool
2072_wasi_config_preopen_dir.argtypes = [ctypes.POINTER(wasi_config_t), ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_char), wasi_dir_perms, wasi_file_perms]
2073def wasi_config_preopen_dir(config: Any, host_path: Any, guest_path: Any, dir_perms: Any, file_perms: Any) -> bool:
2074 return _wasi_config_preopen_dir(config, host_path, guest_path, dir_perms, file_perms) # type: ignore
2076class wasmtime_error(ctypes.Structure):
2077 pass
2079wasmtime_error_t = wasmtime_error
2081_wasmtime_error_new = dll.wasmtime_error_new
2082_wasmtime_error_new.restype = ctypes.POINTER(wasmtime_error_t)
2083_wasmtime_error_new.argtypes = [ctypes.POINTER(ctypes.c_char)]
2084def wasmtime_error_new(arg0: Any) -> ctypes._Pointer:
2085 return _wasmtime_error_new(arg0) # type: ignore
2087_wasmtime_error_delete = dll.wasmtime_error_delete
2088_wasmtime_error_delete.restype = None
2089_wasmtime_error_delete.argtypes = [ctypes.POINTER(wasmtime_error_t)]
2090def wasmtime_error_delete(error: Any) -> None:
2091 return _wasmtime_error_delete(error) # type: ignore
2093_wasmtime_error_message = dll.wasmtime_error_message
2094_wasmtime_error_message.restype = None
2095_wasmtime_error_message.argtypes = [ctypes.POINTER(wasmtime_error_t), ctypes.POINTER(wasm_name_t)]
2096def wasmtime_error_message(error: Any, message: Any) -> None:
2097 return _wasmtime_error_message(error, message) # type: ignore
2099_wasmtime_error_exit_status = dll.wasmtime_error_exit_status
2100_wasmtime_error_exit_status.restype = ctypes.c_bool
2101_wasmtime_error_exit_status.argtypes = [ctypes.POINTER(wasmtime_error_t), ctypes.POINTER(ctypes.c_int)]
2102def wasmtime_error_exit_status(arg0: Any, status: Any) -> bool:
2103 return _wasmtime_error_exit_status(arg0, status) # type: ignore
2105_wasmtime_error_wasm_trace = dll.wasmtime_error_wasm_trace
2106_wasmtime_error_wasm_trace.restype = None
2107_wasmtime_error_wasm_trace.argtypes = [ctypes.POINTER(wasmtime_error_t), ctypes.POINTER(wasm_frame_vec_t)]
2108def wasmtime_error_wasm_trace(arg0: Any, out: Any) -> None:
2109 return _wasmtime_error_wasm_trace(arg0, out) # type: ignore
2111class wasmtime_module(ctypes.Structure):
2112 pass
2114wasmtime_module_t = wasmtime_module
2116_wasmtime_module_new = dll.wasmtime_module_new
2117_wasmtime_module_new.restype = ctypes.POINTER(wasmtime_error_t)
2118_wasmtime_module_new.argtypes = [ctypes.POINTER(wasm_engine_t), ctypes.POINTER(ctypes.c_uint8), ctypes.c_size_t, ctypes.POINTER(ctypes.POINTER(wasmtime_module_t))]
2119def wasmtime_module_new(engine: Any, wasm: Any, wasm_len: Any, ret: Any) -> ctypes._Pointer:
2120 return _wasmtime_module_new(engine, wasm, wasm_len, ret) # type: ignore
2122_wasmtime_module_delete = dll.wasmtime_module_delete
2123_wasmtime_module_delete.restype = None
2124_wasmtime_module_delete.argtypes = [ctypes.POINTER(wasmtime_module_t)]
2125def wasmtime_module_delete(m: Any) -> None:
2126 return _wasmtime_module_delete(m) # type: ignore
2128_wasmtime_module_clone = dll.wasmtime_module_clone
2129_wasmtime_module_clone.restype = ctypes.POINTER(wasmtime_module_t)
2130_wasmtime_module_clone.argtypes = [ctypes.POINTER(wasmtime_module_t)]
2131def wasmtime_module_clone(m: Any) -> ctypes._Pointer:
2132 return _wasmtime_module_clone(m) # type: ignore
2134_wasmtime_module_imports = dll.wasmtime_module_imports
2135_wasmtime_module_imports.restype = None
2136_wasmtime_module_imports.argtypes = [ctypes.POINTER(wasmtime_module_t), ctypes.POINTER(wasm_importtype_vec_t)]
2137def wasmtime_module_imports(module: Any, out: Any) -> None:
2138 return _wasmtime_module_imports(module, out) # type: ignore
2140_wasmtime_module_exports = dll.wasmtime_module_exports
2141_wasmtime_module_exports.restype = None
2142_wasmtime_module_exports.argtypes = [ctypes.POINTER(wasmtime_module_t), ctypes.POINTER(wasm_exporttype_vec_t)]
2143def wasmtime_module_exports(module: Any, out: Any) -> None:
2144 return _wasmtime_module_exports(module, out) # type: ignore
2146_wasmtime_module_validate = dll.wasmtime_module_validate
2147_wasmtime_module_validate.restype = ctypes.POINTER(wasmtime_error_t)
2148_wasmtime_module_validate.argtypes = [ctypes.POINTER(wasm_engine_t), ctypes.POINTER(ctypes.c_uint8), ctypes.c_size_t]
2149def wasmtime_module_validate(engine: Any, wasm: Any, wasm_len: Any) -> ctypes._Pointer:
2150 return _wasmtime_module_validate(engine, wasm, wasm_len) # type: ignore
2152_wasmtime_module_serialize = dll.wasmtime_module_serialize
2153_wasmtime_module_serialize.restype = ctypes.POINTER(wasmtime_error_t)
2154_wasmtime_module_serialize.argtypes = [ctypes.POINTER(wasmtime_module_t), ctypes.POINTER(wasm_byte_vec_t)]
2155def wasmtime_module_serialize(module: Any, ret: Any) -> ctypes._Pointer:
2156 return _wasmtime_module_serialize(module, ret) # type: ignore
2158_wasmtime_module_deserialize = dll.wasmtime_module_deserialize
2159_wasmtime_module_deserialize.restype = ctypes.POINTER(wasmtime_error_t)
2160_wasmtime_module_deserialize.argtypes = [ctypes.POINTER(wasm_engine_t), ctypes.POINTER(ctypes.c_uint8), ctypes.c_size_t, ctypes.POINTER(ctypes.POINTER(wasmtime_module_t))]
2161def wasmtime_module_deserialize(engine: Any, bytes: Any, bytes_len: Any, ret: Any) -> ctypes._Pointer:
2162 return _wasmtime_module_deserialize(engine, bytes, bytes_len, ret) # type: ignore
2164_wasmtime_module_deserialize_file = dll.wasmtime_module_deserialize_file
2165_wasmtime_module_deserialize_file.restype = ctypes.POINTER(wasmtime_error_t)
2166_wasmtime_module_deserialize_file.argtypes = [ctypes.POINTER(wasm_engine_t), ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.POINTER(wasmtime_module_t))]
2167def wasmtime_module_deserialize_file(engine: Any, path: Any, ret: Any) -> ctypes._Pointer:
2168 return _wasmtime_module_deserialize_file(engine, path, ret) # type: ignore
2170_wasmtime_module_image_range = dll.wasmtime_module_image_range
2171_wasmtime_module_image_range.restype = None
2172_wasmtime_module_image_range.argtypes = [ctypes.POINTER(wasmtime_module_t), ctypes.POINTER(ctypes.c_void_p), ctypes.POINTER(ctypes.c_void_p)]
2173def wasmtime_module_image_range(module: Any, start: Any, end: Any) -> None:
2174 return _wasmtime_module_image_range(module, start, end) # type: ignore
2176class wasmtime_sharedmemory(ctypes.Structure):
2177 pass
2179wasmtime_sharedmemory_t = wasmtime_sharedmemory
2181_wasmtime_sharedmemory_new = dll.wasmtime_sharedmemory_new
2182_wasmtime_sharedmemory_new.restype = ctypes.POINTER(wasmtime_error_t)
2183_wasmtime_sharedmemory_new.argtypes = [ctypes.POINTER(wasm_engine_t), ctypes.POINTER(wasm_memorytype_t), ctypes.POINTER(ctypes.POINTER(wasmtime_sharedmemory_t))]
2184def wasmtime_sharedmemory_new(engine: Any, ty: Any, ret: Any) -> ctypes._Pointer:
2185 return _wasmtime_sharedmemory_new(engine, ty, ret) # type: ignore
2187_wasmtime_sharedmemory_delete = dll.wasmtime_sharedmemory_delete
2188_wasmtime_sharedmemory_delete.restype = None
2189_wasmtime_sharedmemory_delete.argtypes = [ctypes.POINTER(wasmtime_sharedmemory_t)]
2190def wasmtime_sharedmemory_delete(memory: Any) -> None:
2191 return _wasmtime_sharedmemory_delete(memory) # type: ignore
2193_wasmtime_sharedmemory_clone = dll.wasmtime_sharedmemory_clone
2194_wasmtime_sharedmemory_clone.restype = ctypes.POINTER(wasmtime_sharedmemory_t)
2195_wasmtime_sharedmemory_clone.argtypes = [ctypes.POINTER(wasmtime_sharedmemory_t)]
2196def wasmtime_sharedmemory_clone(memory: Any) -> ctypes._Pointer:
2197 return _wasmtime_sharedmemory_clone(memory) # type: ignore
2199_wasmtime_sharedmemory_type = dll.wasmtime_sharedmemory_type
2200_wasmtime_sharedmemory_type.restype = ctypes.POINTER(wasm_memorytype_t)
2201_wasmtime_sharedmemory_type.argtypes = [ctypes.POINTER(wasmtime_sharedmemory_t)]
2202def wasmtime_sharedmemory_type(memory: Any) -> ctypes._Pointer:
2203 return _wasmtime_sharedmemory_type(memory) # type: ignore
2205_wasmtime_sharedmemory_data = dll.wasmtime_sharedmemory_data
2206_wasmtime_sharedmemory_data.restype = ctypes.POINTER(ctypes.c_uint8)
2207_wasmtime_sharedmemory_data.argtypes = [ctypes.POINTER(wasmtime_sharedmemory_t)]
2208def wasmtime_sharedmemory_data(memory: Any) -> ctypes._Pointer:
2209 return _wasmtime_sharedmemory_data(memory) # type: ignore
2211_wasmtime_sharedmemory_data_size = dll.wasmtime_sharedmemory_data_size
2212_wasmtime_sharedmemory_data_size.restype = ctypes.c_size_t
2213_wasmtime_sharedmemory_data_size.argtypes = [ctypes.POINTER(wasmtime_sharedmemory_t)]
2214def wasmtime_sharedmemory_data_size(memory: Any) -> int:
2215 return _wasmtime_sharedmemory_data_size(memory) # type: ignore
2217_wasmtime_sharedmemory_size = dll.wasmtime_sharedmemory_size
2218_wasmtime_sharedmemory_size.restype = ctypes.c_uint64
2219_wasmtime_sharedmemory_size.argtypes = [ctypes.POINTER(wasmtime_sharedmemory_t)]
2220def wasmtime_sharedmemory_size(memory: Any) -> int:
2221 return _wasmtime_sharedmemory_size(memory) # type: ignore
2223_wasmtime_sharedmemory_grow = dll.wasmtime_sharedmemory_grow
2224_wasmtime_sharedmemory_grow.restype = ctypes.POINTER(wasmtime_error_t)
2225_wasmtime_sharedmemory_grow.argtypes = [ctypes.POINTER(wasmtime_sharedmemory_t), ctypes.c_uint64, ctypes.POINTER(ctypes.c_uint64)]
2226def wasmtime_sharedmemory_grow(memory: Any, delta: Any, prev_size: Any) -> ctypes._Pointer:
2227 return _wasmtime_sharedmemory_grow(memory, delta, prev_size) # type: ignore
2229class wasmtime_store(ctypes.Structure):
2230 pass
2232wasmtime_store_t = wasmtime_store
2234class wasmtime_context(ctypes.Structure):
2235 pass
2237wasmtime_context_t = wasmtime_context
2239_wasmtime_store_new = dll.wasmtime_store_new
2240_wasmtime_store_new.restype = ctypes.POINTER(wasmtime_store_t)
2241_wasmtime_store_new.argtypes = [ctypes.POINTER(wasm_engine_t), ctypes.c_void_p, ctypes.CFUNCTYPE(None, ctypes.c_void_p)]
2242def wasmtime_store_new(engine: Any, data: Any, finalizer: Any) -> ctypes._Pointer:
2243 return _wasmtime_store_new(engine, data, finalizer) # type: ignore
2245_wasmtime_store_context = dll.wasmtime_store_context
2246_wasmtime_store_context.restype = ctypes.POINTER(wasmtime_context_t)
2247_wasmtime_store_context.argtypes = [ctypes.POINTER(wasmtime_store_t)]
2248def wasmtime_store_context(store: Any) -> ctypes._Pointer:
2249 return _wasmtime_store_context(store) # type: ignore
2251_wasmtime_store_limiter = dll.wasmtime_store_limiter
2252_wasmtime_store_limiter.restype = None
2253_wasmtime_store_limiter.argtypes = [ctypes.POINTER(wasmtime_store_t), ctypes.c_int64, ctypes.c_int64, ctypes.c_int64, ctypes.c_int64, ctypes.c_int64]
2254def wasmtime_store_limiter(store: Any, memory_size: Any, table_elements: Any, instances: Any, tables: Any, memories: Any) -> None:
2255 return _wasmtime_store_limiter(store, memory_size, table_elements, instances, tables, memories) # type: ignore
2257_wasmtime_store_delete = dll.wasmtime_store_delete
2258_wasmtime_store_delete.restype = None
2259_wasmtime_store_delete.argtypes = [ctypes.POINTER(wasmtime_store_t)]
2260def wasmtime_store_delete(store: Any) -> None:
2261 return _wasmtime_store_delete(store) # type: ignore
2263_wasmtime_context_get_data = dll.wasmtime_context_get_data
2264_wasmtime_context_get_data.restype = ctypes.c_void_p
2265_wasmtime_context_get_data.argtypes = [ctypes.POINTER(wasmtime_context_t)]
2266def wasmtime_context_get_data(context: Any) -> ctypes._Pointer:
2267 return _wasmtime_context_get_data(context) # type: ignore
2269_wasmtime_context_set_data = dll.wasmtime_context_set_data
2270_wasmtime_context_set_data.restype = None
2271_wasmtime_context_set_data.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.c_void_p]
2272def wasmtime_context_set_data(context: Any, data: Any) -> None:
2273 return _wasmtime_context_set_data(context, data) # type: ignore
2275_wasmtime_context_gc = dll.wasmtime_context_gc
2276_wasmtime_context_gc.restype = ctypes.POINTER(wasmtime_error_t)
2277_wasmtime_context_gc.argtypes = [ctypes.POINTER(wasmtime_context_t)]
2278def wasmtime_context_gc(context: Any) -> ctypes._Pointer:
2279 return _wasmtime_context_gc(context) # type: ignore
2281_wasmtime_context_set_fuel = dll.wasmtime_context_set_fuel
2282_wasmtime_context_set_fuel.restype = ctypes.POINTER(wasmtime_error_t)
2283_wasmtime_context_set_fuel.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.c_uint64]
2284def wasmtime_context_set_fuel(store: Any, fuel: Any) -> ctypes._Pointer:
2285 return _wasmtime_context_set_fuel(store, fuel) # type: ignore
2287_wasmtime_context_get_fuel = dll.wasmtime_context_get_fuel
2288_wasmtime_context_get_fuel.restype = ctypes.POINTER(wasmtime_error_t)
2289_wasmtime_context_get_fuel.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(ctypes.c_uint64)]
2290def wasmtime_context_get_fuel(context: Any, fuel: Any) -> ctypes._Pointer:
2291 return _wasmtime_context_get_fuel(context, fuel) # type: ignore
2293_wasmtime_context_set_wasi = dll.wasmtime_context_set_wasi
2294_wasmtime_context_set_wasi.restype = ctypes.POINTER(wasmtime_error_t)
2295_wasmtime_context_set_wasi.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasi_config_t)]
2296def wasmtime_context_set_wasi(context: Any, wasi: Any) -> ctypes._Pointer:
2297 return _wasmtime_context_set_wasi(context, wasi) # type: ignore
2299_wasmtime_context_set_wasi_http = dll.wasmtime_context_set_wasi_http
2300_wasmtime_context_set_wasi_http.restype = None
2301_wasmtime_context_set_wasi_http.argtypes = [ctypes.POINTER(wasmtime_context_t)]
2302def wasmtime_context_set_wasi_http(context: Any) -> None:
2303 return _wasmtime_context_set_wasi_http(context) # type: ignore
2305_wasmtime_context_set_epoch_deadline = dll.wasmtime_context_set_epoch_deadline
2306_wasmtime_context_set_epoch_deadline.restype = None
2307_wasmtime_context_set_epoch_deadline.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.c_uint64]
2308def wasmtime_context_set_epoch_deadline(context: Any, ticks_beyond_current: Any) -> None:
2309 return _wasmtime_context_set_epoch_deadline(context, ticks_beyond_current) # type: ignore
2311wasmtime_update_deadline_kind_t = ctypes.c_uint8
2313_wasmtime_store_epoch_deadline_callback = dll.wasmtime_store_epoch_deadline_callback
2314_wasmtime_store_epoch_deadline_callback.restype = None
2315_wasmtime_store_epoch_deadline_callback.argtypes = [ctypes.POINTER(wasmtime_store_t), ctypes.CFUNCTYPE(ctypes.c_size_t, ctypes.POINTER(wasmtime_context_t), ctypes.c_void_p, ctypes.POINTER(ctypes.c_uint64), ctypes.POINTER(wasmtime_update_deadline_kind_t)), ctypes.c_void_p, ctypes.CFUNCTYPE(None, ctypes.c_void_p)]
2316def wasmtime_store_epoch_deadline_callback(store: Any, func: Any, data: Any, finalizer: Any) -> None:
2317 return _wasmtime_store_epoch_deadline_callback(store, func, data, finalizer) # type: ignore
2320class wasmtime_tag_anon_0(ctypes.Structure):
2321 _fields_ = [
2322 ("store_id", ctypes.c_uint64),
2323 ("__private1", ctypes.c_uint32),
2324 ]
2325 store_id: int
2326 __private1: int
2327class wasmtime_tag(ctypes.Structure):
2328 _fields_ = [
2329 ("_anon_1", wasmtime_tag_anon_0),
2330 ("__private2", ctypes.c_uint32),
2331 ]
2332 _anon_1: wasmtime_tag_anon_0
2333 __private2: int
2335wasmtime_tag_t = wasmtime_tag
2337_wasmtime_tag_new = dll.wasmtime_tag_new
2338_wasmtime_tag_new.restype = ctypes.POINTER(wasmtime_error_t)
2339_wasmtime_tag_new.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasm_tagtype_t), ctypes.POINTER(wasmtime_tag_t)]
2340def wasmtime_tag_new(store: Any, tt: Any, ret: Any) -> ctypes._Pointer:
2341 return _wasmtime_tag_new(store, tt, ret) # type: ignore
2343_wasmtime_tag_type = dll.wasmtime_tag_type
2344_wasmtime_tag_type.restype = ctypes.POINTER(wasm_tagtype_t)
2345_wasmtime_tag_type.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_tag_t)]
2346def wasmtime_tag_type(store: Any, tag: Any) -> ctypes._Pointer:
2347 return _wasmtime_tag_type(store, tag) # type: ignore
2349_wasmtime_tag_eq = dll.wasmtime_tag_eq
2350_wasmtime_tag_eq.restype = ctypes.c_bool
2351_wasmtime_tag_eq.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_tag_t), ctypes.POINTER(wasmtime_tag_t)]
2352def wasmtime_tag_eq(store: Any, a: Any, b: Any) -> bool:
2353 return _wasmtime_tag_eq(store, a, b) # type: ignore
2355class wasmtime_func(ctypes.Structure):
2356 _fields_ = [
2357 ("store_id", ctypes.c_uint64),
2358 ("__private", ctypes.c_void_p),
2359 ]
2360 store_id: int
2361 __private: ctypes._Pointer
2363wasmtime_func_t = wasmtime_func
2366class wasmtime_table_anon_0(ctypes.Structure):
2367 _fields_ = [
2368 ("store_id", ctypes.c_uint64),
2369 ("__private1", ctypes.c_uint32),
2370 ]
2371 store_id: int
2372 __private1: int
2373class wasmtime_table(ctypes.Structure):
2374 _fields_ = [
2375 ("_anon_1", wasmtime_table_anon_0),
2376 ("__private2", ctypes.c_uint32),
2377 ]
2378 _anon_1: wasmtime_table_anon_0
2379 __private2: int
2381wasmtime_table_t = wasmtime_table
2384class wasmtime_memory_anon_0(ctypes.Structure):
2385 _fields_ = [
2386 ("store_id", ctypes.c_uint64),
2387 ("__private1", ctypes.c_uint32),
2388 ]
2389 store_id: int
2390 __private1: int
2391class wasmtime_memory(ctypes.Structure):
2392 _fields_ = [
2393 ("_anon_1", wasmtime_memory_anon_0),
2394 ("__private2", ctypes.c_uint32),
2395 ]
2396 _anon_1: wasmtime_memory_anon_0
2397 __private2: int
2399wasmtime_memory_t = wasmtime_memory
2401class wasmtime_global(ctypes.Structure):
2402 _fields_ = [
2403 ("store_id", ctypes.c_uint64),
2404 ("__private1", ctypes.c_uint32),
2405 ("__private2", ctypes.c_uint32),
2406 ("__private3", ctypes.c_uint32),
2407 ]
2408 store_id: int
2409 __private1: int
2410 __private2: int
2411 __private3: int
2413wasmtime_global_t = wasmtime_global
2415wasmtime_extern_kind_t = ctypes.c_uint8
2417class wasmtime_extern_union(ctypes.Union):
2418 _fields_ = [
2419 ("func", wasmtime_func_t),
2420 ("global_", wasmtime_global_t),
2421 ("table", wasmtime_table_t),
2422 ("memory", wasmtime_memory_t),
2423 ("sharedmemory", ctypes.POINTER(wasmtime_sharedmemory)),
2424 ("tag", wasmtime_tag_t),
2425 ]
2426 func: wasmtime_func_t
2427 global_: wasmtime_global_t
2428 table: wasmtime_table_t
2429 memory: wasmtime_memory_t
2430 sharedmemory: ctypes._Pointer
2431 tag: wasmtime_tag_t
2433wasmtime_extern_union_t = wasmtime_extern_union
2435class wasmtime_extern(ctypes.Structure):
2436 _fields_ = [
2437 ("kind", wasmtime_extern_kind_t),
2438 ("of", wasmtime_extern_union_t),
2439 ]
2440 kind: wasmtime_extern_kind_t
2441 of: wasmtime_extern_union_t
2443wasmtime_extern_t = wasmtime_extern
2445_wasmtime_extern_delete = dll.wasmtime_extern_delete
2446_wasmtime_extern_delete.restype = None
2447_wasmtime_extern_delete.argtypes = [ctypes.POINTER(wasmtime_extern_t)]
2448def wasmtime_extern_delete(val: Any) -> None:
2449 return _wasmtime_extern_delete(val) # type: ignore
2451_wasmtime_extern_type = dll.wasmtime_extern_type
2452_wasmtime_extern_type.restype = ctypes.POINTER(wasm_externtype_t)
2453_wasmtime_extern_type.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_extern_t)]
2454def wasmtime_extern_type(context: Any, val: Any) -> ctypes._Pointer:
2455 return _wasmtime_extern_type(context, val) # type: ignore
2457wasmtime_valkind_t = ctypes.c_uint8
2459wasmtime_v128 = ctypes.c_uint8 * 16
2461class wasmtime_anyref(ctypes.Structure):
2462 _fields_ = [
2463 ("store_id", ctypes.c_uint64),
2464 ("__private1", ctypes.c_uint32),
2465 ("__private2", ctypes.c_uint32),
2466 ("__private3", ctypes.c_void_p),
2467 ]
2468 store_id: int
2469 __private1: int
2470 __private2: int
2471 __private3: ctypes._Pointer
2473wasmtime_anyref_t = wasmtime_anyref
2475class wasmtime_exnref(ctypes.Structure):
2476 _fields_ = [
2477 ("store_id", ctypes.c_uint64),
2478 ("__private1", ctypes.c_uint32),
2479 ("__private2", ctypes.c_uint32),
2480 ("__private3", ctypes.c_void_p),
2481 ]
2482 store_id: int
2483 __private1: int
2484 __private2: int
2485 __private3: ctypes._Pointer
2487wasmtime_exnref_t = wasmtime_exnref
2489class wasmtime_externref(ctypes.Structure):
2490 _fields_ = [
2491 ("store_id", ctypes.c_uint64),
2492 ("__private1", ctypes.c_uint32),
2493 ("__private2", ctypes.c_uint32),
2494 ("__private3", ctypes.c_void_p),
2495 ]
2496 store_id: int
2497 __private1: int
2498 __private2: int
2499 __private3: ctypes._Pointer
2501wasmtime_externref_t = wasmtime_externref
2503class wasmtime_eqref(ctypes.Structure):
2504 _fields_ = [
2505 ("store_id", ctypes.c_uint64),
2506 ("__private1", ctypes.c_uint32),
2507 ("__private2", ctypes.c_uint32),
2508 ("__private3", ctypes.c_void_p),
2509 ]
2510 store_id: int
2511 __private1: int
2512 __private2: int
2513 __private3: ctypes._Pointer
2515wasmtime_eqref_t = wasmtime_eqref
2517class wasmtime_structref(ctypes.Structure):
2518 _fields_ = [
2519 ("store_id", ctypes.c_uint64),
2520 ("__private1", ctypes.c_uint32),
2521 ("__private2", ctypes.c_uint32),
2522 ("__private3", ctypes.c_void_p),
2523 ]
2524 store_id: int
2525 __private1: int
2526 __private2: int
2527 __private3: ctypes._Pointer
2529wasmtime_structref_t = wasmtime_structref
2531class wasmtime_arrayref(ctypes.Structure):
2532 _fields_ = [
2533 ("store_id", ctypes.c_uint64),
2534 ("__private1", ctypes.c_uint32),
2535 ("__private2", ctypes.c_uint32),
2536 ("__private3", ctypes.c_void_p),
2537 ]
2538 store_id: int
2539 __private1: int
2540 __private2: int
2541 __private3: ctypes._Pointer
2543wasmtime_arrayref_t = wasmtime_arrayref
2545class wasmtime_valunion(ctypes.Union):
2546 _fields_ = [
2547 ("i32", ctypes.c_int32),
2548 ("i64", ctypes.c_int64),
2549 ("f32", ctypes.c_float),
2550 ("f64", ctypes.c_double),
2551 ("anyref", wasmtime_anyref_t),
2552 ("externref", wasmtime_externref_t),
2553 ("exnref", wasmtime_exnref_t),
2554 ("funcref", wasmtime_func_t),
2555 ("v128", wasmtime_v128),
2556 ]
2557 i32: int
2558 i64: int
2559 f32: float
2560 f64: float
2561 anyref: wasmtime_anyref_t
2562 externref: wasmtime_externref_t
2563 exnref: wasmtime_exnref_t
2564 funcref: wasmtime_func_t
2565 v128: wasmtime_v128 # type: ignore
2567wasmtime_valunion_t = wasmtime_valunion
2569class wasmtime_val_raw(ctypes.Union):
2570 _fields_ = [
2571 ("i32", ctypes.c_int32),
2572 ("i64", ctypes.c_int64),
2573 ("f32", ctypes.c_float),
2574 ("f64", ctypes.c_double),
2575 ("v128", wasmtime_v128),
2576 ("anyref", ctypes.c_uint32),
2577 ("externref", ctypes.c_uint32),
2578 ("exnref", ctypes.c_uint32),
2579 ("funcref", ctypes.c_void_p),
2580 ]
2581 i32: int
2582 i64: int
2583 f32: float
2584 f64: float
2585 v128: wasmtime_v128 # type: ignore
2586 anyref: int
2587 externref: int
2588 exnref: int
2589 funcref: ctypes._Pointer
2591wasmtime_val_raw_t = wasmtime_val_raw
2593class wasmtime_val(ctypes.Structure):
2594 _fields_ = [
2595 ("kind", wasmtime_valkind_t),
2596 ("of", wasmtime_valunion_t),
2597 ]
2598 kind: wasmtime_valkind_t
2599 of: wasmtime_valunion_t
2601wasmtime_val_t = wasmtime_val
2603_wasmtime_val_unroot = dll.wasmtime_val_unroot
2604_wasmtime_val_unroot.restype = None
2605_wasmtime_val_unroot.argtypes = [ctypes.POINTER(wasmtime_val_t)]
2606def wasmtime_val_unroot(val: Any) -> None:
2607 return _wasmtime_val_unroot(val) # type: ignore
2609_wasmtime_val_clone = dll.wasmtime_val_clone
2610_wasmtime_val_clone.restype = None
2611_wasmtime_val_clone.argtypes = [ctypes.POINTER(wasmtime_val_t), ctypes.POINTER(wasmtime_val_t)]
2612def wasmtime_val_clone(src: Any, dst: Any) -> None:
2613 return _wasmtime_val_clone(src, dst) # type: ignore
2615_wasmtime_anyref_clone = dll.wasmtime_anyref_clone
2616_wasmtime_anyref_clone.restype = None
2617_wasmtime_anyref_clone.argtypes = [ctypes.POINTER(wasmtime_anyref_t), ctypes.POINTER(wasmtime_anyref_t)]
2618def wasmtime_anyref_clone(anyref: Any, out: Any) -> None:
2619 return _wasmtime_anyref_clone(anyref, out) # type: ignore
2621_wasmtime_anyref_unroot = dll.wasmtime_anyref_unroot
2622_wasmtime_anyref_unroot.restype = None
2623_wasmtime_anyref_unroot.argtypes = [ctypes.POINTER(wasmtime_anyref_t)]
2624def wasmtime_anyref_unroot(ref: Any) -> None:
2625 return _wasmtime_anyref_unroot(ref) # type: ignore
2627_wasmtime_anyref_from_raw = dll.wasmtime_anyref_from_raw
2628_wasmtime_anyref_from_raw.restype = None
2629_wasmtime_anyref_from_raw.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.c_uint32, ctypes.POINTER(wasmtime_anyref_t)]
2630def wasmtime_anyref_from_raw(context: Any, raw: Any, out: Any) -> None:
2631 return _wasmtime_anyref_from_raw(context, raw, out) # type: ignore
2633_wasmtime_anyref_to_raw = dll.wasmtime_anyref_to_raw
2634_wasmtime_anyref_to_raw.restype = ctypes.c_uint32
2635_wasmtime_anyref_to_raw.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_anyref_t)]
2636def wasmtime_anyref_to_raw(context: Any, ref: Any) -> int:
2637 return _wasmtime_anyref_to_raw(context, ref) # type: ignore
2639_wasmtime_anyref_from_i31 = dll.wasmtime_anyref_from_i31
2640_wasmtime_anyref_from_i31.restype = None
2641_wasmtime_anyref_from_i31.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.c_uint32, ctypes.POINTER(wasmtime_anyref_t)]
2642def wasmtime_anyref_from_i31(context: Any, i31val: Any, out: Any) -> None:
2643 return _wasmtime_anyref_from_i31(context, i31val, out) # type: ignore
2645_wasmtime_anyref_is_i31 = dll.wasmtime_anyref_is_i31
2646_wasmtime_anyref_is_i31.restype = ctypes.c_bool
2647_wasmtime_anyref_is_i31.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_anyref_t)]
2648def wasmtime_anyref_is_i31(context: Any, anyref: Any) -> bool:
2649 return _wasmtime_anyref_is_i31(context, anyref) # type: ignore
2651_wasmtime_anyref_i31_get_u = dll.wasmtime_anyref_i31_get_u
2652_wasmtime_anyref_i31_get_u.restype = ctypes.c_bool
2653_wasmtime_anyref_i31_get_u.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_anyref_t), ctypes.POINTER(ctypes.c_uint32)]
2654def wasmtime_anyref_i31_get_u(context: Any, anyref: Any, dst: Any) -> bool:
2655 return _wasmtime_anyref_i31_get_u(context, anyref, dst) # type: ignore
2657_wasmtime_anyref_i31_get_s = dll.wasmtime_anyref_i31_get_s
2658_wasmtime_anyref_i31_get_s.restype = ctypes.c_bool
2659_wasmtime_anyref_i31_get_s.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_anyref_t), ctypes.POINTER(ctypes.c_int32)]
2660def wasmtime_anyref_i31_get_s(context: Any, anyref: Any, dst: Any) -> bool:
2661 return _wasmtime_anyref_i31_get_s(context, anyref, dst) # type: ignore
2663_wasmtime_anyref_is_eqref = dll.wasmtime_anyref_is_eqref
2664_wasmtime_anyref_is_eqref.restype = ctypes.c_bool
2665_wasmtime_anyref_is_eqref.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_anyref_t)]
2666def wasmtime_anyref_is_eqref(context: Any, anyref: Any) -> bool:
2667 return _wasmtime_anyref_is_eqref(context, anyref) # type: ignore
2669_wasmtime_anyref_as_eqref = dll.wasmtime_anyref_as_eqref
2670_wasmtime_anyref_as_eqref.restype = ctypes.c_bool
2671_wasmtime_anyref_as_eqref.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_anyref_t), ctypes.POINTER(wasmtime_eqref_t)]
2672def wasmtime_anyref_as_eqref(context: Any, anyref: Any, out: Any) -> bool:
2673 return _wasmtime_anyref_as_eqref(context, anyref, out) # type: ignore
2675_wasmtime_anyref_is_struct = dll.wasmtime_anyref_is_struct
2676_wasmtime_anyref_is_struct.restype = ctypes.c_bool
2677_wasmtime_anyref_is_struct.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_anyref_t)]
2678def wasmtime_anyref_is_struct(context: Any, anyref: Any) -> bool:
2679 return _wasmtime_anyref_is_struct(context, anyref) # type: ignore
2681_wasmtime_anyref_as_struct = dll.wasmtime_anyref_as_struct
2682_wasmtime_anyref_as_struct.restype = ctypes.c_bool
2683_wasmtime_anyref_as_struct.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_anyref_t), ctypes.POINTER(wasmtime_structref_t)]
2684def wasmtime_anyref_as_struct(context: Any, anyref: Any, out: Any) -> bool:
2685 return _wasmtime_anyref_as_struct(context, anyref, out) # type: ignore
2687_wasmtime_anyref_is_array = dll.wasmtime_anyref_is_array
2688_wasmtime_anyref_is_array.restype = ctypes.c_bool
2689_wasmtime_anyref_is_array.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_anyref_t)]
2690def wasmtime_anyref_is_array(context: Any, anyref: Any) -> bool:
2691 return _wasmtime_anyref_is_array(context, anyref) # type: ignore
2693_wasmtime_anyref_as_array = dll.wasmtime_anyref_as_array
2694_wasmtime_anyref_as_array.restype = ctypes.c_bool
2695_wasmtime_anyref_as_array.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_anyref_t), ctypes.POINTER(wasmtime_arrayref_t)]
2696def wasmtime_anyref_as_array(context: Any, anyref: Any, out: Any) -> bool:
2697 return _wasmtime_anyref_as_array(context, anyref, out) # type: ignore
2699wasmtime_storage_type_kind_t = ctypes.c_uint8
2701class wasmtime_storage_type(ctypes.Structure):
2702 _fields_ = [
2703 ("kind", wasmtime_storage_type_kind_t),
2704 ("valtype", ctypes.POINTER(wasm_valtype_t)),
2705 ]
2706 kind: wasmtime_storage_type_kind_t
2707 valtype: ctypes._Pointer
2709wasmtime_storage_type_t = wasmtime_storage_type
2711_wasmtime_storage_type_clone = dll.wasmtime_storage_type_clone
2712_wasmtime_storage_type_clone.restype = None
2713_wasmtime_storage_type_clone.argtypes = [ctypes.POINTER(wasmtime_storage_type_t), ctypes.POINTER(wasmtime_storage_type_t)]
2714def wasmtime_storage_type_clone(storage: Any, out: Any) -> None:
2715 return _wasmtime_storage_type_clone(storage, out) # type: ignore
2717_wasmtime_storage_type_delete = dll.wasmtime_storage_type_delete
2718_wasmtime_storage_type_delete.restype = None
2719_wasmtime_storage_type_delete.argtypes = [ctypes.POINTER(wasmtime_storage_type_t)]
2720def wasmtime_storage_type_delete(storage: Any) -> None:
2721 return _wasmtime_storage_type_delete(storage) # type: ignore
2723class wasmtime_field_type(ctypes.Structure):
2724 _fields_ = [
2725 ("mutable_", ctypes.c_bool),
2726 ("storage", wasmtime_storage_type_t),
2727 ]
2728 mutable_: bool
2729 storage: wasmtime_storage_type_t
2731wasmtime_field_type_t = wasmtime_field_type
2733_wasmtime_field_type_clone = dll.wasmtime_field_type_clone
2734_wasmtime_field_type_clone.restype = None
2735_wasmtime_field_type_clone.argtypes = [ctypes.POINTER(wasmtime_field_type_t), ctypes.POINTER(wasmtime_field_type_t)]
2736def wasmtime_field_type_clone(field: Any, out: Any) -> None:
2737 return _wasmtime_field_type_clone(field, out) # type: ignore
2739_wasmtime_field_type_delete = dll.wasmtime_field_type_delete
2740_wasmtime_field_type_delete.restype = None
2741_wasmtime_field_type_delete.argtypes = [ctypes.POINTER(wasmtime_field_type_t)]
2742def wasmtime_field_type_delete(field: Any) -> None:
2743 return _wasmtime_field_type_delete(field) # type: ignore
2745class wasmtime_struct_type(ctypes.Structure):
2746 pass
2748wasmtime_struct_type_t = wasmtime_struct_type
2750_wasmtime_struct_type_new = dll.wasmtime_struct_type_new
2751_wasmtime_struct_type_new.restype = ctypes.POINTER(wasmtime_struct_type_t)
2752_wasmtime_struct_type_new.argtypes = [ctypes.POINTER(wasm_engine_t), ctypes.POINTER(wasmtime_field_type_t), ctypes.c_size_t]
2753def wasmtime_struct_type_new(engine: Any, fields: Any, nfields: Any) -> ctypes._Pointer:
2754 return _wasmtime_struct_type_new(engine, fields, nfields) # type: ignore
2756_wasmtime_struct_type_copy = dll.wasmtime_struct_type_copy
2757_wasmtime_struct_type_copy.restype = ctypes.POINTER(wasmtime_struct_type_t)
2758_wasmtime_struct_type_copy.argtypes = [ctypes.POINTER(wasmtime_struct_type_t)]
2759def wasmtime_struct_type_copy(ty: Any) -> ctypes._Pointer:
2760 return _wasmtime_struct_type_copy(ty) # type: ignore
2762_wasmtime_struct_type_delete = dll.wasmtime_struct_type_delete
2763_wasmtime_struct_type_delete.restype = None
2764_wasmtime_struct_type_delete.argtypes = [ctypes.POINTER(wasmtime_struct_type_t)]
2765def wasmtime_struct_type_delete(ty: Any) -> None:
2766 return _wasmtime_struct_type_delete(ty) # type: ignore
2768_wasmtime_struct_type_num_fields = dll.wasmtime_struct_type_num_fields
2769_wasmtime_struct_type_num_fields.restype = ctypes.c_size_t
2770_wasmtime_struct_type_num_fields.argtypes = [ctypes.POINTER(wasmtime_struct_type_t)]
2771def wasmtime_struct_type_num_fields(ty: Any) -> int:
2772 return _wasmtime_struct_type_num_fields(ty) # type: ignore
2774_wasmtime_struct_type_field = dll.wasmtime_struct_type_field
2775_wasmtime_struct_type_field.restype = ctypes.c_bool
2776_wasmtime_struct_type_field.argtypes = [ctypes.POINTER(wasmtime_struct_type_t), ctypes.c_size_t, ctypes.POINTER(wasmtime_field_type_t)]
2777def wasmtime_struct_type_field(ty: Any, index: Any, out: Any) -> bool:
2778 return _wasmtime_struct_type_field(ty, index, out) # type: ignore
2780class wasmtime_array_type(ctypes.Structure):
2781 pass
2783wasmtime_array_type_t = wasmtime_array_type
2785_wasmtime_array_type_new = dll.wasmtime_array_type_new
2786_wasmtime_array_type_new.restype = ctypes.POINTER(wasmtime_array_type_t)
2787_wasmtime_array_type_new.argtypes = [ctypes.POINTER(wasm_engine_t), ctypes.POINTER(wasmtime_field_type_t)]
2788def wasmtime_array_type_new(engine: Any, field: Any) -> ctypes._Pointer:
2789 return _wasmtime_array_type_new(engine, field) # type: ignore
2791_wasmtime_array_type_copy = dll.wasmtime_array_type_copy
2792_wasmtime_array_type_copy.restype = ctypes.POINTER(wasmtime_array_type_t)
2793_wasmtime_array_type_copy.argtypes = [ctypes.POINTER(wasmtime_array_type_t)]
2794def wasmtime_array_type_copy(ty: Any) -> ctypes._Pointer:
2795 return _wasmtime_array_type_copy(ty) # type: ignore
2797_wasmtime_array_type_delete = dll.wasmtime_array_type_delete
2798_wasmtime_array_type_delete.restype = None
2799_wasmtime_array_type_delete.argtypes = [ctypes.POINTER(wasmtime_array_type_t)]
2800def wasmtime_array_type_delete(ty: Any) -> None:
2801 return _wasmtime_array_type_delete(ty) # type: ignore
2803_wasmtime_array_type_element = dll.wasmtime_array_type_element
2804_wasmtime_array_type_element.restype = None
2805_wasmtime_array_type_element.argtypes = [ctypes.POINTER(wasmtime_array_type_t), ctypes.POINTER(wasmtime_field_type_t)]
2806def wasmtime_array_type_element(ty: Any, out: Any) -> None:
2807 return _wasmtime_array_type_element(ty, out) # type: ignore
2809class wasmtime_array_ref_pre(ctypes.Structure):
2810 pass
2812wasmtime_array_ref_pre_t = wasmtime_array_ref_pre
2814_wasmtime_array_ref_pre_new = dll.wasmtime_array_ref_pre_new
2815_wasmtime_array_ref_pre_new.restype = ctypes.POINTER(wasmtime_array_ref_pre_t)
2816_wasmtime_array_ref_pre_new.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_array_type_t)]
2817def wasmtime_array_ref_pre_new(context: Any, ty: Any) -> ctypes._Pointer:
2818 return _wasmtime_array_ref_pre_new(context, ty) # type: ignore
2820_wasmtime_array_ref_pre_delete = dll.wasmtime_array_ref_pre_delete
2821_wasmtime_array_ref_pre_delete.restype = None
2822_wasmtime_array_ref_pre_delete.argtypes = [ctypes.POINTER(wasmtime_array_ref_pre_t)]
2823def wasmtime_array_ref_pre_delete(pre: Any) -> None:
2824 return _wasmtime_array_ref_pre_delete(pre) # type: ignore
2826_wasmtime_arrayref_new = dll.wasmtime_arrayref_new
2827_wasmtime_arrayref_new.restype = ctypes.POINTER(wasmtime_error_t)
2828_wasmtime_arrayref_new.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_array_ref_pre_t), ctypes.POINTER(wasmtime_val_t), ctypes.c_uint32, ctypes.POINTER(wasmtime_arrayref_t)]
2829def wasmtime_arrayref_new(context: Any, pre: Any, elem: Any, len: Any, out: Any) -> ctypes._Pointer:
2830 return _wasmtime_arrayref_new(context, pre, elem, len, out) # type: ignore
2832_wasmtime_arrayref_clone = dll.wasmtime_arrayref_clone
2833_wasmtime_arrayref_clone.restype = None
2834_wasmtime_arrayref_clone.argtypes = [ctypes.POINTER(wasmtime_arrayref_t), ctypes.POINTER(wasmtime_arrayref_t)]
2835def wasmtime_arrayref_clone(arrayref: Any, out: Any) -> None:
2836 return _wasmtime_arrayref_clone(arrayref, out) # type: ignore
2838_wasmtime_arrayref_unroot = dll.wasmtime_arrayref_unroot
2839_wasmtime_arrayref_unroot.restype = None
2840_wasmtime_arrayref_unroot.argtypes = [ctypes.POINTER(wasmtime_arrayref_t)]
2841def wasmtime_arrayref_unroot(ref: Any) -> None:
2842 return _wasmtime_arrayref_unroot(ref) # type: ignore
2844_wasmtime_arrayref_to_anyref = dll.wasmtime_arrayref_to_anyref
2845_wasmtime_arrayref_to_anyref.restype = None
2846_wasmtime_arrayref_to_anyref.argtypes = [ctypes.POINTER(wasmtime_arrayref_t), ctypes.POINTER(wasmtime_anyref_t)]
2847def wasmtime_arrayref_to_anyref(arrayref: Any, out: Any) -> None:
2848 return _wasmtime_arrayref_to_anyref(arrayref, out) # type: ignore
2850_wasmtime_arrayref_to_eqref = dll.wasmtime_arrayref_to_eqref
2851_wasmtime_arrayref_to_eqref.restype = None
2852_wasmtime_arrayref_to_eqref.argtypes = [ctypes.POINTER(wasmtime_arrayref_t), ctypes.POINTER(wasmtime_eqref_t)]
2853def wasmtime_arrayref_to_eqref(arrayref: Any, out: Any) -> None:
2854 return _wasmtime_arrayref_to_eqref(arrayref, out) # type: ignore
2856_wasmtime_arrayref_len = dll.wasmtime_arrayref_len
2857_wasmtime_arrayref_len.restype = ctypes.POINTER(wasmtime_error_t)
2858_wasmtime_arrayref_len.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_arrayref_t), ctypes.POINTER(ctypes.c_uint32)]
2859def wasmtime_arrayref_len(context: Any, arrayref: Any, out: Any) -> ctypes._Pointer:
2860 return _wasmtime_arrayref_len(context, arrayref, out) # type: ignore
2862_wasmtime_arrayref_get = dll.wasmtime_arrayref_get
2863_wasmtime_arrayref_get.restype = ctypes.POINTER(wasmtime_error_t)
2864_wasmtime_arrayref_get.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_arrayref_t), ctypes.c_uint32, ctypes.POINTER(wasmtime_val_t)]
2865def wasmtime_arrayref_get(context: Any, arrayref: Any, index: Any, out: Any) -> ctypes._Pointer:
2866 return _wasmtime_arrayref_get(context, arrayref, index, out) # type: ignore
2868_wasmtime_arrayref_set = dll.wasmtime_arrayref_set
2869_wasmtime_arrayref_set.restype = ctypes.POINTER(wasmtime_error_t)
2870_wasmtime_arrayref_set.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_arrayref_t), ctypes.c_uint32, ctypes.POINTER(wasmtime_val_t)]
2871def wasmtime_arrayref_set(context: Any, arrayref: Any, index: Any, val: Any) -> ctypes._Pointer:
2872 return _wasmtime_arrayref_set(context, arrayref, index, val) # type: ignore
2874wasmtime_strategy_t = ctypes.c_uint8
2876class wasmtime_strategy_enum(Enum):
2877 WASMTIME_STRATEGY_AUTO = auto()
2878 WASMTIME_STRATEGY_CRANELIFT = auto()
2879 WASMTIME_STRATEGY_WINCH = auto()
2881wasmtime_opt_level_t = ctypes.c_uint8
2883class wasmtime_opt_level_enum(Enum):
2884 WASMTIME_OPT_LEVEL_NONE = auto()
2885 WASMTIME_OPT_LEVEL_SPEED = auto()
2886 WASMTIME_OPT_LEVEL_SPEED_AND_SIZE = auto()
2888wasmtime_profiling_strategy_t = ctypes.c_uint8
2890class wasmtime_profiling_strategy_enum(Enum):
2891 WASMTIME_PROFILING_STRATEGY_NONE = auto()
2892 WASMTIME_PROFILING_STRATEGY_JITDUMP = auto()
2893 WASMTIME_PROFILING_STRATEGY_VTUNE = auto()
2894 WASMTIME_PROFILING_STRATEGY_PERFMAP = auto()
2896wasmtime_regalloc_algorithm_t = ctypes.c_uint8
2898class wasmtime_regalloc_algorithm_enum(Enum):
2899 WASMTIME_REGALLOC_BACKTRACKING = auto()
2900 WASMTIME_REGALLOC_SINGLE_PASS = auto()
2902_wasmtime_config_debug_info_set = dll.wasmtime_config_debug_info_set
2903_wasmtime_config_debug_info_set.restype = None
2904_wasmtime_config_debug_info_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2905def wasmtime_config_debug_info_set(arg0: Any, arg1: Any) -> None:
2906 return _wasmtime_config_debug_info_set(arg0, arg1) # type: ignore
2908_wasmtime_config_consume_fuel_set = dll.wasmtime_config_consume_fuel_set
2909_wasmtime_config_consume_fuel_set.restype = None
2910_wasmtime_config_consume_fuel_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2911def wasmtime_config_consume_fuel_set(arg0: Any, arg1: Any) -> None:
2912 return _wasmtime_config_consume_fuel_set(arg0, arg1) # type: ignore
2914_wasmtime_config_epoch_interruption_set = dll.wasmtime_config_epoch_interruption_set
2915_wasmtime_config_epoch_interruption_set.restype = None
2916_wasmtime_config_epoch_interruption_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2917def wasmtime_config_epoch_interruption_set(arg0: Any, arg1: Any) -> None:
2918 return _wasmtime_config_epoch_interruption_set(arg0, arg1) # type: ignore
2920_wasmtime_config_max_wasm_stack_set = dll.wasmtime_config_max_wasm_stack_set
2921_wasmtime_config_max_wasm_stack_set.restype = None
2922_wasmtime_config_max_wasm_stack_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_size_t]
2923def wasmtime_config_max_wasm_stack_set(arg0: Any, arg1: Any) -> None:
2924 return _wasmtime_config_max_wasm_stack_set(arg0, arg1) # type: ignore
2926_wasmtime_config_wasm_threads_set = dll.wasmtime_config_wasm_threads_set
2927_wasmtime_config_wasm_threads_set.restype = None
2928_wasmtime_config_wasm_threads_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2929def wasmtime_config_wasm_threads_set(arg0: Any, arg1: Any) -> None:
2930 return _wasmtime_config_wasm_threads_set(arg0, arg1) # type: ignore
2932_wasmtime_config_shared_memory_set = dll.wasmtime_config_shared_memory_set
2933_wasmtime_config_shared_memory_set.restype = None
2934_wasmtime_config_shared_memory_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2935def wasmtime_config_shared_memory_set(arg0: Any, arg1: Any) -> None:
2936 return _wasmtime_config_shared_memory_set(arg0, arg1) # type: ignore
2938_wasmtime_config_wasm_tail_call_set = dll.wasmtime_config_wasm_tail_call_set
2939_wasmtime_config_wasm_tail_call_set.restype = None
2940_wasmtime_config_wasm_tail_call_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2941def wasmtime_config_wasm_tail_call_set(arg0: Any, arg1: Any) -> None:
2942 return _wasmtime_config_wasm_tail_call_set(arg0, arg1) # type: ignore
2944_wasmtime_config_wasm_reference_types_set = dll.wasmtime_config_wasm_reference_types_set
2945_wasmtime_config_wasm_reference_types_set.restype = None
2946_wasmtime_config_wasm_reference_types_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2947def wasmtime_config_wasm_reference_types_set(arg0: Any, arg1: Any) -> None:
2948 return _wasmtime_config_wasm_reference_types_set(arg0, arg1) # type: ignore
2950_wasmtime_config_wasm_function_references_set = dll.wasmtime_config_wasm_function_references_set
2951_wasmtime_config_wasm_function_references_set.restype = None
2952_wasmtime_config_wasm_function_references_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2953def wasmtime_config_wasm_function_references_set(arg0: Any, arg1: Any) -> None:
2954 return _wasmtime_config_wasm_function_references_set(arg0, arg1) # type: ignore
2956_wasmtime_config_wasm_gc_set = dll.wasmtime_config_wasm_gc_set
2957_wasmtime_config_wasm_gc_set.restype = None
2958_wasmtime_config_wasm_gc_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2959def wasmtime_config_wasm_gc_set(arg0: Any, arg1: Any) -> None:
2960 return _wasmtime_config_wasm_gc_set(arg0, arg1) # type: ignore
2962_wasmtime_config_gc_support_set = dll.wasmtime_config_gc_support_set
2963_wasmtime_config_gc_support_set.restype = None
2964_wasmtime_config_gc_support_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2965def wasmtime_config_gc_support_set(arg0: Any, arg1: Any) -> None:
2966 return _wasmtime_config_gc_support_set(arg0, arg1) # type: ignore
2968_wasmtime_config_wasm_simd_set = dll.wasmtime_config_wasm_simd_set
2969_wasmtime_config_wasm_simd_set.restype = None
2970_wasmtime_config_wasm_simd_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2971def wasmtime_config_wasm_simd_set(arg0: Any, arg1: Any) -> None:
2972 return _wasmtime_config_wasm_simd_set(arg0, arg1) # type: ignore
2974_wasmtime_config_wasm_relaxed_simd_set = dll.wasmtime_config_wasm_relaxed_simd_set
2975_wasmtime_config_wasm_relaxed_simd_set.restype = None
2976_wasmtime_config_wasm_relaxed_simd_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2977def wasmtime_config_wasm_relaxed_simd_set(arg0: Any, arg1: Any) -> None:
2978 return _wasmtime_config_wasm_relaxed_simd_set(arg0, arg1) # type: ignore
2980_wasmtime_config_wasm_relaxed_simd_deterministic_set = dll.wasmtime_config_wasm_relaxed_simd_deterministic_set
2981_wasmtime_config_wasm_relaxed_simd_deterministic_set.restype = None
2982_wasmtime_config_wasm_relaxed_simd_deterministic_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2983def wasmtime_config_wasm_relaxed_simd_deterministic_set(arg0: Any, arg1: Any) -> None:
2984 return _wasmtime_config_wasm_relaxed_simd_deterministic_set(arg0, arg1) # type: ignore
2986_wasmtime_config_wasm_bulk_memory_set = dll.wasmtime_config_wasm_bulk_memory_set
2987_wasmtime_config_wasm_bulk_memory_set.restype = None
2988_wasmtime_config_wasm_bulk_memory_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2989def wasmtime_config_wasm_bulk_memory_set(arg0: Any, arg1: Any) -> None:
2990 return _wasmtime_config_wasm_bulk_memory_set(arg0, arg1) # type: ignore
2992_wasmtime_config_wasm_multi_value_set = dll.wasmtime_config_wasm_multi_value_set
2993_wasmtime_config_wasm_multi_value_set.restype = None
2994_wasmtime_config_wasm_multi_value_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2995def wasmtime_config_wasm_multi_value_set(arg0: Any, arg1: Any) -> None:
2996 return _wasmtime_config_wasm_multi_value_set(arg0, arg1) # type: ignore
2998_wasmtime_config_wasm_multi_memory_set = dll.wasmtime_config_wasm_multi_memory_set
2999_wasmtime_config_wasm_multi_memory_set.restype = None
3000_wasmtime_config_wasm_multi_memory_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3001def wasmtime_config_wasm_multi_memory_set(arg0: Any, arg1: Any) -> None:
3002 return _wasmtime_config_wasm_multi_memory_set(arg0, arg1) # type: ignore
3004_wasmtime_config_wasm_memory64_set = dll.wasmtime_config_wasm_memory64_set
3005_wasmtime_config_wasm_memory64_set.restype = None
3006_wasmtime_config_wasm_memory64_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3007def wasmtime_config_wasm_memory64_set(arg0: Any, arg1: Any) -> None:
3008 return _wasmtime_config_wasm_memory64_set(arg0, arg1) # type: ignore
3010_wasmtime_config_wasm_wide_arithmetic_set = dll.wasmtime_config_wasm_wide_arithmetic_set
3011_wasmtime_config_wasm_wide_arithmetic_set.restype = None
3012_wasmtime_config_wasm_wide_arithmetic_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3013def wasmtime_config_wasm_wide_arithmetic_set(arg0: Any, arg1: Any) -> None:
3014 return _wasmtime_config_wasm_wide_arithmetic_set(arg0, arg1) # type: ignore
3016_wasmtime_config_wasm_exceptions_set = dll.wasmtime_config_wasm_exceptions_set
3017_wasmtime_config_wasm_exceptions_set.restype = None
3018_wasmtime_config_wasm_exceptions_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3019def wasmtime_config_wasm_exceptions_set(arg0: Any, arg1: Any) -> None:
3020 return _wasmtime_config_wasm_exceptions_set(arg0, arg1) # type: ignore
3022_wasmtime_config_wasm_custom_page_sizes_set = dll.wasmtime_config_wasm_custom_page_sizes_set
3023_wasmtime_config_wasm_custom_page_sizes_set.restype = None
3024_wasmtime_config_wasm_custom_page_sizes_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3025def wasmtime_config_wasm_custom_page_sizes_set(arg0: Any, arg1: Any) -> None:
3026 return _wasmtime_config_wasm_custom_page_sizes_set(arg0, arg1) # type: ignore
3028_wasmtime_config_wasm_stack_switching_set = dll.wasmtime_config_wasm_stack_switching_set
3029_wasmtime_config_wasm_stack_switching_set.restype = None
3030_wasmtime_config_wasm_stack_switching_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3031def wasmtime_config_wasm_stack_switching_set(arg0: Any, arg1: Any) -> None:
3032 return _wasmtime_config_wasm_stack_switching_set(arg0, arg1) # type: ignore
3034_wasmtime_config_strategy_set = dll.wasmtime_config_strategy_set
3035_wasmtime_config_strategy_set.restype = None
3036_wasmtime_config_strategy_set.argtypes = [ctypes.POINTER(wasm_config_t), wasmtime_strategy_t]
3037def wasmtime_config_strategy_set(arg0: Any, arg1: Any) -> None:
3038 return _wasmtime_config_strategy_set(arg0, arg1) # type: ignore
3040_wasmtime_config_parallel_compilation_set = dll.wasmtime_config_parallel_compilation_set
3041_wasmtime_config_parallel_compilation_set.restype = None
3042_wasmtime_config_parallel_compilation_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3043def wasmtime_config_parallel_compilation_set(arg0: Any, arg1: Any) -> None:
3044 return _wasmtime_config_parallel_compilation_set(arg0, arg1) # type: ignore
3046_wasmtime_config_cranelift_debug_verifier_set = dll.wasmtime_config_cranelift_debug_verifier_set
3047_wasmtime_config_cranelift_debug_verifier_set.restype = None
3048_wasmtime_config_cranelift_debug_verifier_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3049def wasmtime_config_cranelift_debug_verifier_set(arg0: Any, arg1: Any) -> None:
3050 return _wasmtime_config_cranelift_debug_verifier_set(arg0, arg1) # type: ignore
3052_wasmtime_config_cranelift_nan_canonicalization_set = dll.wasmtime_config_cranelift_nan_canonicalization_set
3053_wasmtime_config_cranelift_nan_canonicalization_set.restype = None
3054_wasmtime_config_cranelift_nan_canonicalization_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3055def wasmtime_config_cranelift_nan_canonicalization_set(arg0: Any, arg1: Any) -> None:
3056 return _wasmtime_config_cranelift_nan_canonicalization_set(arg0, arg1) # type: ignore
3058_wasmtime_config_cranelift_opt_level_set = dll.wasmtime_config_cranelift_opt_level_set
3059_wasmtime_config_cranelift_opt_level_set.restype = None
3060_wasmtime_config_cranelift_opt_level_set.argtypes = [ctypes.POINTER(wasm_config_t), wasmtime_opt_level_t]
3061def wasmtime_config_cranelift_opt_level_set(arg0: Any, arg1: Any) -> None:
3062 return _wasmtime_config_cranelift_opt_level_set(arg0, arg1) # type: ignore
3064_wasmtime_config_cranelift_regalloc_algorithm_set = dll.wasmtime_config_cranelift_regalloc_algorithm_set
3065_wasmtime_config_cranelift_regalloc_algorithm_set.restype = None
3066_wasmtime_config_cranelift_regalloc_algorithm_set.argtypes = [ctypes.POINTER(wasm_config_t), wasmtime_regalloc_algorithm_t]
3067def wasmtime_config_cranelift_regalloc_algorithm_set(arg0: Any, arg1: Any) -> None:
3068 return _wasmtime_config_cranelift_regalloc_algorithm_set(arg0, arg1) # type: ignore
3070_wasmtime_config_profiler_set = dll.wasmtime_config_profiler_set
3071_wasmtime_config_profiler_set.restype = None
3072_wasmtime_config_profiler_set.argtypes = [ctypes.POINTER(wasm_config_t), wasmtime_profiling_strategy_t]
3073def wasmtime_config_profiler_set(arg0: Any, arg1: Any) -> None:
3074 return _wasmtime_config_profiler_set(arg0, arg1) # type: ignore
3076_wasmtime_config_memory_may_move_set = dll.wasmtime_config_memory_may_move_set
3077_wasmtime_config_memory_may_move_set.restype = None
3078_wasmtime_config_memory_may_move_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3079def wasmtime_config_memory_may_move_set(arg0: Any, arg1: Any) -> None:
3080 return _wasmtime_config_memory_may_move_set(arg0, arg1) # type: ignore
3082_wasmtime_config_memory_reservation_set = dll.wasmtime_config_memory_reservation_set
3083_wasmtime_config_memory_reservation_set.restype = None
3084_wasmtime_config_memory_reservation_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_uint64]
3085def wasmtime_config_memory_reservation_set(arg0: Any, arg1: Any) -> None:
3086 return _wasmtime_config_memory_reservation_set(arg0, arg1) # type: ignore
3088_wasmtime_config_memory_guard_size_set = dll.wasmtime_config_memory_guard_size_set
3089_wasmtime_config_memory_guard_size_set.restype = None
3090_wasmtime_config_memory_guard_size_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_uint64]
3091def wasmtime_config_memory_guard_size_set(arg0: Any, arg1: Any) -> None:
3092 return _wasmtime_config_memory_guard_size_set(arg0, arg1) # type: ignore
3094_wasmtime_config_memory_reservation_for_growth_set = dll.wasmtime_config_memory_reservation_for_growth_set
3095_wasmtime_config_memory_reservation_for_growth_set.restype = None
3096_wasmtime_config_memory_reservation_for_growth_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_uint64]
3097def wasmtime_config_memory_reservation_for_growth_set(arg0: Any, arg1: Any) -> None:
3098 return _wasmtime_config_memory_reservation_for_growth_set(arg0, arg1) # type: ignore
3100_wasmtime_config_native_unwind_info_set = dll.wasmtime_config_native_unwind_info_set
3101_wasmtime_config_native_unwind_info_set.restype = None
3102_wasmtime_config_native_unwind_info_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3103def wasmtime_config_native_unwind_info_set(arg0: Any, arg1: Any) -> None:
3104 return _wasmtime_config_native_unwind_info_set(arg0, arg1) # type: ignore
3106_wasmtime_config_cache_config_load = dll.wasmtime_config_cache_config_load
3107_wasmtime_config_cache_config_load.restype = ctypes.POINTER(wasmtime_error_t)
3108_wasmtime_config_cache_config_load.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.POINTER(ctypes.c_char)]
3109def wasmtime_config_cache_config_load(arg0: Any, arg1: Any) -> ctypes._Pointer:
3110 return _wasmtime_config_cache_config_load(arg0, arg1) # type: ignore
3112_wasmtime_config_target_set = dll.wasmtime_config_target_set
3113_wasmtime_config_target_set.restype = ctypes.POINTER(wasmtime_error_t)
3114_wasmtime_config_target_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.POINTER(ctypes.c_char)]
3115def wasmtime_config_target_set(arg0: Any, arg1: Any) -> ctypes._Pointer:
3116 return _wasmtime_config_target_set(arg0, arg1) # type: ignore
3118_wasmtime_config_cranelift_flag_enable = dll.wasmtime_config_cranelift_flag_enable
3119_wasmtime_config_cranelift_flag_enable.restype = None
3120_wasmtime_config_cranelift_flag_enable.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.POINTER(ctypes.c_char)]
3121def wasmtime_config_cranelift_flag_enable(arg0: Any, arg1: Any) -> None:
3122 return _wasmtime_config_cranelift_flag_enable(arg0, arg1) # type: ignore
3124_wasmtime_config_cranelift_flag_set = dll.wasmtime_config_cranelift_flag_set
3125_wasmtime_config_cranelift_flag_set.restype = None
3126_wasmtime_config_cranelift_flag_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_char)]
3127def wasmtime_config_cranelift_flag_set(arg0: Any, key: Any, value: Any) -> None:
3128 return _wasmtime_config_cranelift_flag_set(arg0, key, value) # type: ignore
3130_wasmtime_config_macos_use_mach_ports_set = dll.wasmtime_config_macos_use_mach_ports_set
3131_wasmtime_config_macos_use_mach_ports_set.restype = None
3132_wasmtime_config_macos_use_mach_ports_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3133def wasmtime_config_macos_use_mach_ports_set(arg0: Any, arg1: Any) -> None:
3134 return _wasmtime_config_macos_use_mach_ports_set(arg0, arg1) # type: ignore
3136_wasmtime_config_signals_based_traps_set = dll.wasmtime_config_signals_based_traps_set
3137_wasmtime_config_signals_based_traps_set.restype = None
3138_wasmtime_config_signals_based_traps_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3139def wasmtime_config_signals_based_traps_set(arg0: Any, arg1: Any) -> None:
3140 return _wasmtime_config_signals_based_traps_set(arg0, arg1) # type: ignore
3142wasmtime_memory_get_callback_t = ctypes.CFUNCTYPE(ctypes.c_size_t, ctypes.c_void_p, ctypes.POINTER(ctypes.c_size_t), ctypes.POINTER(ctypes.c_size_t))
3144wasmtime_memory_grow_callback_t = ctypes.CFUNCTYPE(ctypes.c_size_t, ctypes.c_void_p, ctypes.c_size_t)
3146class wasmtime_linear_memory(ctypes.Structure):
3147 _fields_ = [
3148 ("env", ctypes.c_void_p),
3149 ("get_memory", wasmtime_memory_get_callback_t),
3150 ("grow_memory", wasmtime_memory_grow_callback_t),
3151 ("finalizer", ctypes.CFUNCTYPE(None, ctypes.c_void_p)),
3152 ]
3153 env: ctypes._Pointer
3154 get_memory: ctypes._Pointer
3155 grow_memory: ctypes._Pointer
3156 finalizer: ctypes._Pointer
3158wasmtime_linear_memory_t = wasmtime_linear_memory
3160wasmtime_new_memory_callback_t = ctypes.CFUNCTYPE(ctypes.c_size_t, ctypes.c_void_p, ctypes.POINTER(wasm_memorytype_t), ctypes.c_size_t, ctypes.c_size_t, ctypes.c_size_t, ctypes.c_size_t, ctypes.POINTER(wasmtime_linear_memory_t))
3162class wasmtime_memory_creator(ctypes.Structure):
3163 _fields_ = [
3164 ("env", ctypes.c_void_p),
3165 ("new_memory", wasmtime_new_memory_callback_t),
3166 ("finalizer", ctypes.CFUNCTYPE(None, ctypes.c_void_p)),
3167 ]
3168 env: ctypes._Pointer
3169 new_memory: ctypes._Pointer
3170 finalizer: ctypes._Pointer
3172wasmtime_memory_creator_t = wasmtime_memory_creator
3174_wasmtime_config_host_memory_creator_set = dll.wasmtime_config_host_memory_creator_set
3175_wasmtime_config_host_memory_creator_set.restype = None
3176_wasmtime_config_host_memory_creator_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.POINTER(wasmtime_memory_creator_t)]
3177def wasmtime_config_host_memory_creator_set(arg0: Any, arg1: Any) -> None:
3178 return _wasmtime_config_host_memory_creator_set(arg0, arg1) # type: ignore
3180_wasmtime_config_memory_init_cow_set = dll.wasmtime_config_memory_init_cow_set
3181_wasmtime_config_memory_init_cow_set.restype = None
3182_wasmtime_config_memory_init_cow_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3183def wasmtime_config_memory_init_cow_set(arg0: Any, arg1: Any) -> None:
3184 return _wasmtime_config_memory_init_cow_set(arg0, arg1) # type: ignore
3186class wasmtime_pooling_allocation_config_t(ctypes.Structure):
3187 pass
3189_wasmtime_pooling_allocation_config_new = dll.wasmtime_pooling_allocation_config_new
3190_wasmtime_pooling_allocation_config_new.restype = ctypes.POINTER(wasmtime_pooling_allocation_config_t)
3191_wasmtime_pooling_allocation_config_new.argtypes = []
3192def wasmtime_pooling_allocation_config_new() -> ctypes._Pointer:
3193 return _wasmtime_pooling_allocation_config_new() # type: ignore
3195_wasmtime_pooling_allocation_config_delete = dll.wasmtime_pooling_allocation_config_delete
3196_wasmtime_pooling_allocation_config_delete.restype = None
3197_wasmtime_pooling_allocation_config_delete.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t)]
3198def wasmtime_pooling_allocation_config_delete(arg0: Any) -> None:
3199 return _wasmtime_pooling_allocation_config_delete(arg0) # type: ignore
3201_wasmtime_pooling_allocation_config_max_unused_warm_slots_set = dll.wasmtime_pooling_allocation_config_max_unused_warm_slots_set
3202_wasmtime_pooling_allocation_config_max_unused_warm_slots_set.restype = None
3203_wasmtime_pooling_allocation_config_max_unused_warm_slots_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_uint32]
3204def wasmtime_pooling_allocation_config_max_unused_warm_slots_set(arg0: Any, arg1: Any) -> None:
3205 return _wasmtime_pooling_allocation_config_max_unused_warm_slots_set(arg0, arg1) # type: ignore
3207_wasmtime_pooling_allocation_config_decommit_batch_size_set = dll.wasmtime_pooling_allocation_config_decommit_batch_size_set
3208_wasmtime_pooling_allocation_config_decommit_batch_size_set.restype = None
3209_wasmtime_pooling_allocation_config_decommit_batch_size_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_size_t]
3210def wasmtime_pooling_allocation_config_decommit_batch_size_set(arg0: Any, arg1: Any) -> None:
3211 return _wasmtime_pooling_allocation_config_decommit_batch_size_set(arg0, arg1) # type: ignore
3213_wasmtime_pooling_allocation_config_async_stack_keep_resident_set = dll.wasmtime_pooling_allocation_config_async_stack_keep_resident_set
3214_wasmtime_pooling_allocation_config_async_stack_keep_resident_set.restype = None
3215_wasmtime_pooling_allocation_config_async_stack_keep_resident_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_size_t]
3216def wasmtime_pooling_allocation_config_async_stack_keep_resident_set(arg0: Any, arg1: Any) -> None:
3217 return _wasmtime_pooling_allocation_config_async_stack_keep_resident_set(arg0, arg1) # type: ignore
3219_wasmtime_pooling_allocation_config_linear_memory_keep_resident_set = dll.wasmtime_pooling_allocation_config_linear_memory_keep_resident_set
3220_wasmtime_pooling_allocation_config_linear_memory_keep_resident_set.restype = None
3221_wasmtime_pooling_allocation_config_linear_memory_keep_resident_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_size_t]
3222def wasmtime_pooling_allocation_config_linear_memory_keep_resident_set(arg0: Any, arg1: Any) -> None:
3223 return _wasmtime_pooling_allocation_config_linear_memory_keep_resident_set(arg0, arg1) # type: ignore
3225_wasmtime_pooling_allocation_config_table_keep_resident_set = dll.wasmtime_pooling_allocation_config_table_keep_resident_set
3226_wasmtime_pooling_allocation_config_table_keep_resident_set.restype = None
3227_wasmtime_pooling_allocation_config_table_keep_resident_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_size_t]
3228def wasmtime_pooling_allocation_config_table_keep_resident_set(arg0: Any, arg1: Any) -> None:
3229 return _wasmtime_pooling_allocation_config_table_keep_resident_set(arg0, arg1) # type: ignore
3231_wasmtime_pooling_allocation_config_total_component_instances_set = dll.wasmtime_pooling_allocation_config_total_component_instances_set
3232_wasmtime_pooling_allocation_config_total_component_instances_set.restype = None
3233_wasmtime_pooling_allocation_config_total_component_instances_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_uint32]
3234def wasmtime_pooling_allocation_config_total_component_instances_set(arg0: Any, arg1: Any) -> None:
3235 return _wasmtime_pooling_allocation_config_total_component_instances_set(arg0, arg1) # type: ignore
3237_wasmtime_pooling_allocation_config_max_component_instance_size_set = dll.wasmtime_pooling_allocation_config_max_component_instance_size_set
3238_wasmtime_pooling_allocation_config_max_component_instance_size_set.restype = None
3239_wasmtime_pooling_allocation_config_max_component_instance_size_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_size_t]
3240def wasmtime_pooling_allocation_config_max_component_instance_size_set(arg0: Any, arg1: Any) -> None:
3241 return _wasmtime_pooling_allocation_config_max_component_instance_size_set(arg0, arg1) # type: ignore
3243_wasmtime_pooling_allocation_config_max_core_instances_per_component_set = dll.wasmtime_pooling_allocation_config_max_core_instances_per_component_set
3244_wasmtime_pooling_allocation_config_max_core_instances_per_component_set.restype = None
3245_wasmtime_pooling_allocation_config_max_core_instances_per_component_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_uint32]
3246def wasmtime_pooling_allocation_config_max_core_instances_per_component_set(arg0: Any, arg1: Any) -> None:
3247 return _wasmtime_pooling_allocation_config_max_core_instances_per_component_set(arg0, arg1) # type: ignore
3249_wasmtime_pooling_allocation_config_max_memories_per_component_set = dll.wasmtime_pooling_allocation_config_max_memories_per_component_set
3250_wasmtime_pooling_allocation_config_max_memories_per_component_set.restype = None
3251_wasmtime_pooling_allocation_config_max_memories_per_component_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_uint32]
3252def wasmtime_pooling_allocation_config_max_memories_per_component_set(arg0: Any, arg1: Any) -> None:
3253 return _wasmtime_pooling_allocation_config_max_memories_per_component_set(arg0, arg1) # type: ignore
3255_wasmtime_pooling_allocation_config_max_tables_per_component_set = dll.wasmtime_pooling_allocation_config_max_tables_per_component_set
3256_wasmtime_pooling_allocation_config_max_tables_per_component_set.restype = None
3257_wasmtime_pooling_allocation_config_max_tables_per_component_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_uint32]
3258def wasmtime_pooling_allocation_config_max_tables_per_component_set(arg0: Any, arg1: Any) -> None:
3259 return _wasmtime_pooling_allocation_config_max_tables_per_component_set(arg0, arg1) # type: ignore
3261_wasmtime_pooling_allocation_config_total_memories_set = dll.wasmtime_pooling_allocation_config_total_memories_set
3262_wasmtime_pooling_allocation_config_total_memories_set.restype = None
3263_wasmtime_pooling_allocation_config_total_memories_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_uint32]
3264def wasmtime_pooling_allocation_config_total_memories_set(arg0: Any, arg1: Any) -> None:
3265 return _wasmtime_pooling_allocation_config_total_memories_set(arg0, arg1) # type: ignore
3267_wasmtime_pooling_allocation_config_total_tables_set = dll.wasmtime_pooling_allocation_config_total_tables_set
3268_wasmtime_pooling_allocation_config_total_tables_set.restype = None
3269_wasmtime_pooling_allocation_config_total_tables_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_uint32]
3270def wasmtime_pooling_allocation_config_total_tables_set(arg0: Any, arg1: Any) -> None:
3271 return _wasmtime_pooling_allocation_config_total_tables_set(arg0, arg1) # type: ignore
3273_wasmtime_pooling_allocation_config_total_stacks_set = dll.wasmtime_pooling_allocation_config_total_stacks_set
3274_wasmtime_pooling_allocation_config_total_stacks_set.restype = None
3275_wasmtime_pooling_allocation_config_total_stacks_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_uint32]
3276def wasmtime_pooling_allocation_config_total_stacks_set(arg0: Any, arg1: Any) -> None:
3277 return _wasmtime_pooling_allocation_config_total_stacks_set(arg0, arg1) # type: ignore
3279_wasmtime_pooling_allocation_config_total_core_instances_set = dll.wasmtime_pooling_allocation_config_total_core_instances_set
3280_wasmtime_pooling_allocation_config_total_core_instances_set.restype = None
3281_wasmtime_pooling_allocation_config_total_core_instances_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_uint32]
3282def wasmtime_pooling_allocation_config_total_core_instances_set(arg0: Any, arg1: Any) -> None:
3283 return _wasmtime_pooling_allocation_config_total_core_instances_set(arg0, arg1) # type: ignore
3285_wasmtime_pooling_allocation_config_max_core_instance_size_set = dll.wasmtime_pooling_allocation_config_max_core_instance_size_set
3286_wasmtime_pooling_allocation_config_max_core_instance_size_set.restype = None
3287_wasmtime_pooling_allocation_config_max_core_instance_size_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_size_t]
3288def wasmtime_pooling_allocation_config_max_core_instance_size_set(arg0: Any, arg1: Any) -> None:
3289 return _wasmtime_pooling_allocation_config_max_core_instance_size_set(arg0, arg1) # type: ignore
3291_wasmtime_pooling_allocation_config_max_tables_per_module_set = dll.wasmtime_pooling_allocation_config_max_tables_per_module_set
3292_wasmtime_pooling_allocation_config_max_tables_per_module_set.restype = None
3293_wasmtime_pooling_allocation_config_max_tables_per_module_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_uint32]
3294def wasmtime_pooling_allocation_config_max_tables_per_module_set(arg0: Any, arg1: Any) -> None:
3295 return _wasmtime_pooling_allocation_config_max_tables_per_module_set(arg0, arg1) # type: ignore
3297_wasmtime_pooling_allocation_config_table_elements_set = dll.wasmtime_pooling_allocation_config_table_elements_set
3298_wasmtime_pooling_allocation_config_table_elements_set.restype = None
3299_wasmtime_pooling_allocation_config_table_elements_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_size_t]
3300def wasmtime_pooling_allocation_config_table_elements_set(arg0: Any, arg1: Any) -> None:
3301 return _wasmtime_pooling_allocation_config_table_elements_set(arg0, arg1) # type: ignore
3303_wasmtime_pooling_allocation_config_max_memories_per_module_set = dll.wasmtime_pooling_allocation_config_max_memories_per_module_set
3304_wasmtime_pooling_allocation_config_max_memories_per_module_set.restype = None
3305_wasmtime_pooling_allocation_config_max_memories_per_module_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_uint32]
3306def wasmtime_pooling_allocation_config_max_memories_per_module_set(arg0: Any, arg1: Any) -> None:
3307 return _wasmtime_pooling_allocation_config_max_memories_per_module_set(arg0, arg1) # type: ignore
3309_wasmtime_pooling_allocation_config_max_memory_size_set = dll.wasmtime_pooling_allocation_config_max_memory_size_set
3310_wasmtime_pooling_allocation_config_max_memory_size_set.restype = None
3311_wasmtime_pooling_allocation_config_max_memory_size_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_size_t]
3312def wasmtime_pooling_allocation_config_max_memory_size_set(arg0: Any, arg1: Any) -> None:
3313 return _wasmtime_pooling_allocation_config_max_memory_size_set(arg0, arg1) # type: ignore
3315_wasmtime_pooling_allocation_config_total_gc_heaps_set = dll.wasmtime_pooling_allocation_config_total_gc_heaps_set
3316_wasmtime_pooling_allocation_config_total_gc_heaps_set.restype = None
3317_wasmtime_pooling_allocation_config_total_gc_heaps_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_uint32]
3318def wasmtime_pooling_allocation_config_total_gc_heaps_set(arg0: Any, arg1: Any) -> None:
3319 return _wasmtime_pooling_allocation_config_total_gc_heaps_set(arg0, arg1) # type: ignore
3321_wasmtime_pooling_allocation_strategy_set = dll.wasmtime_pooling_allocation_strategy_set
3322_wasmtime_pooling_allocation_strategy_set.restype = None
3323_wasmtime_pooling_allocation_strategy_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.POINTER(wasmtime_pooling_allocation_config_t)]
3324def wasmtime_pooling_allocation_strategy_set(arg0: Any, arg1: Any) -> None:
3325 return _wasmtime_pooling_allocation_strategy_set(arg0, arg1) # type: ignore
3327_wasmtime_config_wasm_component_model_set = dll.wasmtime_config_wasm_component_model_set
3328_wasmtime_config_wasm_component_model_set.restype = None
3329_wasmtime_config_wasm_component_model_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3330def wasmtime_config_wasm_component_model_set(arg0: Any, arg1: Any) -> None:
3331 return _wasmtime_config_wasm_component_model_set(arg0, arg1) # type: ignore
3333_wasmtime_config_concurrency_support_set = dll.wasmtime_config_concurrency_support_set
3334_wasmtime_config_concurrency_support_set.restype = None
3335_wasmtime_config_concurrency_support_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3336def wasmtime_config_concurrency_support_set(arg0: Any, arg1: Any) -> None:
3337 return _wasmtime_config_concurrency_support_set(arg0, arg1) # type: ignore
3339_wasmtime_config_wasm_component_model_map_set = dll.wasmtime_config_wasm_component_model_map_set
3340_wasmtime_config_wasm_component_model_map_set.restype = None
3341_wasmtime_config_wasm_component_model_map_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3342def wasmtime_config_wasm_component_model_map_set(arg0: Any, arg1: Any) -> None:
3343 return _wasmtime_config_wasm_component_model_map_set(arg0, arg1) # type: ignore
3345_wasmtime_config_wasm_component_model_async_set = dll.wasmtime_config_wasm_component_model_async_set
3346_wasmtime_config_wasm_component_model_async_set.restype = None
3347_wasmtime_config_wasm_component_model_async_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3348def wasmtime_config_wasm_component_model_async_set(arg0: Any, arg1: Any) -> None:
3349 return _wasmtime_config_wasm_component_model_async_set(arg0, arg1) # type: ignore
3351_wasmtime_config_wasm_component_model_more_async_builtins_set = dll.wasmtime_config_wasm_component_model_more_async_builtins_set
3352_wasmtime_config_wasm_component_model_more_async_builtins_set.restype = None
3353_wasmtime_config_wasm_component_model_more_async_builtins_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3354def wasmtime_config_wasm_component_model_more_async_builtins_set(arg0: Any, arg1: Any) -> None:
3355 return _wasmtime_config_wasm_component_model_more_async_builtins_set(arg0, arg1) # type: ignore
3357_wasmtime_config_wasm_component_model_async_stackful_set = dll.wasmtime_config_wasm_component_model_async_stackful_set
3358_wasmtime_config_wasm_component_model_async_stackful_set.restype = None
3359_wasmtime_config_wasm_component_model_async_stackful_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3360def wasmtime_config_wasm_component_model_async_stackful_set(arg0: Any, arg1: Any) -> None:
3361 return _wasmtime_config_wasm_component_model_async_stackful_set(arg0, arg1) # type: ignore
3363class wasmtime_caller(ctypes.Structure):
3364 pass
3366wasmtime_caller_t = wasmtime_caller
3368wasmtime_func_callback_t = ctypes.CFUNCTYPE(ctypes.c_size_t, ctypes.c_void_p, ctypes.POINTER(wasmtime_caller_t), ctypes.POINTER(wasmtime_val_t), ctypes.c_size_t, ctypes.POINTER(wasmtime_val_t), ctypes.c_size_t)
3370_wasmtime_func_new = dll.wasmtime_func_new
3371_wasmtime_func_new.restype = None
3372_wasmtime_func_new.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasm_functype_t), wasmtime_func_callback_t, ctypes.c_void_p, ctypes.CFUNCTYPE(None, ctypes.c_void_p), ctypes.POINTER(wasmtime_func_t)]
3373def wasmtime_func_new(store: Any, type: Any, callback: Any, env: Any, finalizer: Any, ret: Any) -> None:
3374 return _wasmtime_func_new(store, type, callback, env, finalizer, ret) # type: ignore
3376wasmtime_func_unchecked_callback_t = ctypes.CFUNCTYPE(ctypes.c_size_t, ctypes.c_void_p, ctypes.POINTER(wasmtime_caller_t), ctypes.POINTER(wasmtime_val_raw_t), ctypes.c_size_t)
3378_wasmtime_func_new_unchecked = dll.wasmtime_func_new_unchecked
3379_wasmtime_func_new_unchecked.restype = None
3380_wasmtime_func_new_unchecked.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasm_functype_t), wasmtime_func_unchecked_callback_t, ctypes.c_void_p, ctypes.CFUNCTYPE(None, ctypes.c_void_p), ctypes.POINTER(wasmtime_func_t)]
3381def wasmtime_func_new_unchecked(store: Any, type: Any, callback: Any, env: Any, finalizer: Any, ret: Any) -> None:
3382 return _wasmtime_func_new_unchecked(store, type, callback, env, finalizer, ret) # type: ignore
3384_wasmtime_func_type = dll.wasmtime_func_type
3385_wasmtime_func_type.restype = ctypes.POINTER(wasm_functype_t)
3386_wasmtime_func_type.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_func_t)]
3387def wasmtime_func_type(store: Any, func: Any) -> ctypes._Pointer:
3388 return _wasmtime_func_type(store, func) # type: ignore
3390_wasmtime_func_call = dll.wasmtime_func_call
3391_wasmtime_func_call.restype = ctypes.POINTER(wasmtime_error_t)
3392_wasmtime_func_call.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_func_t), ctypes.POINTER(wasmtime_val_t), ctypes.c_size_t, ctypes.POINTER(wasmtime_val_t), ctypes.c_size_t, ctypes.POINTER(ctypes.POINTER(wasm_trap_t))]
3393def wasmtime_func_call(store: Any, func: Any, args: Any, nargs: Any, results: Any, nresults: Any, trap: Any) -> ctypes._Pointer:
3394 return _wasmtime_func_call(store, func, args, nargs, results, nresults, trap) # type: ignore
3396_wasmtime_func_call_unchecked = dll.wasmtime_func_call_unchecked
3397_wasmtime_func_call_unchecked.restype = ctypes.POINTER(wasmtime_error_t)
3398_wasmtime_func_call_unchecked.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_func_t), ctypes.POINTER(wasmtime_val_raw_t), ctypes.c_size_t, ctypes.POINTER(ctypes.POINTER(wasm_trap_t))]
3399def wasmtime_func_call_unchecked(store: Any, func: Any, args_and_results: Any, args_and_results_len: Any, trap: Any) -> ctypes._Pointer:
3400 return _wasmtime_func_call_unchecked(store, func, args_and_results, args_and_results_len, trap) # type: ignore
3402_wasmtime_caller_export_get = dll.wasmtime_caller_export_get
3403_wasmtime_caller_export_get.restype = ctypes.c_bool
3404_wasmtime_caller_export_get.argtypes = [ctypes.POINTER(wasmtime_caller_t), ctypes.POINTER(ctypes.c_char), ctypes.c_size_t, ctypes.POINTER(wasmtime_extern_t)]
3405def wasmtime_caller_export_get(caller: Any, name: Any, name_len: Any, item: Any) -> bool:
3406 return _wasmtime_caller_export_get(caller, name, name_len, item) # type: ignore
3408_wasmtime_caller_context = dll.wasmtime_caller_context
3409_wasmtime_caller_context.restype = ctypes.POINTER(wasmtime_context_t)
3410_wasmtime_caller_context.argtypes = [ctypes.POINTER(wasmtime_caller_t)]
3411def wasmtime_caller_context(caller: Any) -> ctypes._Pointer:
3412 return _wasmtime_caller_context(caller) # type: ignore
3414_wasmtime_func_from_raw = dll.wasmtime_func_from_raw
3415_wasmtime_func_from_raw.restype = None
3416_wasmtime_func_from_raw.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.c_void_p, ctypes.POINTER(wasmtime_func_t)]
3417def wasmtime_func_from_raw(context: Any, raw: Any, ret: Any) -> None:
3418 return _wasmtime_func_from_raw(context, raw, ret) # type: ignore
3420_wasmtime_func_to_raw = dll.wasmtime_func_to_raw
3421_wasmtime_func_to_raw.restype = ctypes.c_void_p
3422_wasmtime_func_to_raw.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_func_t)]
3423def wasmtime_func_to_raw(context: Any, func: Any) -> ctypes._Pointer:
3424 return _wasmtime_func_to_raw(context, func) # type: ignore
3426class wasmtime_instance(ctypes.Structure):
3427 _fields_ = [
3428 ("store_id", ctypes.c_uint64),
3429 ("__private", ctypes.c_size_t),
3430 ]
3431 store_id: int
3432 __private: int
3434wasmtime_instance_t = wasmtime_instance
3436_wasmtime_instance_new = dll.wasmtime_instance_new
3437_wasmtime_instance_new.restype = ctypes.POINTER(wasmtime_error_t)
3438_wasmtime_instance_new.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_module_t), ctypes.POINTER(wasmtime_extern_t), ctypes.c_size_t, ctypes.POINTER(wasmtime_instance_t), ctypes.POINTER(ctypes.POINTER(wasm_trap_t))]
3439def wasmtime_instance_new(store: Any, module: Any, imports: Any, nimports: Any, instance: Any, trap: Any) -> ctypes._Pointer:
3440 return _wasmtime_instance_new(store, module, imports, nimports, instance, trap) # type: ignore
3442_wasmtime_instance_export_get = dll.wasmtime_instance_export_get
3443_wasmtime_instance_export_get.restype = ctypes.c_bool
3444_wasmtime_instance_export_get.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_instance_t), ctypes.POINTER(ctypes.c_char), ctypes.c_size_t, ctypes.POINTER(wasmtime_extern_t)]
3445def wasmtime_instance_export_get(store: Any, instance: Any, name: Any, name_len: Any, item: Any) -> bool:
3446 return _wasmtime_instance_export_get(store, instance, name, name_len, item) # type: ignore
3448_wasmtime_instance_export_nth = dll.wasmtime_instance_export_nth
3449_wasmtime_instance_export_nth.restype = ctypes.c_bool
3450_wasmtime_instance_export_nth.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_instance_t), ctypes.c_size_t, ctypes.POINTER(ctypes.POINTER(ctypes.c_char)), ctypes.POINTER(ctypes.c_size_t), ctypes.POINTER(wasmtime_extern_t)]
3451def wasmtime_instance_export_nth(store: Any, instance: Any, index: Any, name: Any, name_len: Any, item: Any) -> bool:
3452 return _wasmtime_instance_export_nth(store, instance, index, name, name_len, item) # type: ignore
3454class wasmtime_instance_pre(ctypes.Structure):
3455 pass
3457wasmtime_instance_pre_t = wasmtime_instance_pre
3459_wasmtime_instance_pre_delete = dll.wasmtime_instance_pre_delete
3460_wasmtime_instance_pre_delete.restype = None
3461_wasmtime_instance_pre_delete.argtypes = [ctypes.POINTER(wasmtime_instance_pre_t)]
3462def wasmtime_instance_pre_delete(instance_pre: Any) -> None:
3463 return _wasmtime_instance_pre_delete(instance_pre) # type: ignore
3465_wasmtime_instance_pre_instantiate = dll.wasmtime_instance_pre_instantiate
3466_wasmtime_instance_pre_instantiate.restype = ctypes.POINTER(wasmtime_error_t)
3467_wasmtime_instance_pre_instantiate.argtypes = [ctypes.POINTER(wasmtime_instance_pre_t), ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_instance_t), ctypes.POINTER(ctypes.POINTER(wasm_trap_t))]
3468def wasmtime_instance_pre_instantiate(instance_pre: Any, store: Any, instance: Any, trap_ptr: Any) -> ctypes._Pointer:
3469 return _wasmtime_instance_pre_instantiate(instance_pre, store, instance, trap_ptr) # type: ignore
3471_wasmtime_instance_pre_module = dll.wasmtime_instance_pre_module
3472_wasmtime_instance_pre_module.restype = ctypes.POINTER(wasmtime_module_t)
3473_wasmtime_instance_pre_module.argtypes = [ctypes.POINTER(wasmtime_instance_pre_t)]
3474def wasmtime_instance_pre_module(instance_pre: Any) -> ctypes._Pointer:
3475 return _wasmtime_instance_pre_module(instance_pre) # type: ignore
3477class wasmtime_linker(ctypes.Structure):
3478 pass
3480wasmtime_linker_t = wasmtime_linker
3482_wasmtime_linker_new = dll.wasmtime_linker_new
3483_wasmtime_linker_new.restype = ctypes.POINTER(wasmtime_linker_t)
3484_wasmtime_linker_new.argtypes = [ctypes.POINTER(wasm_engine_t)]
3485def wasmtime_linker_new(engine: Any) -> ctypes._Pointer:
3486 return _wasmtime_linker_new(engine) # type: ignore
3488_wasmtime_linker_clone = dll.wasmtime_linker_clone
3489_wasmtime_linker_clone.restype = ctypes.POINTER(wasmtime_linker_t)
3490_wasmtime_linker_clone.argtypes = [ctypes.POINTER(wasmtime_linker_t)]
3491def wasmtime_linker_clone(linker: Any) -> ctypes._Pointer:
3492 return _wasmtime_linker_clone(linker) # type: ignore
3494_wasmtime_linker_delete = dll.wasmtime_linker_delete
3495_wasmtime_linker_delete.restype = None
3496_wasmtime_linker_delete.argtypes = [ctypes.POINTER(wasmtime_linker_t)]
3497def wasmtime_linker_delete(linker: Any) -> None:
3498 return _wasmtime_linker_delete(linker) # type: ignore
3500_wasmtime_linker_allow_shadowing = dll.wasmtime_linker_allow_shadowing
3501_wasmtime_linker_allow_shadowing.restype = None
3502_wasmtime_linker_allow_shadowing.argtypes = [ctypes.POINTER(wasmtime_linker_t), ctypes.c_bool]
3503def wasmtime_linker_allow_shadowing(linker: Any, allow_shadowing: Any) -> None:
3504 return _wasmtime_linker_allow_shadowing(linker, allow_shadowing) # type: ignore
3506_wasmtime_linker_define_unknown_imports_as_traps = dll.wasmtime_linker_define_unknown_imports_as_traps
3507_wasmtime_linker_define_unknown_imports_as_traps.restype = ctypes.POINTER(wasmtime_error_t)
3508_wasmtime_linker_define_unknown_imports_as_traps.argtypes = [ctypes.POINTER(wasmtime_linker_t), ctypes.POINTER(wasmtime_module_t)]
3509def wasmtime_linker_define_unknown_imports_as_traps(linker: Any, module: Any) -> ctypes._Pointer:
3510 return _wasmtime_linker_define_unknown_imports_as_traps(linker, module) # type: ignore
3512_wasmtime_linker_define_unknown_imports_as_default_values = dll.wasmtime_linker_define_unknown_imports_as_default_values
3513_wasmtime_linker_define_unknown_imports_as_default_values.restype = ctypes.POINTER(wasmtime_error_t)
3514_wasmtime_linker_define_unknown_imports_as_default_values.argtypes = [ctypes.POINTER(wasmtime_linker_t), ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_module_t)]
3515def wasmtime_linker_define_unknown_imports_as_default_values(linker: Any, store: Any, module: Any) -> ctypes._Pointer:
3516 return _wasmtime_linker_define_unknown_imports_as_default_values(linker, store, module) # type: ignore
3518_wasmtime_linker_define = dll.wasmtime_linker_define
3519_wasmtime_linker_define.restype = ctypes.POINTER(wasmtime_error_t)
3520_wasmtime_linker_define.argtypes = [ctypes.POINTER(wasmtime_linker_t), ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(ctypes.c_char), ctypes.c_size_t, ctypes.POINTER(ctypes.c_char), ctypes.c_size_t, ctypes.POINTER(wasmtime_extern_t)]
3521def wasmtime_linker_define(linker: Any, store: Any, module: Any, module_len: Any, name: Any, name_len: Any, item: Any) -> ctypes._Pointer:
3522 return _wasmtime_linker_define(linker, store, module, module_len, name, name_len, item) # type: ignore
3524_wasmtime_linker_define_func = dll.wasmtime_linker_define_func
3525_wasmtime_linker_define_func.restype = ctypes.POINTER(wasmtime_error_t)
3526_wasmtime_linker_define_func.argtypes = [ctypes.POINTER(wasmtime_linker_t), ctypes.POINTER(ctypes.c_char), ctypes.c_size_t, ctypes.POINTER(ctypes.c_char), ctypes.c_size_t, ctypes.POINTER(wasm_functype_t), wasmtime_func_callback_t, ctypes.c_void_p, ctypes.CFUNCTYPE(None, ctypes.c_void_p)]
3527def wasmtime_linker_define_func(linker: Any, module: Any, module_len: Any, name: Any, name_len: Any, ty: Any, cb: Any, data: Any, finalizer: Any) -> ctypes._Pointer:
3528 return _wasmtime_linker_define_func(linker, module, module_len, name, name_len, ty, cb, data, finalizer) # type: ignore
3530_wasmtime_linker_define_func_unchecked = dll.wasmtime_linker_define_func_unchecked
3531_wasmtime_linker_define_func_unchecked.restype = ctypes.POINTER(wasmtime_error_t)
3532_wasmtime_linker_define_func_unchecked.argtypes = [ctypes.POINTER(wasmtime_linker_t), ctypes.POINTER(ctypes.c_char), ctypes.c_size_t, ctypes.POINTER(ctypes.c_char), ctypes.c_size_t, ctypes.POINTER(wasm_functype_t), wasmtime_func_unchecked_callback_t, ctypes.c_void_p, ctypes.CFUNCTYPE(None, ctypes.c_void_p)]
3533def wasmtime_linker_define_func_unchecked(linker: Any, module: Any, module_len: Any, name: Any, name_len: Any, ty: Any, cb: Any, data: Any, finalizer: Any) -> ctypes._Pointer:
3534 return _wasmtime_linker_define_func_unchecked(linker, module, module_len, name, name_len, ty, cb, data, finalizer) # type: ignore
3536_wasmtime_linker_define_wasi = dll.wasmtime_linker_define_wasi
3537_wasmtime_linker_define_wasi.restype = ctypes.POINTER(wasmtime_error_t)
3538_wasmtime_linker_define_wasi.argtypes = [ctypes.POINTER(wasmtime_linker_t)]
3539def wasmtime_linker_define_wasi(linker: Any) -> ctypes._Pointer:
3540 return _wasmtime_linker_define_wasi(linker) # type: ignore
3542_wasmtime_linker_define_instance = dll.wasmtime_linker_define_instance
3543_wasmtime_linker_define_instance.restype = ctypes.POINTER(wasmtime_error_t)
3544_wasmtime_linker_define_instance.argtypes = [ctypes.POINTER(wasmtime_linker_t), ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(ctypes.c_char), ctypes.c_size_t, ctypes.POINTER(wasmtime_instance_t)]
3545def wasmtime_linker_define_instance(linker: Any, store: Any, name: Any, name_len: Any, instance: Any) -> ctypes._Pointer:
3546 return _wasmtime_linker_define_instance(linker, store, name, name_len, instance) # type: ignore
3548_wasmtime_linker_instantiate = dll.wasmtime_linker_instantiate
3549_wasmtime_linker_instantiate.restype = ctypes.POINTER(wasmtime_error_t)
3550_wasmtime_linker_instantiate.argtypes = [ctypes.POINTER(wasmtime_linker_t), ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_module_t), ctypes.POINTER(wasmtime_instance_t), ctypes.POINTER(ctypes.POINTER(wasm_trap_t))]
3551def wasmtime_linker_instantiate(linker: Any, store: Any, module: Any, instance: Any, trap: Any) -> ctypes._Pointer:
3552 return _wasmtime_linker_instantiate(linker, store, module, instance, trap) # type: ignore
3554_wasmtime_linker_module = dll.wasmtime_linker_module
3555_wasmtime_linker_module.restype = ctypes.POINTER(wasmtime_error_t)
3556_wasmtime_linker_module.argtypes = [ctypes.POINTER(wasmtime_linker_t), ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(ctypes.c_char), ctypes.c_size_t, ctypes.POINTER(wasmtime_module_t)]
3557def wasmtime_linker_module(linker: Any, store: Any, name: Any, name_len: Any, module: Any) -> ctypes._Pointer:
3558 return _wasmtime_linker_module(linker, store, name, name_len, module) # type: ignore
3560_wasmtime_linker_get_default = dll.wasmtime_linker_get_default
3561_wasmtime_linker_get_default.restype = ctypes.POINTER(wasmtime_error_t)
3562_wasmtime_linker_get_default.argtypes = [ctypes.POINTER(wasmtime_linker_t), ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(ctypes.c_char), ctypes.c_size_t, ctypes.POINTER(wasmtime_func_t)]
3563def wasmtime_linker_get_default(linker: Any, store: Any, name: Any, name_len: Any, func: Any) -> ctypes._Pointer:
3564 return _wasmtime_linker_get_default(linker, store, name, name_len, func) # type: ignore
3566_wasmtime_linker_get = dll.wasmtime_linker_get
3567_wasmtime_linker_get.restype = ctypes.c_bool
3568_wasmtime_linker_get.argtypes = [ctypes.POINTER(wasmtime_linker_t), ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(ctypes.c_char), ctypes.c_size_t, ctypes.POINTER(ctypes.c_char), ctypes.c_size_t, ctypes.POINTER(wasmtime_extern_t)]
3569def wasmtime_linker_get(linker: Any, store: Any, module: Any, module_len: Any, name: Any, name_len: Any, item: Any) -> bool:
3570 return _wasmtime_linker_get(linker, store, module, module_len, name, name_len, item) # type: ignore
3572_wasmtime_linker_instantiate_pre = dll.wasmtime_linker_instantiate_pre
3573_wasmtime_linker_instantiate_pre.restype = ctypes.POINTER(wasmtime_error_t)
3574_wasmtime_linker_instantiate_pre.argtypes = [ctypes.POINTER(wasmtime_linker_t), ctypes.POINTER(wasmtime_module_t), ctypes.POINTER(ctypes.POINTER(wasmtime_instance_pre_t))]
3575def wasmtime_linker_instantiate_pre(linker: Any, module: Any, instance_pre: Any) -> ctypes._Pointer:
3576 return _wasmtime_linker_instantiate_pre(linker, module, instance_pre) # type: ignore
3578_wasmtime_config_async_stack_size_set = dll.wasmtime_config_async_stack_size_set
3579_wasmtime_config_async_stack_size_set.restype = None
3580_wasmtime_config_async_stack_size_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_size_t]
3581def wasmtime_config_async_stack_size_set(arg0: Any, arg1: Any) -> None:
3582 return _wasmtime_config_async_stack_size_set(arg0, arg1) # type: ignore
3584_wasmtime_context_fuel_async_yield_interval = dll.wasmtime_context_fuel_async_yield_interval
3585_wasmtime_context_fuel_async_yield_interval.restype = ctypes.POINTER(wasmtime_error_t)
3586_wasmtime_context_fuel_async_yield_interval.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.c_uint64]
3587def wasmtime_context_fuel_async_yield_interval(context: Any, interval: Any) -> ctypes._Pointer:
3588 return _wasmtime_context_fuel_async_yield_interval(context, interval) # type: ignore
3590_wasmtime_context_epoch_deadline_async_yield_and_update = dll.wasmtime_context_epoch_deadline_async_yield_and_update
3591_wasmtime_context_epoch_deadline_async_yield_and_update.restype = ctypes.POINTER(wasmtime_error_t)
3592_wasmtime_context_epoch_deadline_async_yield_and_update.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.c_uint64]
3593def wasmtime_context_epoch_deadline_async_yield_and_update(context: Any, delta: Any) -> ctypes._Pointer:
3594 return _wasmtime_context_epoch_deadline_async_yield_and_update(context, delta) # type: ignore
3596wasmtime_func_async_continuation_callback_t = ctypes.CFUNCTYPE(ctypes.c_bool, ctypes.c_void_p)
3598class wasmtime_async_continuation_t(ctypes.Structure):
3599 _fields_ = [
3600 ("callback", wasmtime_func_async_continuation_callback_t),
3601 ("env", ctypes.c_void_p),
3602 ("finalizer", ctypes.CFUNCTYPE(None, ctypes.c_void_p)),
3603 ]
3604 callback: ctypes._Pointer
3605 env: ctypes._Pointer
3606 finalizer: ctypes._Pointer
3608wasmtime_func_async_callback_t = ctypes.CFUNCTYPE(None, ctypes.c_void_p, ctypes.POINTER(wasmtime_caller_t), ctypes.POINTER(wasmtime_val_t), ctypes.c_size_t, ctypes.POINTER(wasmtime_val_t), ctypes.c_size_t, ctypes.POINTER(ctypes.POINTER(wasm_trap_t)), ctypes.POINTER(wasmtime_async_continuation_t))
3610class wasmtime_call_future(ctypes.Structure):
3611 pass
3613wasmtime_call_future_t = wasmtime_call_future
3615_wasmtime_call_future_poll = dll.wasmtime_call_future_poll
3616_wasmtime_call_future_poll.restype = ctypes.c_bool
3617_wasmtime_call_future_poll.argtypes = [ctypes.POINTER(wasmtime_call_future_t)]
3618def wasmtime_call_future_poll(future: Any) -> bool:
3619 return _wasmtime_call_future_poll(future) # type: ignore
3621_wasmtime_call_future_delete = dll.wasmtime_call_future_delete
3622_wasmtime_call_future_delete.restype = None
3623_wasmtime_call_future_delete.argtypes = [ctypes.POINTER(wasmtime_call_future_t)]
3624def wasmtime_call_future_delete(future: Any) -> None:
3625 return _wasmtime_call_future_delete(future) # type: ignore
3627_wasmtime_func_call_async = dll.wasmtime_func_call_async
3628_wasmtime_func_call_async.restype = ctypes.POINTER(wasmtime_call_future_t)
3629_wasmtime_func_call_async.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_func_t), ctypes.POINTER(wasmtime_val_t), ctypes.c_size_t, ctypes.POINTER(wasmtime_val_t), ctypes.c_size_t, ctypes.POINTER(ctypes.POINTER(wasm_trap_t)), ctypes.POINTER(ctypes.POINTER(wasmtime_error_t))]
3630def wasmtime_func_call_async(context: Any, func: Any, args: Any, nargs: Any, results: Any, nresults: Any, trap_ret: Any, error_ret: Any) -> ctypes._Pointer:
3631 return _wasmtime_func_call_async(context, func, args, nargs, results, nresults, trap_ret, error_ret) # type: ignore
3633_wasmtime_linker_define_async_func = dll.wasmtime_linker_define_async_func
3634_wasmtime_linker_define_async_func.restype = ctypes.POINTER(wasmtime_error_t)
3635_wasmtime_linker_define_async_func.argtypes = [ctypes.POINTER(wasmtime_linker_t), ctypes.POINTER(ctypes.c_char), ctypes.c_size_t, ctypes.POINTER(ctypes.c_char), ctypes.c_size_t, ctypes.POINTER(wasm_functype_t), wasmtime_func_async_callback_t, ctypes.c_void_p, ctypes.CFUNCTYPE(None, ctypes.c_void_p)]
3636def wasmtime_linker_define_async_func(linker: Any, module: Any, module_len: Any, name: Any, name_len: Any, ty: Any, cb: Any, data: Any, finalizer: Any) -> ctypes._Pointer:
3637 return _wasmtime_linker_define_async_func(linker, module, module_len, name, name_len, ty, cb, data, finalizer) # type: ignore
3639_wasmtime_linker_instantiate_async = dll.wasmtime_linker_instantiate_async
3640_wasmtime_linker_instantiate_async.restype = ctypes.POINTER(wasmtime_call_future_t)
3641_wasmtime_linker_instantiate_async.argtypes = [ctypes.POINTER(wasmtime_linker_t), ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_module_t), ctypes.POINTER(wasmtime_instance_t), ctypes.POINTER(ctypes.POINTER(wasm_trap_t)), ctypes.POINTER(ctypes.POINTER(wasmtime_error_t))]
3642def wasmtime_linker_instantiate_async(linker: Any, store: Any, module: Any, instance: Any, trap_ret: Any, error_ret: Any) -> ctypes._Pointer:
3643 return _wasmtime_linker_instantiate_async(linker, store, module, instance, trap_ret, error_ret) # type: ignore
3645_wasmtime_instance_pre_instantiate_async = dll.wasmtime_instance_pre_instantiate_async
3646_wasmtime_instance_pre_instantiate_async.restype = ctypes.POINTER(wasmtime_call_future_t)
3647_wasmtime_instance_pre_instantiate_async.argtypes = [ctypes.POINTER(wasmtime_instance_pre_t), ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_instance_t), ctypes.POINTER(ctypes.POINTER(wasm_trap_t)), ctypes.POINTER(ctypes.POINTER(wasmtime_error_t))]
3648def wasmtime_instance_pre_instantiate_async(instance_pre: Any, store: Any, instance: Any, trap_ret: Any, error_ret: Any) -> ctypes._Pointer:
3649 return _wasmtime_instance_pre_instantiate_async(instance_pre, store, instance, trap_ret, error_ret) # type: ignore
3651wasmtime_stack_memory_get_callback_t = ctypes.CFUNCTYPE(ctypes.c_size_t, ctypes.c_void_p, ctypes.POINTER(ctypes.c_size_t))
3653class wasmtime_stack_memory(ctypes.Structure):
3654 _fields_ = [
3655 ("env", ctypes.c_void_p),
3656 ("get_stack_memory", wasmtime_stack_memory_get_callback_t),
3657 ("finalizer", ctypes.CFUNCTYPE(None, ctypes.c_void_p)),
3658 ]
3659 env: ctypes._Pointer
3660 get_stack_memory: ctypes._Pointer
3661 finalizer: ctypes._Pointer
3663wasmtime_stack_memory_t = wasmtime_stack_memory
3665wasmtime_new_stack_memory_callback_t = ctypes.CFUNCTYPE(ctypes.c_size_t, ctypes.c_void_p, ctypes.c_size_t, ctypes.c_bool, ctypes.POINTER(wasmtime_stack_memory_t))
3667class wasmtime_stack_creator(ctypes.Structure):
3668 _fields_ = [
3669 ("env", ctypes.c_void_p),
3670 ("new_stack", wasmtime_new_stack_memory_callback_t),
3671 ("finalizer", ctypes.CFUNCTYPE(None, ctypes.c_void_p)),
3672 ]
3673 env: ctypes._Pointer
3674 new_stack: ctypes._Pointer
3675 finalizer: ctypes._Pointer
3677wasmtime_stack_creator_t = wasmtime_stack_creator
3679_wasmtime_config_host_stack_creator_set = dll.wasmtime_config_host_stack_creator_set
3680_wasmtime_config_host_stack_creator_set.restype = None
3681_wasmtime_config_host_stack_creator_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.POINTER(wasmtime_stack_creator_t)]
3682def wasmtime_config_host_stack_creator_set(arg0: Any, arg1: Any) -> None:
3683 return _wasmtime_config_host_stack_creator_set(arg0, arg1) # type: ignore
3685class wasmtime_component_resource_type(ctypes.Structure):
3686 pass
3688wasmtime_component_resource_type_t = wasmtime_component_resource_type
3690_wasmtime_component_resource_type_new_host = dll.wasmtime_component_resource_type_new_host
3691_wasmtime_component_resource_type_new_host.restype = ctypes.POINTER(wasmtime_component_resource_type_t)
3692_wasmtime_component_resource_type_new_host.argtypes = [ctypes.c_uint32]
3693def wasmtime_component_resource_type_new_host(ty: Any) -> ctypes._Pointer:
3694 return _wasmtime_component_resource_type_new_host(ty) # type: ignore
3696_wasmtime_component_resource_type_clone = dll.wasmtime_component_resource_type_clone
3697_wasmtime_component_resource_type_clone.restype = ctypes.POINTER(wasmtime_component_resource_type_t)
3698_wasmtime_component_resource_type_clone.argtypes = [ctypes.POINTER(wasmtime_component_resource_type_t)]
3699def wasmtime_component_resource_type_clone(ty: Any) -> ctypes._Pointer:
3700 return _wasmtime_component_resource_type_clone(ty) # type: ignore
3702_wasmtime_component_resource_type_equal = dll.wasmtime_component_resource_type_equal
3703_wasmtime_component_resource_type_equal.restype = ctypes.c_bool
3704_wasmtime_component_resource_type_equal.argtypes = [ctypes.POINTER(wasmtime_component_resource_type_t), ctypes.POINTER(wasmtime_component_resource_type_t)]
3705def wasmtime_component_resource_type_equal(a: Any, b: Any) -> bool:
3706 return _wasmtime_component_resource_type_equal(a, b) # type: ignore
3708_wasmtime_component_resource_type_delete = dll.wasmtime_component_resource_type_delete
3709_wasmtime_component_resource_type_delete.restype = None
3710_wasmtime_component_resource_type_delete.argtypes = [ctypes.POINTER(wasmtime_component_resource_type_t)]
3711def wasmtime_component_resource_type_delete(resource: Any) -> None:
3712 return _wasmtime_component_resource_type_delete(resource) # type: ignore
3714class wasmtime_component_valtype_t(ctypes.Structure):
3715 pass
3717class wasmtime_component_list_type(ctypes.Structure):
3718 pass
3720wasmtime_component_list_type_t = wasmtime_component_list_type
3722_wasmtime_component_list_type_clone = dll.wasmtime_component_list_type_clone
3723_wasmtime_component_list_type_clone.restype = ctypes.POINTER(wasmtime_component_list_type_t)
3724_wasmtime_component_list_type_clone.argtypes = [ctypes.POINTER(wasmtime_component_list_type_t)]
3725def wasmtime_component_list_type_clone(ty: Any) -> ctypes._Pointer:
3726 return _wasmtime_component_list_type_clone(ty) # type: ignore
3728_wasmtime_component_list_type_equal = dll.wasmtime_component_list_type_equal
3729_wasmtime_component_list_type_equal.restype = ctypes.c_bool
3730_wasmtime_component_list_type_equal.argtypes = [ctypes.POINTER(wasmtime_component_list_type_t), ctypes.POINTER(wasmtime_component_list_type_t)]
3731def wasmtime_component_list_type_equal(a: Any, b: Any) -> bool:
3732 return _wasmtime_component_list_type_equal(a, b) # type: ignore
3734_wasmtime_component_list_type_delete = dll.wasmtime_component_list_type_delete
3735_wasmtime_component_list_type_delete.restype = None
3736_wasmtime_component_list_type_delete.argtypes = [ctypes.POINTER(wasmtime_component_list_type_t)]
3737def wasmtime_component_list_type_delete(ptr: Any) -> None:
3738 return _wasmtime_component_list_type_delete(ptr) # type: ignore
3740_wasmtime_component_list_type_element = dll.wasmtime_component_list_type_element
3741_wasmtime_component_list_type_element.restype = None
3742_wasmtime_component_list_type_element.argtypes = [ctypes.POINTER(wasmtime_component_list_type_t), ctypes.POINTER(wasmtime_component_valtype_t)]
3743def wasmtime_component_list_type_element(ty: Any, type_ret: Any) -> None:
3744 return _wasmtime_component_list_type_element(ty, type_ret) # type: ignore
3746class wasmtime_component_record_type(ctypes.Structure):
3747 pass
3749wasmtime_component_record_type_t = wasmtime_component_record_type
3751_wasmtime_component_record_type_clone = dll.wasmtime_component_record_type_clone
3752_wasmtime_component_record_type_clone.restype = ctypes.POINTER(wasmtime_component_record_type_t)
3753_wasmtime_component_record_type_clone.argtypes = [ctypes.POINTER(wasmtime_component_record_type_t)]
3754def wasmtime_component_record_type_clone(ty: Any) -> ctypes._Pointer:
3755 return _wasmtime_component_record_type_clone(ty) # type: ignore
3757_wasmtime_component_record_type_equal = dll.wasmtime_component_record_type_equal
3758_wasmtime_component_record_type_equal.restype = ctypes.c_bool
3759_wasmtime_component_record_type_equal.argtypes = [ctypes.POINTER(wasmtime_component_record_type_t), ctypes.POINTER(wasmtime_component_record_type_t)]
3760def wasmtime_component_record_type_equal(a: Any, b: Any) -> bool:
3761 return _wasmtime_component_record_type_equal(a, b) # type: ignore
3763_wasmtime_component_record_type_delete = dll.wasmtime_component_record_type_delete
3764_wasmtime_component_record_type_delete.restype = None
3765_wasmtime_component_record_type_delete.argtypes = [ctypes.POINTER(wasmtime_component_record_type_t)]
3766def wasmtime_component_record_type_delete(ptr: Any) -> None:
3767 return _wasmtime_component_record_type_delete(ptr) # type: ignore
3769_wasmtime_component_record_type_field_count = dll.wasmtime_component_record_type_field_count
3770_wasmtime_component_record_type_field_count.restype = ctypes.c_size_t
3771_wasmtime_component_record_type_field_count.argtypes = [ctypes.POINTER(wasmtime_component_record_type_t)]
3772def wasmtime_component_record_type_field_count(ty: Any) -> int:
3773 return _wasmtime_component_record_type_field_count(ty) # type: ignore
3775_wasmtime_component_record_type_field_nth = dll.wasmtime_component_record_type_field_nth
3776_wasmtime_component_record_type_field_nth.restype = ctypes.c_bool
3777_wasmtime_component_record_type_field_nth.argtypes = [ctypes.POINTER(wasmtime_component_record_type_t), ctypes.c_size_t, ctypes.POINTER(ctypes.POINTER(ctypes.c_char)), ctypes.POINTER(ctypes.c_size_t), ctypes.POINTER(wasmtime_component_valtype_t)]
3778def wasmtime_component_record_type_field_nth(ty: Any, nth: Any, name_ret: Any, name_len_ret: Any, type_ret: Any) -> bool:
3779 return _wasmtime_component_record_type_field_nth(ty, nth, name_ret, name_len_ret, type_ret) # type: ignore
3781class wasmtime_component_tuple_type(ctypes.Structure):
3782 pass
3784wasmtime_component_tuple_type_t = wasmtime_component_tuple_type
3786_wasmtime_component_tuple_type_clone = dll.wasmtime_component_tuple_type_clone
3787_wasmtime_component_tuple_type_clone.restype = ctypes.POINTER(wasmtime_component_tuple_type_t)
3788_wasmtime_component_tuple_type_clone.argtypes = [ctypes.POINTER(wasmtime_component_tuple_type_t)]
3789def wasmtime_component_tuple_type_clone(ty: Any) -> ctypes._Pointer:
3790 return _wasmtime_component_tuple_type_clone(ty) # type: ignore
3792_wasmtime_component_tuple_type_equal = dll.wasmtime_component_tuple_type_equal
3793_wasmtime_component_tuple_type_equal.restype = ctypes.c_bool
3794_wasmtime_component_tuple_type_equal.argtypes = [ctypes.POINTER(wasmtime_component_tuple_type_t), ctypes.POINTER(wasmtime_component_tuple_type_t)]
3795def wasmtime_component_tuple_type_equal(a: Any, b: Any) -> bool:
3796 return _wasmtime_component_tuple_type_equal(a, b) # type: ignore
3798_wasmtime_component_tuple_type_delete = dll.wasmtime_component_tuple_type_delete
3799_wasmtime_component_tuple_type_delete.restype = None
3800_wasmtime_component_tuple_type_delete.argtypes = [ctypes.POINTER(wasmtime_component_tuple_type_t)]
3801def wasmtime_component_tuple_type_delete(ptr: Any) -> None:
3802 return _wasmtime_component_tuple_type_delete(ptr) # type: ignore
3804_wasmtime_component_tuple_type_types_count = dll.wasmtime_component_tuple_type_types_count
3805_wasmtime_component_tuple_type_types_count.restype = ctypes.c_size_t
3806_wasmtime_component_tuple_type_types_count.argtypes = [ctypes.POINTER(wasmtime_component_tuple_type_t)]
3807def wasmtime_component_tuple_type_types_count(ty: Any) -> int:
3808 return _wasmtime_component_tuple_type_types_count(ty) # type: ignore
3810_wasmtime_component_tuple_type_types_nth = dll.wasmtime_component_tuple_type_types_nth
3811_wasmtime_component_tuple_type_types_nth.restype = ctypes.c_bool
3812_wasmtime_component_tuple_type_types_nth.argtypes = [ctypes.POINTER(wasmtime_component_tuple_type_t), ctypes.c_size_t, ctypes.POINTER(wasmtime_component_valtype_t)]
3813def wasmtime_component_tuple_type_types_nth(ty: Any, nth: Any, type_ret: Any) -> bool:
3814 return _wasmtime_component_tuple_type_types_nth(ty, nth, type_ret) # type: ignore
3816class wasmtime_component_variant_type(ctypes.Structure):
3817 pass
3819wasmtime_component_variant_type_t = wasmtime_component_variant_type
3821_wasmtime_component_variant_type_clone = dll.wasmtime_component_variant_type_clone
3822_wasmtime_component_variant_type_clone.restype = ctypes.POINTER(wasmtime_component_variant_type_t)
3823_wasmtime_component_variant_type_clone.argtypes = [ctypes.POINTER(wasmtime_component_variant_type_t)]
3824def wasmtime_component_variant_type_clone(ty: Any) -> ctypes._Pointer:
3825 return _wasmtime_component_variant_type_clone(ty) # type: ignore
3827_wasmtime_component_variant_type_equal = dll.wasmtime_component_variant_type_equal
3828_wasmtime_component_variant_type_equal.restype = ctypes.c_bool
3829_wasmtime_component_variant_type_equal.argtypes = [ctypes.POINTER(wasmtime_component_variant_type_t), ctypes.POINTER(wasmtime_component_variant_type_t)]
3830def wasmtime_component_variant_type_equal(a: Any, b: Any) -> bool:
3831 return _wasmtime_component_variant_type_equal(a, b) # type: ignore
3833_wasmtime_component_variant_type_delete = dll.wasmtime_component_variant_type_delete
3834_wasmtime_component_variant_type_delete.restype = None
3835_wasmtime_component_variant_type_delete.argtypes = [ctypes.POINTER(wasmtime_component_variant_type_t)]
3836def wasmtime_component_variant_type_delete(ptr: Any) -> None:
3837 return _wasmtime_component_variant_type_delete(ptr) # type: ignore
3839_wasmtime_component_variant_type_case_count = dll.wasmtime_component_variant_type_case_count
3840_wasmtime_component_variant_type_case_count.restype = ctypes.c_size_t
3841_wasmtime_component_variant_type_case_count.argtypes = [ctypes.POINTER(wasmtime_component_variant_type_t)]
3842def wasmtime_component_variant_type_case_count(ty: Any) -> int:
3843 return _wasmtime_component_variant_type_case_count(ty) # type: ignore
3845_wasmtime_component_variant_type_case_nth = dll.wasmtime_component_variant_type_case_nth
3846_wasmtime_component_variant_type_case_nth.restype = ctypes.c_bool
3847_wasmtime_component_variant_type_case_nth.argtypes = [ctypes.POINTER(wasmtime_component_variant_type_t), ctypes.c_size_t, ctypes.POINTER(ctypes.POINTER(ctypes.c_char)), ctypes.POINTER(ctypes.c_size_t), ctypes.POINTER(ctypes.c_bool), ctypes.POINTER(wasmtime_component_valtype_t)]
3848def wasmtime_component_variant_type_case_nth(ty: Any, nth: Any, name_ret: Any, name_len_ret: Any, has_payload_ret: Any, payload_ret: Any) -> bool:
3849 return _wasmtime_component_variant_type_case_nth(ty, nth, name_ret, name_len_ret, has_payload_ret, payload_ret) # type: ignore
3851class wasmtime_component_enum_type(ctypes.Structure):
3852 pass
3854wasmtime_component_enum_type_t = wasmtime_component_enum_type
3856_wasmtime_component_enum_type_clone = dll.wasmtime_component_enum_type_clone
3857_wasmtime_component_enum_type_clone.restype = ctypes.POINTER(wasmtime_component_enum_type_t)
3858_wasmtime_component_enum_type_clone.argtypes = [ctypes.POINTER(wasmtime_component_enum_type_t)]
3859def wasmtime_component_enum_type_clone(ty: Any) -> ctypes._Pointer:
3860 return _wasmtime_component_enum_type_clone(ty) # type: ignore
3862_wasmtime_component_enum_type_equal = dll.wasmtime_component_enum_type_equal
3863_wasmtime_component_enum_type_equal.restype = ctypes.c_bool
3864_wasmtime_component_enum_type_equal.argtypes = [ctypes.POINTER(wasmtime_component_enum_type_t), ctypes.POINTER(wasmtime_component_enum_type_t)]
3865def wasmtime_component_enum_type_equal(a: Any, b: Any) -> bool:
3866 return _wasmtime_component_enum_type_equal(a, b) # type: ignore
3868_wasmtime_component_enum_type_delete = dll.wasmtime_component_enum_type_delete
3869_wasmtime_component_enum_type_delete.restype = None
3870_wasmtime_component_enum_type_delete.argtypes = [ctypes.POINTER(wasmtime_component_enum_type_t)]
3871def wasmtime_component_enum_type_delete(ptr: Any) -> None:
3872 return _wasmtime_component_enum_type_delete(ptr) # type: ignore
3874_wasmtime_component_enum_type_names_count = dll.wasmtime_component_enum_type_names_count
3875_wasmtime_component_enum_type_names_count.restype = ctypes.c_size_t
3876_wasmtime_component_enum_type_names_count.argtypes = [ctypes.POINTER(wasmtime_component_enum_type_t)]
3877def wasmtime_component_enum_type_names_count(ty: Any) -> int:
3878 return _wasmtime_component_enum_type_names_count(ty) # type: ignore
3880_wasmtime_component_enum_type_names_nth = dll.wasmtime_component_enum_type_names_nth
3881_wasmtime_component_enum_type_names_nth.restype = ctypes.c_bool
3882_wasmtime_component_enum_type_names_nth.argtypes = [ctypes.POINTER(wasmtime_component_enum_type_t), ctypes.c_size_t, ctypes.POINTER(ctypes.POINTER(ctypes.c_char)), ctypes.POINTER(ctypes.c_size_t)]
3883def wasmtime_component_enum_type_names_nth(ty: Any, nth: Any, name_ret: Any, name_len_ret: Any) -> bool:
3884 return _wasmtime_component_enum_type_names_nth(ty, nth, name_ret, name_len_ret) # type: ignore
3886class wasmtime_component_option_type(ctypes.Structure):
3887 pass
3889wasmtime_component_option_type_t = wasmtime_component_option_type
3891_wasmtime_component_option_type_clone = dll.wasmtime_component_option_type_clone
3892_wasmtime_component_option_type_clone.restype = ctypes.POINTER(wasmtime_component_option_type_t)
3893_wasmtime_component_option_type_clone.argtypes = [ctypes.POINTER(wasmtime_component_option_type_t)]
3894def wasmtime_component_option_type_clone(ty: Any) -> ctypes._Pointer:
3895 return _wasmtime_component_option_type_clone(ty) # type: ignore
3897_wasmtime_component_option_type_equal = dll.wasmtime_component_option_type_equal
3898_wasmtime_component_option_type_equal.restype = ctypes.c_bool
3899_wasmtime_component_option_type_equal.argtypes = [ctypes.POINTER(wasmtime_component_option_type_t), ctypes.POINTER(wasmtime_component_option_type_t)]
3900def wasmtime_component_option_type_equal(a: Any, b: Any) -> bool:
3901 return _wasmtime_component_option_type_equal(a, b) # type: ignore
3903_wasmtime_component_option_type_delete = dll.wasmtime_component_option_type_delete
3904_wasmtime_component_option_type_delete.restype = None
3905_wasmtime_component_option_type_delete.argtypes = [ctypes.POINTER(wasmtime_component_option_type_t)]
3906def wasmtime_component_option_type_delete(ptr: Any) -> None:
3907 return _wasmtime_component_option_type_delete(ptr) # type: ignore
3909_wasmtime_component_option_type_ty = dll.wasmtime_component_option_type_ty
3910_wasmtime_component_option_type_ty.restype = None
3911_wasmtime_component_option_type_ty.argtypes = [ctypes.POINTER(wasmtime_component_option_type_t), ctypes.POINTER(wasmtime_component_valtype_t)]
3912def wasmtime_component_option_type_ty(ty: Any, type_ret: Any) -> None:
3913 return _wasmtime_component_option_type_ty(ty, type_ret) # type: ignore
3915class wasmtime_component_result_type(ctypes.Structure):
3916 pass
3918wasmtime_component_result_type_t = wasmtime_component_result_type
3920_wasmtime_component_result_type_clone = dll.wasmtime_component_result_type_clone
3921_wasmtime_component_result_type_clone.restype = ctypes.POINTER(wasmtime_component_result_type_t)
3922_wasmtime_component_result_type_clone.argtypes = [ctypes.POINTER(wasmtime_component_result_type_t)]
3923def wasmtime_component_result_type_clone(ty: Any) -> ctypes._Pointer:
3924 return _wasmtime_component_result_type_clone(ty) # type: ignore
3926_wasmtime_component_result_type_equal = dll.wasmtime_component_result_type_equal
3927_wasmtime_component_result_type_equal.restype = ctypes.c_bool
3928_wasmtime_component_result_type_equal.argtypes = [ctypes.POINTER(wasmtime_component_result_type_t), ctypes.POINTER(wasmtime_component_result_type_t)]
3929def wasmtime_component_result_type_equal(a: Any, b: Any) -> bool:
3930 return _wasmtime_component_result_type_equal(a, b) # type: ignore
3932_wasmtime_component_result_type_delete = dll.wasmtime_component_result_type_delete
3933_wasmtime_component_result_type_delete.restype = None
3934_wasmtime_component_result_type_delete.argtypes = [ctypes.POINTER(wasmtime_component_result_type_t)]
3935def wasmtime_component_result_type_delete(ptr: Any) -> None:
3936 return _wasmtime_component_result_type_delete(ptr) # type: ignore
3938_wasmtime_component_result_type_ok = dll.wasmtime_component_result_type_ok
3939_wasmtime_component_result_type_ok.restype = ctypes.c_bool
3940_wasmtime_component_result_type_ok.argtypes = [ctypes.POINTER(wasmtime_component_result_type_t), ctypes.POINTER(wasmtime_component_valtype_t)]
3941def wasmtime_component_result_type_ok(ty: Any, type_ret: Any) -> bool:
3942 return _wasmtime_component_result_type_ok(ty, type_ret) # type: ignore
3944_wasmtime_component_result_type_err = dll.wasmtime_component_result_type_err
3945_wasmtime_component_result_type_err.restype = ctypes.c_bool
3946_wasmtime_component_result_type_err.argtypes = [ctypes.POINTER(wasmtime_component_result_type_t), ctypes.POINTER(wasmtime_component_valtype_t)]
3947def wasmtime_component_result_type_err(ty: Any, type_ret: Any) -> bool:
3948 return _wasmtime_component_result_type_err(ty, type_ret) # type: ignore
3950class wasmtime_component_flags_type(ctypes.Structure):
3951 pass
3953wasmtime_component_flags_type_t = wasmtime_component_flags_type
3955_wasmtime_component_flags_type_clone = dll.wasmtime_component_flags_type_clone
3956_wasmtime_component_flags_type_clone.restype = ctypes.POINTER(wasmtime_component_flags_type_t)
3957_wasmtime_component_flags_type_clone.argtypes = [ctypes.POINTER(wasmtime_component_flags_type_t)]
3958def wasmtime_component_flags_type_clone(ty: Any) -> ctypes._Pointer:
3959 return _wasmtime_component_flags_type_clone(ty) # type: ignore
3961_wasmtime_component_flags_type_equal = dll.wasmtime_component_flags_type_equal
3962_wasmtime_component_flags_type_equal.restype = ctypes.c_bool
3963_wasmtime_component_flags_type_equal.argtypes = [ctypes.POINTER(wasmtime_component_flags_type_t), ctypes.POINTER(wasmtime_component_flags_type_t)]
3964def wasmtime_component_flags_type_equal(a: Any, b: Any) -> bool:
3965 return _wasmtime_component_flags_type_equal(a, b) # type: ignore
3967_wasmtime_component_flags_type_delete = dll.wasmtime_component_flags_type_delete
3968_wasmtime_component_flags_type_delete.restype = None
3969_wasmtime_component_flags_type_delete.argtypes = [ctypes.POINTER(wasmtime_component_flags_type_t)]
3970def wasmtime_component_flags_type_delete(ptr: Any) -> None:
3971 return _wasmtime_component_flags_type_delete(ptr) # type: ignore
3973_wasmtime_component_flags_type_names_count = dll.wasmtime_component_flags_type_names_count
3974_wasmtime_component_flags_type_names_count.restype = ctypes.c_size_t
3975_wasmtime_component_flags_type_names_count.argtypes = [ctypes.POINTER(wasmtime_component_flags_type_t)]
3976def wasmtime_component_flags_type_names_count(ty: Any) -> int:
3977 return _wasmtime_component_flags_type_names_count(ty) # type: ignore
3979_wasmtime_component_flags_type_names_nth = dll.wasmtime_component_flags_type_names_nth
3980_wasmtime_component_flags_type_names_nth.restype = ctypes.c_bool
3981_wasmtime_component_flags_type_names_nth.argtypes = [ctypes.POINTER(wasmtime_component_flags_type_t), ctypes.c_size_t, ctypes.POINTER(ctypes.POINTER(ctypes.c_char)), ctypes.POINTER(ctypes.c_size_t)]
3982def wasmtime_component_flags_type_names_nth(ty: Any, nth: Any, name_ret: Any, name_len_ret: Any) -> bool:
3983 return _wasmtime_component_flags_type_names_nth(ty, nth, name_ret, name_len_ret) # type: ignore
3985class wasmtime_component_future_type(ctypes.Structure):
3986 pass
3988wasmtime_component_future_type_t = wasmtime_component_future_type
3990_wasmtime_component_future_type_clone = dll.wasmtime_component_future_type_clone
3991_wasmtime_component_future_type_clone.restype = ctypes.POINTER(wasmtime_component_future_type_t)
3992_wasmtime_component_future_type_clone.argtypes = [ctypes.POINTER(wasmtime_component_future_type_t)]
3993def wasmtime_component_future_type_clone(ty: Any) -> ctypes._Pointer:
3994 return _wasmtime_component_future_type_clone(ty) # type: ignore
3996_wasmtime_component_future_type_equal = dll.wasmtime_component_future_type_equal
3997_wasmtime_component_future_type_equal.restype = ctypes.c_bool
3998_wasmtime_component_future_type_equal.argtypes = [ctypes.POINTER(wasmtime_component_future_type_t), ctypes.POINTER(wasmtime_component_future_type_t)]
3999def wasmtime_component_future_type_equal(a: Any, b: Any) -> bool:
4000 return _wasmtime_component_future_type_equal(a, b) # type: ignore
4002_wasmtime_component_future_type_delete = dll.wasmtime_component_future_type_delete
4003_wasmtime_component_future_type_delete.restype = None
4004_wasmtime_component_future_type_delete.argtypes = [ctypes.POINTER(wasmtime_component_future_type_t)]
4005def wasmtime_component_future_type_delete(ptr: Any) -> None:
4006 return _wasmtime_component_future_type_delete(ptr) # type: ignore
4008_wasmtime_component_future_type_ty = dll.wasmtime_component_future_type_ty
4009_wasmtime_component_future_type_ty.restype = ctypes.c_bool
4010_wasmtime_component_future_type_ty.argtypes = [ctypes.POINTER(wasmtime_component_future_type_t), ctypes.POINTER(wasmtime_component_valtype_t)]
4011def wasmtime_component_future_type_ty(ty: Any, type_ret: Any) -> bool:
4012 return _wasmtime_component_future_type_ty(ty, type_ret) # type: ignore
4014class wasmtime_component_stream_type(ctypes.Structure):
4015 pass
4017wasmtime_component_stream_type_t = wasmtime_component_stream_type
4019_wasmtime_component_stream_type_clone = dll.wasmtime_component_stream_type_clone
4020_wasmtime_component_stream_type_clone.restype = ctypes.POINTER(wasmtime_component_stream_type_t)
4021_wasmtime_component_stream_type_clone.argtypes = [ctypes.POINTER(wasmtime_component_stream_type_t)]
4022def wasmtime_component_stream_type_clone(ty: Any) -> ctypes._Pointer:
4023 return _wasmtime_component_stream_type_clone(ty) # type: ignore
4025_wasmtime_component_stream_type_equal = dll.wasmtime_component_stream_type_equal
4026_wasmtime_component_stream_type_equal.restype = ctypes.c_bool
4027_wasmtime_component_stream_type_equal.argtypes = [ctypes.POINTER(wasmtime_component_stream_type_t), ctypes.POINTER(wasmtime_component_stream_type_t)]
4028def wasmtime_component_stream_type_equal(a: Any, b: Any) -> bool:
4029 return _wasmtime_component_stream_type_equal(a, b) # type: ignore
4031_wasmtime_component_stream_type_delete = dll.wasmtime_component_stream_type_delete
4032_wasmtime_component_stream_type_delete.restype = None
4033_wasmtime_component_stream_type_delete.argtypes = [ctypes.POINTER(wasmtime_component_stream_type_t)]
4034def wasmtime_component_stream_type_delete(ptr: Any) -> None:
4035 return _wasmtime_component_stream_type_delete(ptr) # type: ignore
4037_wasmtime_component_stream_type_ty = dll.wasmtime_component_stream_type_ty
4038_wasmtime_component_stream_type_ty.restype = ctypes.c_bool
4039_wasmtime_component_stream_type_ty.argtypes = [ctypes.POINTER(wasmtime_component_stream_type_t), ctypes.POINTER(wasmtime_component_valtype_t)]
4040def wasmtime_component_stream_type_ty(ty: Any, type_ret: Any) -> bool:
4041 return _wasmtime_component_stream_type_ty(ty, type_ret) # type: ignore
4043class wasmtime_component_map_type(ctypes.Structure):
4044 pass
4046wasmtime_component_map_type_t = wasmtime_component_map_type
4048_wasmtime_component_map_type_clone = dll.wasmtime_component_map_type_clone
4049_wasmtime_component_map_type_clone.restype = ctypes.POINTER(wasmtime_component_map_type_t)
4050_wasmtime_component_map_type_clone.argtypes = [ctypes.POINTER(wasmtime_component_map_type_t)]
4051def wasmtime_component_map_type_clone(ty: Any) -> ctypes._Pointer:
4052 return _wasmtime_component_map_type_clone(ty) # type: ignore
4054_wasmtime_component_map_type_equal = dll.wasmtime_component_map_type_equal
4055_wasmtime_component_map_type_equal.restype = ctypes.c_bool
4056_wasmtime_component_map_type_equal.argtypes = [ctypes.POINTER(wasmtime_component_map_type_t), ctypes.POINTER(wasmtime_component_map_type_t)]
4057def wasmtime_component_map_type_equal(a: Any, b: Any) -> bool:
4058 return _wasmtime_component_map_type_equal(a, b) # type: ignore
4060_wasmtime_component_map_type_delete = dll.wasmtime_component_map_type_delete
4061_wasmtime_component_map_type_delete.restype = None
4062_wasmtime_component_map_type_delete.argtypes = [ctypes.POINTER(wasmtime_component_map_type_t)]
4063def wasmtime_component_map_type_delete(ptr: Any) -> None:
4064 return _wasmtime_component_map_type_delete(ptr) # type: ignore
4066_wasmtime_component_map_type_key = dll.wasmtime_component_map_type_key
4067_wasmtime_component_map_type_key.restype = None
4068_wasmtime_component_map_type_key.argtypes = [ctypes.POINTER(wasmtime_component_map_type_t), ctypes.POINTER(wasmtime_component_valtype_t)]
4069def wasmtime_component_map_type_key(ty: Any, type_ret: Any) -> None:
4070 return _wasmtime_component_map_type_key(ty, type_ret) # type: ignore
4072_wasmtime_component_map_type_value = dll.wasmtime_component_map_type_value
4073_wasmtime_component_map_type_value.restype = None
4074_wasmtime_component_map_type_value.argtypes = [ctypes.POINTER(wasmtime_component_map_type_t), ctypes.POINTER(wasmtime_component_valtype_t)]
4075def wasmtime_component_map_type_value(ty: Any, type_ret: Any) -> None:
4076 return _wasmtime_component_map_type_value(ty, type_ret) # type: ignore
4078wasmtime_component_valtype_kind_t = ctypes.c_uint8
4080class wasmtime_component_valtype_union(ctypes.Union):
4081 _fields_ = [
4082 ("list", ctypes.POINTER(wasmtime_component_list_type_t)),
4083 ("record", ctypes.POINTER(wasmtime_component_record_type_t)),
4084 ("tuple", ctypes.POINTER(wasmtime_component_tuple_type_t)),
4085 ("variant", ctypes.POINTER(wasmtime_component_variant_type_t)),
4086 ("enum_", ctypes.POINTER(wasmtime_component_enum_type_t)),
4087 ("option", ctypes.POINTER(wasmtime_component_option_type_t)),
4088 ("result", ctypes.POINTER(wasmtime_component_result_type_t)),
4089 ("flags", ctypes.POINTER(wasmtime_component_flags_type_t)),
4090 ("own", ctypes.POINTER(wasmtime_component_resource_type_t)),
4091 ("borrow", ctypes.POINTER(wasmtime_component_resource_type_t)),
4092 ("future", ctypes.POINTER(wasmtime_component_future_type_t)),
4093 ("stream", ctypes.POINTER(wasmtime_component_stream_type_t)),
4094 ("map", ctypes.POINTER(wasmtime_component_map_type_t)),
4095 ]
4096 list: ctypes._Pointer
4097 record: ctypes._Pointer
4098 tuple: ctypes._Pointer
4099 variant: ctypes._Pointer
4100 enum_: ctypes._Pointer
4101 option: ctypes._Pointer
4102 result: ctypes._Pointer
4103 flags: ctypes._Pointer
4104 own: ctypes._Pointer
4105 borrow: ctypes._Pointer
4106 future: ctypes._Pointer
4107 stream: ctypes._Pointer
4108 map: ctypes._Pointer
4110wasmtime_component_valtype_union_t = wasmtime_component_valtype_union
4112wasmtime_component_valtype_t._fields_ = [
4113 ("kind", wasmtime_component_valtype_kind_t),
4114 ("of", wasmtime_component_valtype_union_t),
4115 ]
4117_wasmtime_component_valtype_clone = dll.wasmtime_component_valtype_clone
4118_wasmtime_component_valtype_clone.restype = None
4119_wasmtime_component_valtype_clone.argtypes = [ctypes.POINTER(wasmtime_component_valtype_t), ctypes.POINTER(wasmtime_component_valtype_t)]
4120def wasmtime_component_valtype_clone(ty: Any, out: Any) -> None:
4121 return _wasmtime_component_valtype_clone(ty, out) # type: ignore
4123_wasmtime_component_valtype_equal = dll.wasmtime_component_valtype_equal
4124_wasmtime_component_valtype_equal.restype = ctypes.c_bool
4125_wasmtime_component_valtype_equal.argtypes = [ctypes.POINTER(wasmtime_component_valtype_t), ctypes.POINTER(wasmtime_component_valtype_t)]
4126def wasmtime_component_valtype_equal(a: Any, b: Any) -> bool:
4127 return _wasmtime_component_valtype_equal(a, b) # type: ignore
4129_wasmtime_component_valtype_delete = dll.wasmtime_component_valtype_delete
4130_wasmtime_component_valtype_delete.restype = None
4131_wasmtime_component_valtype_delete.argtypes = [ctypes.POINTER(wasmtime_component_valtype_t)]
4132def wasmtime_component_valtype_delete(ptr: Any) -> None:
4133 return _wasmtime_component_valtype_delete(ptr) # type: ignore
4135class wasmtime_component_func_type_t(ctypes.Structure):
4136 pass
4138_wasmtime_component_func_type_clone = dll.wasmtime_component_func_type_clone
4139_wasmtime_component_func_type_clone.restype = ctypes.POINTER(wasmtime_component_func_type_t)
4140_wasmtime_component_func_type_clone.argtypes = [ctypes.POINTER(wasmtime_component_func_type_t)]
4141def wasmtime_component_func_type_clone(ty: Any) -> ctypes._Pointer:
4142 return _wasmtime_component_func_type_clone(ty) # type: ignore
4144_wasmtime_component_func_type_delete = dll.wasmtime_component_func_type_delete
4145_wasmtime_component_func_type_delete.restype = None
4146_wasmtime_component_func_type_delete.argtypes = [ctypes.POINTER(wasmtime_component_func_type_t)]
4147def wasmtime_component_func_type_delete(ty: Any) -> None:
4148 return _wasmtime_component_func_type_delete(ty) # type: ignore
4150_wasmtime_component_func_type_async = dll.wasmtime_component_func_type_async
4151_wasmtime_component_func_type_async.restype = ctypes.c_bool
4152_wasmtime_component_func_type_async.argtypes = [ctypes.POINTER(wasmtime_component_func_type_t)]
4153def wasmtime_component_func_type_async(ty: Any) -> bool:
4154 return _wasmtime_component_func_type_async(ty) # type: ignore
4156_wasmtime_component_func_type_param_count = dll.wasmtime_component_func_type_param_count
4157_wasmtime_component_func_type_param_count.restype = ctypes.c_size_t
4158_wasmtime_component_func_type_param_count.argtypes = [ctypes.POINTER(wasmtime_component_func_type_t)]
4159def wasmtime_component_func_type_param_count(ty: Any) -> int:
4160 return _wasmtime_component_func_type_param_count(ty) # type: ignore
4162_wasmtime_component_func_type_param_nth = dll.wasmtime_component_func_type_param_nth
4163_wasmtime_component_func_type_param_nth.restype = ctypes.c_bool
4164_wasmtime_component_func_type_param_nth.argtypes = [ctypes.POINTER(wasmtime_component_func_type_t), ctypes.c_size_t, ctypes.POINTER(ctypes.POINTER(ctypes.c_char)), ctypes.POINTER(ctypes.c_size_t), ctypes.POINTER(wasmtime_component_valtype_t)]
4165def wasmtime_component_func_type_param_nth(ty: Any, nth: Any, name_ret: Any, name_len_ret: Any, type_ret: Any) -> bool:
4166 return _wasmtime_component_func_type_param_nth(ty, nth, name_ret, name_len_ret, type_ret) # type: ignore
4168_wasmtime_component_func_type_result = dll.wasmtime_component_func_type_result
4169_wasmtime_component_func_type_result.restype = ctypes.c_bool
4170_wasmtime_component_func_type_result.argtypes = [ctypes.POINTER(wasmtime_component_func_type_t), ctypes.POINTER(wasmtime_component_valtype_t)]
4171def wasmtime_component_func_type_result(ty: Any, type_ret: Any) -> bool:
4172 return _wasmtime_component_func_type_result(ty, type_ret) # type: ignore
4174class wasmtime_component_item_t(ctypes.Structure):
4175 pass
4177class wasmtime_component_instance_type(ctypes.Structure):
4178 pass
4180wasmtime_component_instance_type_t = wasmtime_component_instance_type
4182_wasmtime_component_instance_type_clone = dll.wasmtime_component_instance_type_clone
4183_wasmtime_component_instance_type_clone.restype = ctypes.POINTER(wasmtime_component_instance_type_t)
4184_wasmtime_component_instance_type_clone.argtypes = [ctypes.POINTER(wasmtime_component_instance_type_t)]
4185def wasmtime_component_instance_type_clone(ty: Any) -> ctypes._Pointer:
4186 return _wasmtime_component_instance_type_clone(ty) # type: ignore
4188_wasmtime_component_instance_type_delete = dll.wasmtime_component_instance_type_delete
4189_wasmtime_component_instance_type_delete.restype = None
4190_wasmtime_component_instance_type_delete.argtypes = [ctypes.POINTER(wasmtime_component_instance_type_t)]
4191def wasmtime_component_instance_type_delete(ty: Any) -> None:
4192 return _wasmtime_component_instance_type_delete(ty) # type: ignore
4194_wasmtime_component_instance_type_export_count = dll.wasmtime_component_instance_type_export_count
4195_wasmtime_component_instance_type_export_count.restype = ctypes.c_size_t
4196_wasmtime_component_instance_type_export_count.argtypes = [ctypes.POINTER(wasmtime_component_instance_type_t), ctypes.POINTER(wasm_engine_t)]
4197def wasmtime_component_instance_type_export_count(ty: Any, engine: Any) -> int:
4198 return _wasmtime_component_instance_type_export_count(ty, engine) # type: ignore
4200_wasmtime_component_instance_type_export_get = dll.wasmtime_component_instance_type_export_get
4201_wasmtime_component_instance_type_export_get.restype = ctypes.c_bool
4202_wasmtime_component_instance_type_export_get.argtypes = [ctypes.POINTER(wasmtime_component_instance_type_t), ctypes.POINTER(wasm_engine_t), ctypes.POINTER(ctypes.c_char), ctypes.c_size_t, ctypes.POINTER(wasmtime_component_item_t)]
4203def wasmtime_component_instance_type_export_get(ty: Any, engine: Any, name: Any, name_len: Any, ret: Any) -> bool:
4204 return _wasmtime_component_instance_type_export_get(ty, engine, name, name_len, ret) # type: ignore
4206_wasmtime_component_instance_type_export_nth = dll.wasmtime_component_instance_type_export_nth
4207_wasmtime_component_instance_type_export_nth.restype = ctypes.c_bool
4208_wasmtime_component_instance_type_export_nth.argtypes = [ctypes.POINTER(wasmtime_component_instance_type_t), ctypes.POINTER(wasm_engine_t), ctypes.c_size_t, ctypes.POINTER(ctypes.POINTER(ctypes.c_char)), ctypes.POINTER(ctypes.c_size_t), ctypes.POINTER(wasmtime_component_item_t)]
4209def wasmtime_component_instance_type_export_nth(ty: Any, engine: Any, nth: Any, name_ret: Any, name_len_ret: Any, type_ret: Any) -> bool:
4210 return _wasmtime_component_instance_type_export_nth(ty, engine, nth, name_ret, name_len_ret, type_ret) # type: ignore
4212class wasmtime_module_type(ctypes.Structure):
4213 pass
4215wasmtime_module_type_t = wasmtime_module_type
4217_wasmtime_module_type_clone = dll.wasmtime_module_type_clone
4218_wasmtime_module_type_clone.restype = ctypes.POINTER(wasmtime_module_type_t)
4219_wasmtime_module_type_clone.argtypes = [ctypes.POINTER(wasmtime_module_type_t)]
4220def wasmtime_module_type_clone(ty: Any) -> ctypes._Pointer:
4221 return _wasmtime_module_type_clone(ty) # type: ignore
4223_wasmtime_module_type_delete = dll.wasmtime_module_type_delete
4224_wasmtime_module_type_delete.restype = None
4225_wasmtime_module_type_delete.argtypes = [ctypes.POINTER(wasmtime_module_type_t)]
4226def wasmtime_module_type_delete(ty: Any) -> None:
4227 return _wasmtime_module_type_delete(ty) # type: ignore
4229_wasmtime_module_type_import_count = dll.wasmtime_module_type_import_count
4230_wasmtime_module_type_import_count.restype = ctypes.c_size_t
4231_wasmtime_module_type_import_count.argtypes = [ctypes.POINTER(wasmtime_module_type_t), ctypes.POINTER(wasm_engine_t)]
4232def wasmtime_module_type_import_count(ty: Any, engine: Any) -> int:
4233 return _wasmtime_module_type_import_count(ty, engine) # type: ignore
4235_wasmtime_module_type_import_nth = dll.wasmtime_module_type_import_nth
4236_wasmtime_module_type_import_nth.restype = ctypes.POINTER(wasm_importtype_t)
4237_wasmtime_module_type_import_nth.argtypes = [ctypes.POINTER(wasmtime_module_type_t), ctypes.POINTER(wasm_engine_t), ctypes.c_size_t]
4238def wasmtime_module_type_import_nth(ty: Any, engine: Any, nth: Any) -> ctypes._Pointer:
4239 return _wasmtime_module_type_import_nth(ty, engine, nth) # type: ignore
4241_wasmtime_module_type_export_count = dll.wasmtime_module_type_export_count
4242_wasmtime_module_type_export_count.restype = ctypes.c_size_t
4243_wasmtime_module_type_export_count.argtypes = [ctypes.POINTER(wasmtime_module_type_t), ctypes.POINTER(wasm_engine_t)]
4244def wasmtime_module_type_export_count(ty: Any, engine: Any) -> int:
4245 return _wasmtime_module_type_export_count(ty, engine) # type: ignore
4247_wasmtime_module_type_export_nth = dll.wasmtime_module_type_export_nth
4248_wasmtime_module_type_export_nth.restype = ctypes.POINTER(wasm_exporttype_t)
4249_wasmtime_module_type_export_nth.argtypes = [ctypes.POINTER(wasmtime_module_type_t), ctypes.POINTER(wasm_engine_t), ctypes.c_size_t]
4250def wasmtime_module_type_export_nth(ty: Any, engine: Any, nth: Any) -> ctypes._Pointer:
4251 return _wasmtime_module_type_export_nth(ty, engine, nth) # type: ignore
4253class wasmtime_component_type_t(ctypes.Structure):
4254 pass
4256_wasmtime_component_type_clone = dll.wasmtime_component_type_clone
4257_wasmtime_component_type_clone.restype = ctypes.POINTER(wasmtime_component_type_t)
4258_wasmtime_component_type_clone.argtypes = [ctypes.POINTER(wasmtime_component_type_t)]
4259def wasmtime_component_type_clone(ty: Any) -> ctypes._Pointer:
4260 return _wasmtime_component_type_clone(ty) # type: ignore
4262_wasmtime_component_type_delete = dll.wasmtime_component_type_delete
4263_wasmtime_component_type_delete.restype = None
4264_wasmtime_component_type_delete.argtypes = [ctypes.POINTER(wasmtime_component_type_t)]
4265def wasmtime_component_type_delete(ty: Any) -> None:
4266 return _wasmtime_component_type_delete(ty) # type: ignore
4268_wasmtime_component_type_import_count = dll.wasmtime_component_type_import_count
4269_wasmtime_component_type_import_count.restype = ctypes.c_size_t
4270_wasmtime_component_type_import_count.argtypes = [ctypes.POINTER(wasmtime_component_type_t), ctypes.POINTER(wasm_engine_t)]
4271def wasmtime_component_type_import_count(ty: Any, engine: Any) -> int:
4272 return _wasmtime_component_type_import_count(ty, engine) # type: ignore
4274_wasmtime_component_type_import_get = dll.wasmtime_component_type_import_get
4275_wasmtime_component_type_import_get.restype = ctypes.c_bool
4276_wasmtime_component_type_import_get.argtypes = [ctypes.POINTER(wasmtime_component_type_t), ctypes.POINTER(wasm_engine_t), ctypes.POINTER(ctypes.c_char), ctypes.c_size_t, ctypes.POINTER(wasmtime_component_item_t)]
4277def wasmtime_component_type_import_get(ty: Any, engine: Any, name: Any, name_len: Any, ret: Any) -> bool:
4278 return _wasmtime_component_type_import_get(ty, engine, name, name_len, ret) # type: ignore
4280_wasmtime_component_type_import_nth = dll.wasmtime_component_type_import_nth
4281_wasmtime_component_type_import_nth.restype = ctypes.c_bool
4282_wasmtime_component_type_import_nth.argtypes = [ctypes.POINTER(wasmtime_component_type_t), ctypes.POINTER(wasm_engine_t), ctypes.c_size_t, ctypes.POINTER(ctypes.POINTER(ctypes.c_char)), ctypes.POINTER(ctypes.c_size_t), ctypes.POINTER(wasmtime_component_item_t)]
4283def wasmtime_component_type_import_nth(ty: Any, engine: Any, nth: Any, name_ret: Any, name_len_ret: Any, type_ret: Any) -> bool:
4284 return _wasmtime_component_type_import_nth(ty, engine, nth, name_ret, name_len_ret, type_ret) # type: ignore
4286_wasmtime_component_type_export_count = dll.wasmtime_component_type_export_count
4287_wasmtime_component_type_export_count.restype = ctypes.c_size_t
4288_wasmtime_component_type_export_count.argtypes = [ctypes.POINTER(wasmtime_component_type_t), ctypes.POINTER(wasm_engine_t)]
4289def wasmtime_component_type_export_count(ty: Any, engine: Any) -> int:
4290 return _wasmtime_component_type_export_count(ty, engine) # type: ignore
4292_wasmtime_component_type_export_get = dll.wasmtime_component_type_export_get
4293_wasmtime_component_type_export_get.restype = ctypes.c_bool
4294_wasmtime_component_type_export_get.argtypes = [ctypes.POINTER(wasmtime_component_type_t), ctypes.POINTER(wasm_engine_t), ctypes.POINTER(ctypes.c_char), ctypes.c_size_t, ctypes.POINTER(wasmtime_component_item_t)]
4295def wasmtime_component_type_export_get(ty: Any, engine: Any, name: Any, name_len: Any, ret: Any) -> bool:
4296 return _wasmtime_component_type_export_get(ty, engine, name, name_len, ret) # type: ignore
4298_wasmtime_component_type_export_nth = dll.wasmtime_component_type_export_nth
4299_wasmtime_component_type_export_nth.restype = ctypes.c_bool
4300_wasmtime_component_type_export_nth.argtypes = [ctypes.POINTER(wasmtime_component_type_t), ctypes.POINTER(wasm_engine_t), ctypes.c_size_t, ctypes.POINTER(ctypes.POINTER(ctypes.c_char)), ctypes.POINTER(ctypes.c_size_t), ctypes.POINTER(wasmtime_component_item_t)]
4301def wasmtime_component_type_export_nth(ty: Any, engine: Any, nth: Any, name_ret: Any, name_len_ret: Any, type_ret: Any) -> bool:
4302 return _wasmtime_component_type_export_nth(ty, engine, nth, name_ret, name_len_ret, type_ret) # type: ignore
4304wasmtime_component_item_kind_t = ctypes.c_uint8
4306class wasmtime_component_item_union(ctypes.Union):
4307 _fields_ = [
4308 ("component", ctypes.POINTER(wasmtime_component_type_t)),
4309 ("component_instance", ctypes.POINTER(wasmtime_component_instance_type_t)),
4310 ("module", ctypes.POINTER(wasmtime_module_type_t)),
4311 ("component_func", ctypes.POINTER(wasmtime_component_func_type_t)),
4312 ("resource", ctypes.POINTER(wasmtime_component_resource_type_t)),
4313 ("core_func", ctypes.POINTER(wasm_functype_t)),
4314 ("type", wasmtime_component_valtype_t),
4315 ]
4316 component: ctypes._Pointer
4317 component_instance: ctypes._Pointer
4318 module: ctypes._Pointer
4319 component_func: ctypes._Pointer
4320 resource: ctypes._Pointer
4321 core_func: ctypes._Pointer
4322 type: wasmtime_component_valtype_t
4324wasmtime_component_item_union_t = wasmtime_component_item_union
4326wasmtime_component_item_t._fields_ = [
4327 ("kind", wasmtime_component_item_kind_t),
4328 ("of", wasmtime_component_item_union_t),
4329 ]
4331_wasmtime_component_item_clone = dll.wasmtime_component_item_clone
4332_wasmtime_component_item_clone.restype = None
4333_wasmtime_component_item_clone.argtypes = [ctypes.POINTER(wasmtime_component_item_t), ctypes.POINTER(wasmtime_component_item_t)]
4334def wasmtime_component_item_clone(item: Any, out: Any) -> None:
4335 return _wasmtime_component_item_clone(item, out) # type: ignore
4337_wasmtime_component_item_delete = dll.wasmtime_component_item_delete
4338_wasmtime_component_item_delete.restype = None
4339_wasmtime_component_item_delete.argtypes = [ctypes.POINTER(wasmtime_component_item_t)]
4340def wasmtime_component_item_delete(ptr: Any) -> None:
4341 return _wasmtime_component_item_delete(ptr) # type: ignore
4343class wasmtime_component_t(ctypes.Structure):
4344 pass
4346_wasmtime_component_new = dll.wasmtime_component_new
4347_wasmtime_component_new.restype = ctypes.POINTER(wasmtime_error_t)
4348_wasmtime_component_new.argtypes = [ctypes.POINTER(wasm_engine_t), ctypes.POINTER(ctypes.c_uint8), ctypes.c_size_t, ctypes.POINTER(ctypes.POINTER(wasmtime_component_t))]
4349def wasmtime_component_new(engine: Any, buf: Any, len: Any, component_out: Any) -> ctypes._Pointer:
4350 return _wasmtime_component_new(engine, buf, len, component_out) # type: ignore
4352_wasmtime_component_serialize = dll.wasmtime_component_serialize
4353_wasmtime_component_serialize.restype = ctypes.POINTER(wasmtime_error_t)
4354_wasmtime_component_serialize.argtypes = [ctypes.POINTER(wasmtime_component_t), ctypes.POINTER(wasm_byte_vec_t)]
4355def wasmtime_component_serialize(component: Any, ret: Any) -> ctypes._Pointer:
4356 return _wasmtime_component_serialize(component, ret) # type: ignore
4358_wasmtime_component_deserialize = dll.wasmtime_component_deserialize
4359_wasmtime_component_deserialize.restype = ctypes.POINTER(wasmtime_error_t)
4360_wasmtime_component_deserialize.argtypes = [ctypes.POINTER(wasm_engine_t), ctypes.POINTER(ctypes.c_uint8), ctypes.c_size_t, ctypes.POINTER(ctypes.POINTER(wasmtime_component_t))]
4361def wasmtime_component_deserialize(engine: Any, buf: Any, len: Any, component_out: Any) -> ctypes._Pointer:
4362 return _wasmtime_component_deserialize(engine, buf, len, component_out) # type: ignore
4364_wasmtime_component_deserialize_file = dll.wasmtime_component_deserialize_file
4365_wasmtime_component_deserialize_file.restype = ctypes.POINTER(wasmtime_error_t)
4366_wasmtime_component_deserialize_file.argtypes = [ctypes.POINTER(wasm_engine_t), ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.POINTER(wasmtime_component_t))]
4367def wasmtime_component_deserialize_file(engine: Any, path: Any, component_out: Any) -> ctypes._Pointer:
4368 return _wasmtime_component_deserialize_file(engine, path, component_out) # type: ignore
4370_wasmtime_component_clone = dll.wasmtime_component_clone
4371_wasmtime_component_clone.restype = ctypes.POINTER(wasmtime_component_t)
4372_wasmtime_component_clone.argtypes = [ctypes.POINTER(wasmtime_component_t)]
4373def wasmtime_component_clone(component: Any) -> ctypes._Pointer:
4374 return _wasmtime_component_clone(component) # type: ignore
4376_wasmtime_component_type = dll.wasmtime_component_type
4377_wasmtime_component_type.restype = ctypes.POINTER(wasmtime_component_type_t)
4378_wasmtime_component_type.argtypes = [ctypes.POINTER(wasmtime_component_t)]
4379def wasmtime_component_type(component: Any) -> ctypes._Pointer:
4380 return _wasmtime_component_type(component) # type: ignore
4382_wasmtime_component_delete = dll.wasmtime_component_delete
4383_wasmtime_component_delete.restype = None
4384_wasmtime_component_delete.argtypes = [ctypes.POINTER(wasmtime_component_t)]
4385def wasmtime_component_delete(component: Any) -> None:
4386 return _wasmtime_component_delete(component) # type: ignore
4388class wasmtime_component_export_index_t(ctypes.Structure):
4389 pass
4391_wasmtime_component_get_export_index = dll.wasmtime_component_get_export_index
4392_wasmtime_component_get_export_index.restype = ctypes.POINTER(wasmtime_component_export_index_t)
4393_wasmtime_component_get_export_index.argtypes = [ctypes.POINTER(wasmtime_component_t), ctypes.POINTER(wasmtime_component_export_index_t), ctypes.POINTER(ctypes.c_char), ctypes.c_size_t]
4394def wasmtime_component_get_export_index(component: Any, instance_export_index: Any, name: Any, name_len: Any) -> ctypes._Pointer:
4395 return _wasmtime_component_get_export_index(component, instance_export_index, name, name_len) # type: ignore
4397_wasmtime_component_export_index_clone = dll.wasmtime_component_export_index_clone
4398_wasmtime_component_export_index_clone.restype = ctypes.POINTER(wasmtime_component_export_index_t)
4399_wasmtime_component_export_index_clone.argtypes = [ctypes.POINTER(wasmtime_component_export_index_t)]
4400def wasmtime_component_export_index_clone(index: Any) -> ctypes._Pointer:
4401 return _wasmtime_component_export_index_clone(index) # type: ignore
4403_wasmtime_component_export_index_delete = dll.wasmtime_component_export_index_delete
4404_wasmtime_component_export_index_delete.restype = None
4405_wasmtime_component_export_index_delete.argtypes = [ctypes.POINTER(wasmtime_component_export_index_t)]
4406def wasmtime_component_export_index_delete(export_index: Any) -> None:
4407 return _wasmtime_component_export_index_delete(export_index) # type: ignore
4409class wasmtime_component_resource_any(ctypes.Structure):
4410 pass
4412wasmtime_component_resource_any_t = wasmtime_component_resource_any
4414_wasmtime_component_resource_any_type = dll.wasmtime_component_resource_any_type
4415_wasmtime_component_resource_any_type.restype = ctypes.POINTER(wasmtime_component_resource_type_t)
4416_wasmtime_component_resource_any_type.argtypes = [ctypes.POINTER(wasmtime_component_resource_any_t)]
4417def wasmtime_component_resource_any_type(resource: Any) -> ctypes._Pointer:
4418 return _wasmtime_component_resource_any_type(resource) # type: ignore
4420_wasmtime_component_resource_any_clone = dll.wasmtime_component_resource_any_clone
4421_wasmtime_component_resource_any_clone.restype = ctypes.POINTER(wasmtime_component_resource_any_t)
4422_wasmtime_component_resource_any_clone.argtypes = [ctypes.POINTER(wasmtime_component_resource_any_t)]
4423def wasmtime_component_resource_any_clone(resource: Any) -> ctypes._Pointer:
4424 return _wasmtime_component_resource_any_clone(resource) # type: ignore
4426_wasmtime_component_resource_any_owned = dll.wasmtime_component_resource_any_owned
4427_wasmtime_component_resource_any_owned.restype = ctypes.c_bool
4428_wasmtime_component_resource_any_owned.argtypes = [ctypes.POINTER(wasmtime_component_resource_any_t)]
4429def wasmtime_component_resource_any_owned(resource: Any) -> bool:
4430 return _wasmtime_component_resource_any_owned(resource) # type: ignore
4432_wasmtime_component_resource_any_drop = dll.wasmtime_component_resource_any_drop
4433_wasmtime_component_resource_any_drop.restype = ctypes.POINTER(wasmtime_error_t)
4434_wasmtime_component_resource_any_drop.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_component_resource_any_t)]
4435def wasmtime_component_resource_any_drop(ctx: Any, resource: Any) -> ctypes._Pointer:
4436 return _wasmtime_component_resource_any_drop(ctx, resource) # type: ignore
4438_wasmtime_component_resource_any_delete = dll.wasmtime_component_resource_any_delete
4439_wasmtime_component_resource_any_delete.restype = None
4440_wasmtime_component_resource_any_delete.argtypes = [ctypes.POINTER(wasmtime_component_resource_any_t)]
4441def wasmtime_component_resource_any_delete(resource: Any) -> None:
4442 return _wasmtime_component_resource_any_delete(resource) # type: ignore
4444class wasmtime_component_resource_host(ctypes.Structure):
4445 pass
4447wasmtime_component_resource_host_t = wasmtime_component_resource_host
4449_wasmtime_component_resource_host_new = dll.wasmtime_component_resource_host_new
4450_wasmtime_component_resource_host_new.restype = ctypes.POINTER(wasmtime_component_resource_host_t)
4451_wasmtime_component_resource_host_new.argtypes = [ctypes.c_bool, ctypes.c_uint32, ctypes.c_uint32]
4452def wasmtime_component_resource_host_new(owned: Any, rep: Any, ty: Any) -> ctypes._Pointer:
4453 return _wasmtime_component_resource_host_new(owned, rep, ty) # type: ignore
4455_wasmtime_component_resource_host_clone = dll.wasmtime_component_resource_host_clone
4456_wasmtime_component_resource_host_clone.restype = ctypes.POINTER(wasmtime_component_resource_host_t)
4457_wasmtime_component_resource_host_clone.argtypes = [ctypes.POINTER(wasmtime_component_resource_host_t)]
4458def wasmtime_component_resource_host_clone(resource: Any) -> ctypes._Pointer:
4459 return _wasmtime_component_resource_host_clone(resource) # type: ignore
4461_wasmtime_component_resource_host_rep = dll.wasmtime_component_resource_host_rep
4462_wasmtime_component_resource_host_rep.restype = ctypes.c_uint32
4463_wasmtime_component_resource_host_rep.argtypes = [ctypes.POINTER(wasmtime_component_resource_host_t)]
4464def wasmtime_component_resource_host_rep(resource: Any) -> int:
4465 return _wasmtime_component_resource_host_rep(resource) # type: ignore
4467_wasmtime_component_resource_host_type = dll.wasmtime_component_resource_host_type
4468_wasmtime_component_resource_host_type.restype = ctypes.c_uint32
4469_wasmtime_component_resource_host_type.argtypes = [ctypes.POINTER(wasmtime_component_resource_host_t)]
4470def wasmtime_component_resource_host_type(resource: Any) -> int:
4471 return _wasmtime_component_resource_host_type(resource) # type: ignore
4473_wasmtime_component_resource_host_owned = dll.wasmtime_component_resource_host_owned
4474_wasmtime_component_resource_host_owned.restype = ctypes.c_bool
4475_wasmtime_component_resource_host_owned.argtypes = [ctypes.POINTER(wasmtime_component_resource_host_t)]
4476def wasmtime_component_resource_host_owned(resource: Any) -> bool:
4477 return _wasmtime_component_resource_host_owned(resource) # type: ignore
4479_wasmtime_component_resource_host_delete = dll.wasmtime_component_resource_host_delete
4480_wasmtime_component_resource_host_delete.restype = None
4481_wasmtime_component_resource_host_delete.argtypes = [ctypes.POINTER(wasmtime_component_resource_host_t)]
4482def wasmtime_component_resource_host_delete(resource: Any) -> None:
4483 return _wasmtime_component_resource_host_delete(resource) # type: ignore
4485_wasmtime_component_resource_any_to_host = dll.wasmtime_component_resource_any_to_host
4486_wasmtime_component_resource_any_to_host.restype = ctypes.POINTER(wasmtime_error_t)
4487_wasmtime_component_resource_any_to_host.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_component_resource_any_t), ctypes.POINTER(ctypes.POINTER(wasmtime_component_resource_host_t))]
4488def wasmtime_component_resource_any_to_host(ctx: Any, resource: Any, ret: Any) -> ctypes._Pointer:
4489 return _wasmtime_component_resource_any_to_host(ctx, resource, ret) # type: ignore
4491_wasmtime_component_resource_host_to_any = dll.wasmtime_component_resource_host_to_any
4492_wasmtime_component_resource_host_to_any.restype = ctypes.POINTER(wasmtime_error_t)
4493_wasmtime_component_resource_host_to_any.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_component_resource_host_t), ctypes.POINTER(ctypes.POINTER(wasmtime_component_resource_any_t))]
4494def wasmtime_component_resource_host_to_any(ctx: Any, resource: Any, ret: Any) -> ctypes._Pointer:
4495 return _wasmtime_component_resource_host_to_any(ctx, resource, ret) # type: ignore
4497wasmtime_component_valkind_t = ctypes.c_uint8
4499class wasmtime_component_val(ctypes.Structure):
4500 pass
4502class wasmtime_component_valrecord_entry(ctypes.Structure):
4503 pass
4505class wasmtime_component_valmap_entry(ctypes.Structure):
4506 pass
4508class wasmtime_component_vallist(ctypes.Structure):
4509 _fields_ = [
4510 ("size", ctypes.c_size_t),
4511 ("data", ctypes.POINTER(wasmtime_component_val)),
4512 ]
4513 size: int
4514 data: ctypes._Pointer
4516wasmtime_component_vallist_t = wasmtime_component_vallist
4518_wasmtime_component_vallist_new = dll.wasmtime_component_vallist_new
4519_wasmtime_component_vallist_new.restype = None
4520_wasmtime_component_vallist_new.argtypes = [ctypes.POINTER(wasmtime_component_vallist_t), ctypes.c_size_t, ctypes.POINTER(wasmtime_component_val)]
4521def wasmtime_component_vallist_new(out: Any, size: Any, ptr: Any) -> None:
4522 return _wasmtime_component_vallist_new(out, size, ptr) # type: ignore
4524_wasmtime_component_vallist_new_empty = dll.wasmtime_component_vallist_new_empty
4525_wasmtime_component_vallist_new_empty.restype = None
4526_wasmtime_component_vallist_new_empty.argtypes = [ctypes.POINTER(wasmtime_component_vallist_t)]
4527def wasmtime_component_vallist_new_empty(out: Any) -> None:
4528 return _wasmtime_component_vallist_new_empty(out) # type: ignore
4530_wasmtime_component_vallist_new_uninit = dll.wasmtime_component_vallist_new_uninit
4531_wasmtime_component_vallist_new_uninit.restype = None
4532_wasmtime_component_vallist_new_uninit.argtypes = [ctypes.POINTER(wasmtime_component_vallist_t), ctypes.c_size_t]
4533def wasmtime_component_vallist_new_uninit(out: Any, size: Any) -> None:
4534 return _wasmtime_component_vallist_new_uninit(out, size) # type: ignore
4536_wasmtime_component_vallist_copy = dll.wasmtime_component_vallist_copy
4537_wasmtime_component_vallist_copy.restype = None
4538_wasmtime_component_vallist_copy.argtypes = [ctypes.POINTER(wasmtime_component_vallist_t), ctypes.POINTER(wasmtime_component_vallist_t)]
4539def wasmtime_component_vallist_copy(dst: Any, src: Any) -> None:
4540 return _wasmtime_component_vallist_copy(dst, src) # type: ignore
4542_wasmtime_component_vallist_delete = dll.wasmtime_component_vallist_delete
4543_wasmtime_component_vallist_delete.restype = None
4544_wasmtime_component_vallist_delete.argtypes = [ctypes.POINTER(wasmtime_component_vallist_t)]
4545def wasmtime_component_vallist_delete(value: Any) -> None:
4546 return _wasmtime_component_vallist_delete(value) # type: ignore
4548class wasmtime_component_valrecord(ctypes.Structure):
4549 _fields_ = [
4550 ("size", ctypes.c_size_t),
4551 ("data", ctypes.POINTER(wasmtime_component_valrecord_entry)),
4552 ]
4553 size: int
4554 data: ctypes._Pointer
4556wasmtime_component_valrecord_t = wasmtime_component_valrecord
4558_wasmtime_component_valrecord_new = dll.wasmtime_component_valrecord_new
4559_wasmtime_component_valrecord_new.restype = None
4560_wasmtime_component_valrecord_new.argtypes = [ctypes.POINTER(wasmtime_component_valrecord_t), ctypes.c_size_t, ctypes.POINTER(wasmtime_component_valrecord_entry)]
4561def wasmtime_component_valrecord_new(out: Any, size: Any, ptr: Any) -> None:
4562 return _wasmtime_component_valrecord_new(out, size, ptr) # type: ignore
4564_wasmtime_component_valrecord_new_empty = dll.wasmtime_component_valrecord_new_empty
4565_wasmtime_component_valrecord_new_empty.restype = None
4566_wasmtime_component_valrecord_new_empty.argtypes = [ctypes.POINTER(wasmtime_component_valrecord_t)]
4567def wasmtime_component_valrecord_new_empty(out: Any) -> None:
4568 return _wasmtime_component_valrecord_new_empty(out) # type: ignore
4570_wasmtime_component_valrecord_new_uninit = dll.wasmtime_component_valrecord_new_uninit
4571_wasmtime_component_valrecord_new_uninit.restype = None
4572_wasmtime_component_valrecord_new_uninit.argtypes = [ctypes.POINTER(wasmtime_component_valrecord_t), ctypes.c_size_t]
4573def wasmtime_component_valrecord_new_uninit(out: Any, size: Any) -> None:
4574 return _wasmtime_component_valrecord_new_uninit(out, size) # type: ignore
4576_wasmtime_component_valrecord_copy = dll.wasmtime_component_valrecord_copy
4577_wasmtime_component_valrecord_copy.restype = None
4578_wasmtime_component_valrecord_copy.argtypes = [ctypes.POINTER(wasmtime_component_valrecord_t), ctypes.POINTER(wasmtime_component_valrecord_t)]
4579def wasmtime_component_valrecord_copy(dst: Any, src: Any) -> None:
4580 return _wasmtime_component_valrecord_copy(dst, src) # type: ignore
4582_wasmtime_component_valrecord_delete = dll.wasmtime_component_valrecord_delete
4583_wasmtime_component_valrecord_delete.restype = None
4584_wasmtime_component_valrecord_delete.argtypes = [ctypes.POINTER(wasmtime_component_valrecord_t)]
4585def wasmtime_component_valrecord_delete(value: Any) -> None:
4586 return _wasmtime_component_valrecord_delete(value) # type: ignore
4588class wasmtime_component_valtuple(ctypes.Structure):
4589 _fields_ = [
4590 ("size", ctypes.c_size_t),
4591 ("data", ctypes.POINTER(wasmtime_component_val)),
4592 ]
4593 size: int
4594 data: ctypes._Pointer
4596wasmtime_component_valtuple_t = wasmtime_component_valtuple
4598_wasmtime_component_valtuple_new = dll.wasmtime_component_valtuple_new
4599_wasmtime_component_valtuple_new.restype = None
4600_wasmtime_component_valtuple_new.argtypes = [ctypes.POINTER(wasmtime_component_valtuple_t), ctypes.c_size_t, ctypes.POINTER(wasmtime_component_val)]
4601def wasmtime_component_valtuple_new(out: Any, size: Any, ptr: Any) -> None:
4602 return _wasmtime_component_valtuple_new(out, size, ptr) # type: ignore
4604_wasmtime_component_valtuple_new_empty = dll.wasmtime_component_valtuple_new_empty
4605_wasmtime_component_valtuple_new_empty.restype = None
4606_wasmtime_component_valtuple_new_empty.argtypes = [ctypes.POINTER(wasmtime_component_valtuple_t)]
4607def wasmtime_component_valtuple_new_empty(out: Any) -> None:
4608 return _wasmtime_component_valtuple_new_empty(out) # type: ignore
4610_wasmtime_component_valtuple_new_uninit = dll.wasmtime_component_valtuple_new_uninit
4611_wasmtime_component_valtuple_new_uninit.restype = None
4612_wasmtime_component_valtuple_new_uninit.argtypes = [ctypes.POINTER(wasmtime_component_valtuple_t), ctypes.c_size_t]
4613def wasmtime_component_valtuple_new_uninit(out: Any, size: Any) -> None:
4614 return _wasmtime_component_valtuple_new_uninit(out, size) # type: ignore
4616_wasmtime_component_valtuple_copy = dll.wasmtime_component_valtuple_copy
4617_wasmtime_component_valtuple_copy.restype = None
4618_wasmtime_component_valtuple_copy.argtypes = [ctypes.POINTER(wasmtime_component_valtuple_t), ctypes.POINTER(wasmtime_component_valtuple_t)]
4619def wasmtime_component_valtuple_copy(dst: Any, src: Any) -> None:
4620 return _wasmtime_component_valtuple_copy(dst, src) # type: ignore
4622_wasmtime_component_valtuple_delete = dll.wasmtime_component_valtuple_delete
4623_wasmtime_component_valtuple_delete.restype = None
4624_wasmtime_component_valtuple_delete.argtypes = [ctypes.POINTER(wasmtime_component_valtuple_t)]
4625def wasmtime_component_valtuple_delete(value: Any) -> None:
4626 return _wasmtime_component_valtuple_delete(value) # type: ignore
4628class wasmtime_component_valflags(ctypes.Structure):
4629 _fields_ = [
4630 ("size", ctypes.c_size_t),
4631 ("data", ctypes.POINTER(wasm_name_t)),
4632 ]
4633 size: int
4634 data: ctypes._Pointer
4636wasmtime_component_valflags_t = wasmtime_component_valflags
4638_wasmtime_component_valflags_new = dll.wasmtime_component_valflags_new
4639_wasmtime_component_valflags_new.restype = None
4640_wasmtime_component_valflags_new.argtypes = [ctypes.POINTER(wasmtime_component_valflags_t), ctypes.c_size_t, ctypes.POINTER(wasm_name_t)]
4641def wasmtime_component_valflags_new(out: Any, size: Any, ptr: Any) -> None:
4642 return _wasmtime_component_valflags_new(out, size, ptr) # type: ignore
4644_wasmtime_component_valflags_new_empty = dll.wasmtime_component_valflags_new_empty
4645_wasmtime_component_valflags_new_empty.restype = None
4646_wasmtime_component_valflags_new_empty.argtypes = [ctypes.POINTER(wasmtime_component_valflags_t)]
4647def wasmtime_component_valflags_new_empty(out: Any) -> None:
4648 return _wasmtime_component_valflags_new_empty(out) # type: ignore
4650_wasmtime_component_valflags_new_uninit = dll.wasmtime_component_valflags_new_uninit
4651_wasmtime_component_valflags_new_uninit.restype = None
4652_wasmtime_component_valflags_new_uninit.argtypes = [ctypes.POINTER(wasmtime_component_valflags_t), ctypes.c_size_t]
4653def wasmtime_component_valflags_new_uninit(out: Any, size: Any) -> None:
4654 return _wasmtime_component_valflags_new_uninit(out, size) # type: ignore
4656_wasmtime_component_valflags_copy = dll.wasmtime_component_valflags_copy
4657_wasmtime_component_valflags_copy.restype = None
4658_wasmtime_component_valflags_copy.argtypes = [ctypes.POINTER(wasmtime_component_valflags_t), ctypes.POINTER(wasmtime_component_valflags_t)]
4659def wasmtime_component_valflags_copy(dst: Any, src: Any) -> None:
4660 return _wasmtime_component_valflags_copy(dst, src) # type: ignore
4662_wasmtime_component_valflags_delete = dll.wasmtime_component_valflags_delete
4663_wasmtime_component_valflags_delete.restype = None
4664_wasmtime_component_valflags_delete.argtypes = [ctypes.POINTER(wasmtime_component_valflags_t)]
4665def wasmtime_component_valflags_delete(value: Any) -> None:
4666 return _wasmtime_component_valflags_delete(value) # type: ignore
4668class wasmtime_component_valmap(ctypes.Structure):
4669 _fields_ = [
4670 ("size", ctypes.c_size_t),
4671 ("data", ctypes.POINTER(wasmtime_component_valmap_entry)),
4672 ]
4673 size: int
4674 data: ctypes._Pointer
4676wasmtime_component_valmap_t = wasmtime_component_valmap
4678_wasmtime_component_valmap_new = dll.wasmtime_component_valmap_new
4679_wasmtime_component_valmap_new.restype = None
4680_wasmtime_component_valmap_new.argtypes = [ctypes.POINTER(wasmtime_component_valmap_t), ctypes.c_size_t, ctypes.POINTER(wasmtime_component_valmap_entry)]
4681def wasmtime_component_valmap_new(out: Any, size: Any, ptr: Any) -> None:
4682 return _wasmtime_component_valmap_new(out, size, ptr) # type: ignore
4684_wasmtime_component_valmap_new_empty = dll.wasmtime_component_valmap_new_empty
4685_wasmtime_component_valmap_new_empty.restype = None
4686_wasmtime_component_valmap_new_empty.argtypes = [ctypes.POINTER(wasmtime_component_valmap_t)]
4687def wasmtime_component_valmap_new_empty(out: Any) -> None:
4688 return _wasmtime_component_valmap_new_empty(out) # type: ignore
4690_wasmtime_component_valmap_new_uninit = dll.wasmtime_component_valmap_new_uninit
4691_wasmtime_component_valmap_new_uninit.restype = None
4692_wasmtime_component_valmap_new_uninit.argtypes = [ctypes.POINTER(wasmtime_component_valmap_t), ctypes.c_size_t]
4693def wasmtime_component_valmap_new_uninit(out: Any, size: Any) -> None:
4694 return _wasmtime_component_valmap_new_uninit(out, size) # type: ignore
4696_wasmtime_component_valmap_copy = dll.wasmtime_component_valmap_copy
4697_wasmtime_component_valmap_copy.restype = None
4698_wasmtime_component_valmap_copy.argtypes = [ctypes.POINTER(wasmtime_component_valmap_t), ctypes.POINTER(wasmtime_component_valmap_t)]
4699def wasmtime_component_valmap_copy(dst: Any, src: Any) -> None:
4700 return _wasmtime_component_valmap_copy(dst, src) # type: ignore
4702_wasmtime_component_valmap_delete = dll.wasmtime_component_valmap_delete
4703_wasmtime_component_valmap_delete.restype = None
4704_wasmtime_component_valmap_delete.argtypes = [ctypes.POINTER(wasmtime_component_valmap_t)]
4705def wasmtime_component_valmap_delete(value: Any) -> None:
4706 return _wasmtime_component_valmap_delete(value) # type: ignore
4708class wasmtime_component_valvariant(ctypes.Structure):
4709 _fields_ = [
4710 ("discriminant", wasm_name_t),
4711 ("val", ctypes.POINTER(wasmtime_component_val)),
4712 ]
4713 discriminant: wasm_name_t
4714 val: ctypes._Pointer
4716wasmtime_component_valvariant_t = wasmtime_component_valvariant
4718class wasmtime_component_valresult(ctypes.Structure):
4719 _fields_ = [
4720 ("is_ok", ctypes.c_bool),
4721 ("val", ctypes.POINTER(wasmtime_component_val)),
4722 ]
4723 is_ok: bool
4724 val: ctypes._Pointer
4726wasmtime_component_valresult_t = wasmtime_component_valresult
4728class wasmtime_component_valunion(ctypes.Union):
4729 _fields_ = [
4730 ("boolean", ctypes.c_bool),
4731 ("s8", ctypes.c_int8),
4732 ("u8", ctypes.c_uint8),
4733 ("s16", ctypes.c_int16),
4734 ("u16", ctypes.c_uint16),
4735 ("s32", ctypes.c_int32),
4736 ("u32", ctypes.c_uint32),
4737 ("s64", ctypes.c_int64),
4738 ("u64", ctypes.c_uint64),
4739 ("f32", ctypes.c_float),
4740 ("f64", ctypes.c_double),
4741 ("character", ctypes.c_uint32),
4742 ("string", wasm_name_t),
4743 ("list", wasmtime_component_vallist_t),
4744 ("record", wasmtime_component_valrecord_t),
4745 ("tuple", wasmtime_component_valtuple_t),
4746 ("variant", wasmtime_component_valvariant_t),
4747 ("enumeration", wasm_name_t),
4748 ("option", ctypes.POINTER(wasmtime_component_val)),
4749 ("result", wasmtime_component_valresult_t),
4750 ("flags", wasmtime_component_valflags_t),
4751 ("map", wasmtime_component_valmap_t),
4752 ("resource", ctypes.POINTER(wasmtime_component_resource_any_t)),
4753 ]
4754 boolean: bool
4755 s8: ctypes.c_int8
4756 u8: ctypes.c_uint8
4757 s16: ctypes.c_int16
4758 u16: ctypes.c_uint16
4759 s32: int
4760 u32: int
4761 s64: int
4762 u64: int
4763 f32: float
4764 f64: float
4765 character: int
4766 string: wasm_name_t
4767 list: wasmtime_component_vallist_t
4768 record: wasmtime_component_valrecord_t
4769 tuple: wasmtime_component_valtuple_t
4770 variant: wasmtime_component_valvariant_t
4771 enumeration: wasm_name_t
4772 option: ctypes._Pointer
4773 result: wasmtime_component_valresult_t
4774 flags: wasmtime_component_valflags_t
4775 map: wasmtime_component_valmap_t
4776 resource: ctypes._Pointer
4778wasmtime_component_valunion_t = wasmtime_component_valunion
4780wasmtime_component_val._fields_ = [
4781 ("kind", wasmtime_component_valkind_t),
4782 ("of", wasmtime_component_valunion_t),
4783 ]
4785wasmtime_component_val_t = wasmtime_component_val
4787wasmtime_component_valrecord_entry._fields_ = [
4788 ("name", wasm_name_t),
4789 ("val", wasmtime_component_val_t),
4790 ]
4792wasmtime_component_valrecord_entry_t = wasmtime_component_valrecord_entry
4794wasmtime_component_valmap_entry._fields_ = [
4795 ("key", wasmtime_component_val_t),
4796 ("value", wasmtime_component_val_t),
4797 ]
4799wasmtime_component_valmap_entry_t = wasmtime_component_valmap_entry
4801_wasmtime_component_val_new = dll.wasmtime_component_val_new
4802_wasmtime_component_val_new.restype = ctypes.POINTER(wasmtime_component_val_t)
4803_wasmtime_component_val_new.argtypes = [ctypes.POINTER(wasmtime_component_val_t)]
4804def wasmtime_component_val_new(val: Any) -> ctypes._Pointer:
4805 return _wasmtime_component_val_new(val) # type: ignore
4807_wasmtime_component_val_free = dll.wasmtime_component_val_free
4808_wasmtime_component_val_free.restype = None
4809_wasmtime_component_val_free.argtypes = [ctypes.POINTER(wasmtime_component_val_t)]
4810def wasmtime_component_val_free(ptr: Any) -> None:
4811 return _wasmtime_component_val_free(ptr) # type: ignore
4813_wasmtime_component_val_clone = dll.wasmtime_component_val_clone
4814_wasmtime_component_val_clone.restype = None
4815_wasmtime_component_val_clone.argtypes = [ctypes.POINTER(wasmtime_component_val_t), ctypes.POINTER(wasmtime_component_val_t)]
4816def wasmtime_component_val_clone(src: Any, dst: Any) -> None:
4817 return _wasmtime_component_val_clone(src, dst) # type: ignore
4819_wasmtime_component_val_delete = dll.wasmtime_component_val_delete
4820_wasmtime_component_val_delete.restype = None
4821_wasmtime_component_val_delete.argtypes = [ctypes.POINTER(wasmtime_component_val_t)]
4822def wasmtime_component_val_delete(value: Any) -> None:
4823 return _wasmtime_component_val_delete(value) # type: ignore
4826class wasmtime_component_func_anon_0(ctypes.Structure):
4827 _fields_ = [
4828 ("store_id", ctypes.c_uint64),
4829 ("__private1", ctypes.c_uint32),
4830 ]
4831 store_id: int
4832 __private1: int
4833class wasmtime_component_func(ctypes.Structure):
4834 _fields_ = [
4835 ("_anon_1", wasmtime_component_func_anon_0),
4836 ("__private2", ctypes.c_uint32),
4837 ]
4838 _anon_1: wasmtime_component_func_anon_0
4839 __private2: int
4841wasmtime_component_func_t = wasmtime_component_func
4843_wasmtime_component_func_type = dll.wasmtime_component_func_type
4844_wasmtime_component_func_type.restype = ctypes.POINTER(wasmtime_component_func_type_t)
4845_wasmtime_component_func_type.argtypes = [ctypes.POINTER(wasmtime_component_func_t), ctypes.POINTER(wasmtime_context_t)]
4846def wasmtime_component_func_type(func: Any, context: Any) -> ctypes._Pointer:
4847 return _wasmtime_component_func_type(func, context) # type: ignore
4849_wasmtime_component_func_call = dll.wasmtime_component_func_call
4850_wasmtime_component_func_call.restype = ctypes.POINTER(wasmtime_error_t)
4851_wasmtime_component_func_call.argtypes = [ctypes.POINTER(wasmtime_component_func_t), ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_component_val_t), ctypes.c_size_t, ctypes.POINTER(wasmtime_component_val_t), ctypes.c_size_t]
4852def wasmtime_component_func_call(func: Any, context: Any, args: Any, args_size: Any, results: Any, results_size: Any) -> ctypes._Pointer:
4853 return _wasmtime_component_func_call(func, context, args, args_size, results, results_size) # type: ignore
4855_wasmtime_component_func_post_return = dll.wasmtime_component_func_post_return
4856_wasmtime_component_func_post_return.restype = ctypes.POINTER(wasmtime_error_t)
4857_wasmtime_component_func_post_return.argtypes = [ctypes.POINTER(wasmtime_component_func_t), ctypes.POINTER(wasmtime_context_t)]
4858def wasmtime_component_func_post_return(func: Any, context: Any) -> ctypes._Pointer:
4859 return _wasmtime_component_func_post_return(func, context) # type: ignore
4861_wasmtime_component_func_call_async = dll.wasmtime_component_func_call_async
4862_wasmtime_component_func_call_async.restype = ctypes.POINTER(wasmtime_call_future_t)
4863_wasmtime_component_func_call_async.argtypes = [ctypes.POINTER(wasmtime_component_func_t), ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_component_val_t), ctypes.c_size_t, ctypes.POINTER(wasmtime_component_val_t), ctypes.c_size_t, ctypes.POINTER(ctypes.POINTER(wasmtime_error_t))]
4864def wasmtime_component_func_call_async(func: Any, context: Any, args: Any, args_size: Any, results: Any, results_size: Any, error_ret: Any) -> ctypes._Pointer:
4865 return _wasmtime_component_func_call_async(func, context, args, args_size, results, results_size, error_ret) # type: ignore
4867class wasmtime_component_instance(ctypes.Structure):
4868 _fields_ = [
4869 ("store_id", ctypes.c_uint64),
4870 ("__private", ctypes.c_uint32),
4871 ]
4872 store_id: int
4873 __private: int
4875wasmtime_component_instance_t = wasmtime_component_instance
4877_wasmtime_component_instance_get_export_index = dll.wasmtime_component_instance_get_export_index
4878_wasmtime_component_instance_get_export_index.restype = ctypes.POINTER(wasmtime_component_export_index_t)
4879_wasmtime_component_instance_get_export_index.argtypes = [ctypes.POINTER(wasmtime_component_instance_t), ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_component_export_index_t), ctypes.POINTER(ctypes.c_char), ctypes.c_size_t]
4880def wasmtime_component_instance_get_export_index(instance: Any, context: Any, instance_export_index: Any, name: Any, name_len: Any) -> ctypes._Pointer:
4881 return _wasmtime_component_instance_get_export_index(instance, context, instance_export_index, name, name_len) # type: ignore
4883_wasmtime_component_instance_get_func = dll.wasmtime_component_instance_get_func
4884_wasmtime_component_instance_get_func.restype = ctypes.c_bool
4885_wasmtime_component_instance_get_func.argtypes = [ctypes.POINTER(wasmtime_component_instance_t), ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_component_export_index_t), ctypes.POINTER(wasmtime_component_func_t)]
4886def wasmtime_component_instance_get_func(instance: Any, context: Any, export_index: Any, func_out: Any) -> bool:
4887 return _wasmtime_component_instance_get_func(instance, context, export_index, func_out) # type: ignore
4889class wasmtime_component_linker_t(ctypes.Structure):
4890 pass
4892class wasmtime_component_linker_instance_t(ctypes.Structure):
4893 pass
4895_wasmtime_component_linker_new = dll.wasmtime_component_linker_new
4896_wasmtime_component_linker_new.restype = ctypes.POINTER(wasmtime_component_linker_t)
4897_wasmtime_component_linker_new.argtypes = [ctypes.POINTER(wasm_engine_t)]
4898def wasmtime_component_linker_new(engine: Any) -> ctypes._Pointer:
4899 return _wasmtime_component_linker_new(engine) # type: ignore
4901_wasmtime_component_linker_allow_shadowing = dll.wasmtime_component_linker_allow_shadowing
4902_wasmtime_component_linker_allow_shadowing.restype = None
4903_wasmtime_component_linker_allow_shadowing.argtypes = [ctypes.POINTER(wasmtime_component_linker_t), ctypes.c_bool]
4904def wasmtime_component_linker_allow_shadowing(linker: Any, allow: Any) -> None:
4905 return _wasmtime_component_linker_allow_shadowing(linker, allow) # type: ignore
4907_wasmtime_component_linker_root = dll.wasmtime_component_linker_root
4908_wasmtime_component_linker_root.restype = ctypes.POINTER(wasmtime_component_linker_instance_t)
4909_wasmtime_component_linker_root.argtypes = [ctypes.POINTER(wasmtime_component_linker_t)]
4910def wasmtime_component_linker_root(linker: Any) -> ctypes._Pointer:
4911 return _wasmtime_component_linker_root(linker) # type: ignore
4913_wasmtime_component_linker_instantiate = dll.wasmtime_component_linker_instantiate
4914_wasmtime_component_linker_instantiate.restype = ctypes.POINTER(wasmtime_error_t)
4915_wasmtime_component_linker_instantiate.argtypes = [ctypes.POINTER(wasmtime_component_linker_t), ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_component_t), ctypes.POINTER(wasmtime_component_instance_t)]
4916def wasmtime_component_linker_instantiate(linker: Any, context: Any, component: Any, instance_out: Any) -> ctypes._Pointer:
4917 return _wasmtime_component_linker_instantiate(linker, context, component, instance_out) # type: ignore
4919_wasmtime_component_linker_define_unknown_imports_as_traps = dll.wasmtime_component_linker_define_unknown_imports_as_traps
4920_wasmtime_component_linker_define_unknown_imports_as_traps.restype = ctypes.POINTER(wasmtime_error_t)
4921_wasmtime_component_linker_define_unknown_imports_as_traps.argtypes = [ctypes.POINTER(wasmtime_component_linker_t), ctypes.POINTER(wasmtime_component_t)]
4922def wasmtime_component_linker_define_unknown_imports_as_traps(linker: Any, component: Any) -> ctypes._Pointer:
4923 return _wasmtime_component_linker_define_unknown_imports_as_traps(linker, component) # type: ignore
4925_wasmtime_component_linker_delete = dll.wasmtime_component_linker_delete
4926_wasmtime_component_linker_delete.restype = None
4927_wasmtime_component_linker_delete.argtypes = [ctypes.POINTER(wasmtime_component_linker_t)]
4928def wasmtime_component_linker_delete(linker: Any) -> None:
4929 return _wasmtime_component_linker_delete(linker) # type: ignore
4931_wasmtime_component_linker_instance_add_instance = dll.wasmtime_component_linker_instance_add_instance
4932_wasmtime_component_linker_instance_add_instance.restype = ctypes.POINTER(wasmtime_error_t)
4933_wasmtime_component_linker_instance_add_instance.argtypes = [ctypes.POINTER(wasmtime_component_linker_instance_t), ctypes.POINTER(ctypes.c_char), ctypes.c_size_t, ctypes.POINTER(ctypes.POINTER(wasmtime_component_linker_instance_t))]
4934def wasmtime_component_linker_instance_add_instance(linker_instance: Any, name: Any, name_len: Any, linker_instance_out: Any) -> ctypes._Pointer:
4935 return _wasmtime_component_linker_instance_add_instance(linker_instance, name, name_len, linker_instance_out) # type: ignore
4937_wasmtime_component_linker_instance_add_module = dll.wasmtime_component_linker_instance_add_module
4938_wasmtime_component_linker_instance_add_module.restype = ctypes.POINTER(wasmtime_error_t)
4939_wasmtime_component_linker_instance_add_module.argtypes = [ctypes.POINTER(wasmtime_component_linker_instance_t), ctypes.POINTER(ctypes.c_char), ctypes.c_size_t, ctypes.POINTER(wasmtime_module_t)]
4940def wasmtime_component_linker_instance_add_module(linker_instance: Any, name: Any, name_len: Any, module: Any) -> ctypes._Pointer:
4941 return _wasmtime_component_linker_instance_add_module(linker_instance, name, name_len, module) # type: ignore
4943wasmtime_component_func_callback_t = ctypes.CFUNCTYPE(ctypes.c_size_t, ctypes.c_void_p, ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_component_func_type_t), ctypes.POINTER(wasmtime_component_val_t), ctypes.c_size_t, ctypes.POINTER(wasmtime_component_val_t), ctypes.c_size_t)
4945_wasmtime_component_linker_instance_add_func = dll.wasmtime_component_linker_instance_add_func
4946_wasmtime_component_linker_instance_add_func.restype = ctypes.POINTER(wasmtime_error_t)
4947_wasmtime_component_linker_instance_add_func.argtypes = [ctypes.POINTER(wasmtime_component_linker_instance_t), ctypes.POINTER(ctypes.c_char), ctypes.c_size_t, wasmtime_component_func_callback_t, ctypes.c_void_p, ctypes.CFUNCTYPE(None, ctypes.c_void_p)]
4948def wasmtime_component_linker_instance_add_func(linker_instance: Any, name: Any, name_len: Any, callback: Any, data: Any, finalizer: Any) -> ctypes._Pointer:
4949 return _wasmtime_component_linker_instance_add_func(linker_instance, name, name_len, callback, data, finalizer) # type: ignore
4951_wasmtime_component_linker_add_wasip2 = dll.wasmtime_component_linker_add_wasip2
4952_wasmtime_component_linker_add_wasip2.restype = ctypes.POINTER(wasmtime_error_t)
4953_wasmtime_component_linker_add_wasip2.argtypes = [ctypes.POINTER(wasmtime_component_linker_t)]
4954def wasmtime_component_linker_add_wasip2(linker: Any) -> ctypes._Pointer:
4955 return _wasmtime_component_linker_add_wasip2(linker) # type: ignore
4957_wasmtime_component_linker_add_wasi_http = dll.wasmtime_component_linker_add_wasi_http
4958_wasmtime_component_linker_add_wasi_http.restype = ctypes.POINTER(wasmtime_error_t)
4959_wasmtime_component_linker_add_wasi_http.argtypes = [ctypes.POINTER(wasmtime_component_linker_t)]
4960def wasmtime_component_linker_add_wasi_http(linker: Any) -> ctypes._Pointer:
4961 return _wasmtime_component_linker_add_wasi_http(linker) # type: ignore
4963wasmtime_component_resource_destructor_t = ctypes.CFUNCTYPE(ctypes.c_size_t, ctypes.c_void_p, ctypes.POINTER(wasmtime_context_t), ctypes.c_uint32)
4965_wasmtime_component_linker_instance_add_resource = dll.wasmtime_component_linker_instance_add_resource
4966_wasmtime_component_linker_instance_add_resource.restype = ctypes.POINTER(wasmtime_error_t)
4967_wasmtime_component_linker_instance_add_resource.argtypes = [ctypes.POINTER(wasmtime_component_linker_instance_t), ctypes.POINTER(ctypes.c_char), ctypes.c_size_t, ctypes.POINTER(wasmtime_component_resource_type_t), wasmtime_component_resource_destructor_t, ctypes.c_void_p, ctypes.CFUNCTYPE(None, ctypes.c_void_p)]
4968def wasmtime_component_linker_instance_add_resource(linker_instance: Any, name: Any, name_len: Any, resource: Any, destructor: Any, data: Any, finalizer: Any) -> ctypes._Pointer:
4969 return _wasmtime_component_linker_instance_add_resource(linker_instance, name, name_len, resource, destructor, data, finalizer) # type: ignore
4971_wasmtime_component_linker_instance_delete = dll.wasmtime_component_linker_instance_delete
4972_wasmtime_component_linker_instance_delete.restype = None
4973_wasmtime_component_linker_instance_delete.argtypes = [ctypes.POINTER(wasmtime_component_linker_instance_t)]
4974def wasmtime_component_linker_instance_delete(linker_instance: Any) -> None:
4975 return _wasmtime_component_linker_instance_delete(linker_instance) # type: ignore
4977_wasmtime_component_linker_instantiate_async = dll.wasmtime_component_linker_instantiate_async
4978_wasmtime_component_linker_instantiate_async.restype = ctypes.POINTER(wasmtime_call_future_t)
4979_wasmtime_component_linker_instantiate_async.argtypes = [ctypes.POINTER(wasmtime_component_linker_t), ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_component_t), ctypes.POINTER(wasmtime_component_instance_t), ctypes.POINTER(ctypes.POINTER(wasmtime_error_t))]
4980def wasmtime_component_linker_instantiate_async(linker: Any, context: Any, component: Any, instance_out: Any, error_ret: Any) -> ctypes._Pointer:
4981 return _wasmtime_component_linker_instantiate_async(linker, context, component, instance_out, error_ret) # type: ignore
4983wasmtime_component_func_async_callback_t = ctypes.CFUNCTYPE(None, ctypes.c_void_p, ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_component_func_type_t), ctypes.POINTER(wasmtime_component_val_t), ctypes.c_size_t, ctypes.POINTER(wasmtime_component_val_t), ctypes.c_size_t, ctypes.POINTER(ctypes.POINTER(wasmtime_error_t)), ctypes.POINTER(wasmtime_async_continuation_t))
4985_wasmtime_component_linker_instance_add_func_async = dll.wasmtime_component_linker_instance_add_func_async
4986_wasmtime_component_linker_instance_add_func_async.restype = ctypes.POINTER(wasmtime_error_t)
4987_wasmtime_component_linker_instance_add_func_async.argtypes = [ctypes.POINTER(wasmtime_component_linker_instance_t), ctypes.POINTER(ctypes.c_char), ctypes.c_size_t, wasmtime_component_func_async_callback_t, ctypes.c_void_p, ctypes.CFUNCTYPE(None, ctypes.c_void_p)]
4988def wasmtime_component_linker_instance_add_func_async(linker_instance: Any, name: Any, name_len: Any, callback: Any, data: Any, finalizer: Any) -> ctypes._Pointer:
4989 return _wasmtime_component_linker_instance_add_func_async(linker_instance, name, name_len, callback, data, finalizer) # type: ignore
4991_wasmtime_component_linker_add_wasip2_async = dll.wasmtime_component_linker_add_wasip2_async
4992_wasmtime_component_linker_add_wasip2_async.restype = ctypes.POINTER(wasmtime_error_t)
4993_wasmtime_component_linker_add_wasip2_async.argtypes = [ctypes.POINTER(wasmtime_component_linker_t)]
4994def wasmtime_component_linker_add_wasip2_async(linker: Any) -> ctypes._Pointer:
4995 return _wasmtime_component_linker_add_wasip2_async(linker) # type: ignore
4997_wasmtime_component_linker_add_wasi_http_async = dll.wasmtime_component_linker_add_wasi_http_async
4998_wasmtime_component_linker_add_wasi_http_async.restype = ctypes.POINTER(wasmtime_error_t)
4999_wasmtime_component_linker_add_wasi_http_async.argtypes = [ctypes.POINTER(wasmtime_component_linker_t)]
5000def wasmtime_component_linker_add_wasi_http_async(linker: Any) -> ctypes._Pointer:
5001 return _wasmtime_component_linker_add_wasi_http_async(linker) # type: ignore
5003_wasmtime_engine_clone = dll.wasmtime_engine_clone
5004_wasmtime_engine_clone.restype = ctypes.POINTER(wasm_engine_t)
5005_wasmtime_engine_clone.argtypes = [ctypes.POINTER(wasm_engine_t)]
5006def wasmtime_engine_clone(engine: Any) -> ctypes._Pointer:
5007 return _wasmtime_engine_clone(engine) # type: ignore
5009_wasmtime_engine_increment_epoch = dll.wasmtime_engine_increment_epoch
5010_wasmtime_engine_increment_epoch.restype = None
5011_wasmtime_engine_increment_epoch.argtypes = [ctypes.POINTER(wasm_engine_t)]
5012def wasmtime_engine_increment_epoch(engine: Any) -> None:
5013 return _wasmtime_engine_increment_epoch(engine) # type: ignore
5015_wasmtime_engine_is_pulley = dll.wasmtime_engine_is_pulley
5016_wasmtime_engine_is_pulley.restype = ctypes.c_bool
5017_wasmtime_engine_is_pulley.argtypes = [ctypes.POINTER(wasm_engine_t)]
5018def wasmtime_engine_is_pulley(engine: Any) -> bool:
5019 return _wasmtime_engine_is_pulley(engine) # type: ignore
5021_wasmtime_eqref_clone = dll.wasmtime_eqref_clone
5022_wasmtime_eqref_clone.restype = None
5023_wasmtime_eqref_clone.argtypes = [ctypes.POINTER(wasmtime_eqref_t), ctypes.POINTER(wasmtime_eqref_t)]
5024def wasmtime_eqref_clone(eqref: Any, out: Any) -> None:
5025 return _wasmtime_eqref_clone(eqref, out) # type: ignore
5027_wasmtime_eqref_unroot = dll.wasmtime_eqref_unroot
5028_wasmtime_eqref_unroot.restype = None
5029_wasmtime_eqref_unroot.argtypes = [ctypes.POINTER(wasmtime_eqref_t)]
5030def wasmtime_eqref_unroot(ref: Any) -> None:
5031 return _wasmtime_eqref_unroot(ref) # type: ignore
5033_wasmtime_eqref_to_anyref = dll.wasmtime_eqref_to_anyref
5034_wasmtime_eqref_to_anyref.restype = None
5035_wasmtime_eqref_to_anyref.argtypes = [ctypes.POINTER(wasmtime_eqref_t), ctypes.POINTER(wasmtime_anyref_t)]
5036def wasmtime_eqref_to_anyref(eqref: Any, out: Any) -> None:
5037 return _wasmtime_eqref_to_anyref(eqref, out) # type: ignore
5039_wasmtime_eqref_from_i31 = dll.wasmtime_eqref_from_i31
5040_wasmtime_eqref_from_i31.restype = None
5041_wasmtime_eqref_from_i31.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.c_uint32, ctypes.POINTER(wasmtime_eqref_t)]
5042def wasmtime_eqref_from_i31(context: Any, i31val: Any, out: Any) -> None:
5043 return _wasmtime_eqref_from_i31(context, i31val, out) # type: ignore
5045_wasmtime_eqref_is_i31 = dll.wasmtime_eqref_is_i31
5046_wasmtime_eqref_is_i31.restype = ctypes.c_bool
5047_wasmtime_eqref_is_i31.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_eqref_t)]
5048def wasmtime_eqref_is_i31(context: Any, eqref: Any) -> bool:
5049 return _wasmtime_eqref_is_i31(context, eqref) # type: ignore
5051_wasmtime_eqref_i31_get_u = dll.wasmtime_eqref_i31_get_u
5052_wasmtime_eqref_i31_get_u.restype = ctypes.c_bool
5053_wasmtime_eqref_i31_get_u.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_eqref_t), ctypes.POINTER(ctypes.c_uint32)]
5054def wasmtime_eqref_i31_get_u(context: Any, eqref: Any, dst: Any) -> bool:
5055 return _wasmtime_eqref_i31_get_u(context, eqref, dst) # type: ignore
5057_wasmtime_eqref_i31_get_s = dll.wasmtime_eqref_i31_get_s
5058_wasmtime_eqref_i31_get_s.restype = ctypes.c_bool
5059_wasmtime_eqref_i31_get_s.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_eqref_t), ctypes.POINTER(ctypes.c_int32)]
5060def wasmtime_eqref_i31_get_s(context: Any, eqref: Any, dst: Any) -> bool:
5061 return _wasmtime_eqref_i31_get_s(context, eqref, dst) # type: ignore
5063_wasmtime_eqref_is_array = dll.wasmtime_eqref_is_array
5064_wasmtime_eqref_is_array.restype = ctypes.c_bool
5065_wasmtime_eqref_is_array.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_eqref_t)]
5066def wasmtime_eqref_is_array(context: Any, eqref: Any) -> bool:
5067 return _wasmtime_eqref_is_array(context, eqref) # type: ignore
5069_wasmtime_eqref_as_array = dll.wasmtime_eqref_as_array
5070_wasmtime_eqref_as_array.restype = ctypes.c_bool
5071_wasmtime_eqref_as_array.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_eqref_t), ctypes.POINTER(wasmtime_arrayref_t)]
5072def wasmtime_eqref_as_array(context: Any, eqref: Any, out: Any) -> bool:
5073 return _wasmtime_eqref_as_array(context, eqref, out) # type: ignore
5075_wasmtime_eqref_is_struct = dll.wasmtime_eqref_is_struct
5076_wasmtime_eqref_is_struct.restype = ctypes.c_bool
5077_wasmtime_eqref_is_struct.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_eqref_t)]
5078def wasmtime_eqref_is_struct(context: Any, eqref: Any) -> bool:
5079 return _wasmtime_eqref_is_struct(context, eqref) # type: ignore
5081_wasmtime_eqref_as_struct = dll.wasmtime_eqref_as_struct
5082_wasmtime_eqref_as_struct.restype = ctypes.c_bool
5083_wasmtime_eqref_as_struct.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_eqref_t), ctypes.POINTER(wasmtime_structref_t)]
5084def wasmtime_eqref_as_struct(context: Any, eqref: Any, out: Any) -> bool:
5085 return _wasmtime_eqref_as_struct(context, eqref, out) # type: ignore
5087_wasmtime_exnref_new = dll.wasmtime_exnref_new
5088_wasmtime_exnref_new.restype = ctypes.POINTER(wasmtime_error_t)
5089_wasmtime_exnref_new.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_tag_t), ctypes.POINTER(wasmtime_val_t), ctypes.c_size_t, ctypes.POINTER(wasmtime_exnref_t)]
5090def wasmtime_exnref_new(store: Any, tag: Any, fields: Any, nfields: Any, exn_ret: Any) -> ctypes._Pointer:
5091 return _wasmtime_exnref_new(store, tag, fields, nfields, exn_ret) # type: ignore
5093_wasmtime_exnref_clone = dll.wasmtime_exnref_clone
5094_wasmtime_exnref_clone.restype = None
5095_wasmtime_exnref_clone.argtypes = [ctypes.POINTER(wasmtime_exnref_t), ctypes.POINTER(wasmtime_exnref_t)]
5096def wasmtime_exnref_clone(ref: Any, out: Any) -> None:
5097 return _wasmtime_exnref_clone(ref, out) # type: ignore
5099_wasmtime_exnref_unroot = dll.wasmtime_exnref_unroot
5100_wasmtime_exnref_unroot.restype = None
5101_wasmtime_exnref_unroot.argtypes = [ctypes.POINTER(wasmtime_exnref_t)]
5102def wasmtime_exnref_unroot(ref: Any) -> None:
5103 return _wasmtime_exnref_unroot(ref) # type: ignore
5105_wasmtime_exnref_from_raw = dll.wasmtime_exnref_from_raw
5106_wasmtime_exnref_from_raw.restype = None
5107_wasmtime_exnref_from_raw.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.c_uint32, ctypes.POINTER(wasmtime_exnref_t)]
5108def wasmtime_exnref_from_raw(context: Any, raw: Any, out: Any) -> None:
5109 return _wasmtime_exnref_from_raw(context, raw, out) # type: ignore
5111_wasmtime_exnref_to_raw = dll.wasmtime_exnref_to_raw
5112_wasmtime_exnref_to_raw.restype = ctypes.c_uint32
5113_wasmtime_exnref_to_raw.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_exnref_t)]
5114def wasmtime_exnref_to_raw(context: Any, ref: Any) -> int:
5115 return _wasmtime_exnref_to_raw(context, ref) # type: ignore
5117_wasmtime_exnref_tag = dll.wasmtime_exnref_tag
5118_wasmtime_exnref_tag.restype = ctypes.POINTER(wasmtime_error_t)
5119_wasmtime_exnref_tag.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_exnref_t), ctypes.POINTER(wasmtime_tag_t)]
5120def wasmtime_exnref_tag(store: Any, exn: Any, tag_ret: Any) -> ctypes._Pointer:
5121 return _wasmtime_exnref_tag(store, exn, tag_ret) # type: ignore
5123_wasmtime_exnref_field_count = dll.wasmtime_exnref_field_count
5124_wasmtime_exnref_field_count.restype = ctypes.c_size_t
5125_wasmtime_exnref_field_count.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_exnref_t)]
5126def wasmtime_exnref_field_count(store: Any, exn: Any) -> int:
5127 return _wasmtime_exnref_field_count(store, exn) # type: ignore
5129_wasmtime_exnref_field = dll.wasmtime_exnref_field
5130_wasmtime_exnref_field.restype = ctypes.POINTER(wasmtime_error_t)
5131_wasmtime_exnref_field.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_exnref_t), ctypes.c_size_t, ctypes.POINTER(wasmtime_val_t)]
5132def wasmtime_exnref_field(store: Any, exn: Any, index: Any, val_ret: Any) -> ctypes._Pointer:
5133 return _wasmtime_exnref_field(store, exn, index, val_ret) # type: ignore
5135_wasmtime_context_set_exception = dll.wasmtime_context_set_exception
5136_wasmtime_context_set_exception.restype = ctypes.POINTER(wasm_trap_t)
5137_wasmtime_context_set_exception.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_exnref_t)]
5138def wasmtime_context_set_exception(store: Any, exn: Any) -> ctypes._Pointer:
5139 return _wasmtime_context_set_exception(store, exn) # type: ignore
5141_wasmtime_context_take_exception = dll.wasmtime_context_take_exception
5142_wasmtime_context_take_exception.restype = ctypes.c_bool
5143_wasmtime_context_take_exception.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_exnref_t)]
5144def wasmtime_context_take_exception(store: Any, exn_ret: Any) -> bool:
5145 return _wasmtime_context_take_exception(store, exn_ret) # type: ignore
5147_wasmtime_context_has_exception = dll.wasmtime_context_has_exception
5148_wasmtime_context_has_exception.restype = ctypes.c_bool
5149_wasmtime_context_has_exception.argtypes = [ctypes.POINTER(wasmtime_context_t)]
5150def wasmtime_context_has_exception(store: Any) -> bool:
5151 return _wasmtime_context_has_exception(store) # type: ignore
5153_wasmtime_externref_new = dll.wasmtime_externref_new
5154_wasmtime_externref_new.restype = ctypes.c_bool
5155_wasmtime_externref_new.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.c_void_p, ctypes.CFUNCTYPE(None, ctypes.c_void_p), ctypes.POINTER(wasmtime_externref_t)]
5156def wasmtime_externref_new(context: Any, data: Any, finalizer: Any, out: Any) -> bool:
5157 return _wasmtime_externref_new(context, data, finalizer, out) # type: ignore
5159_wasmtime_externref_data = dll.wasmtime_externref_data
5160_wasmtime_externref_data.restype = ctypes.c_void_p
5161_wasmtime_externref_data.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_externref_t)]
5162def wasmtime_externref_data(context: Any, data: Any) -> ctypes._Pointer:
5163 return _wasmtime_externref_data(context, data) # type: ignore
5165_wasmtime_externref_clone = dll.wasmtime_externref_clone
5166_wasmtime_externref_clone.restype = None
5167_wasmtime_externref_clone.argtypes = [ctypes.POINTER(wasmtime_externref_t), ctypes.POINTER(wasmtime_externref_t)]
5168def wasmtime_externref_clone(ref: Any, out: Any) -> None:
5169 return _wasmtime_externref_clone(ref, out) # type: ignore
5171_wasmtime_externref_unroot = dll.wasmtime_externref_unroot
5172_wasmtime_externref_unroot.restype = None
5173_wasmtime_externref_unroot.argtypes = [ctypes.POINTER(wasmtime_externref_t)]
5174def wasmtime_externref_unroot(ref: Any) -> None:
5175 return _wasmtime_externref_unroot(ref) # type: ignore
5177_wasmtime_externref_from_raw = dll.wasmtime_externref_from_raw
5178_wasmtime_externref_from_raw.restype = None
5179_wasmtime_externref_from_raw.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.c_uint32, ctypes.POINTER(wasmtime_externref_t)]
5180def wasmtime_externref_from_raw(context: Any, raw: Any, out: Any) -> None:
5181 return _wasmtime_externref_from_raw(context, raw, out) # type: ignore
5183_wasmtime_externref_to_raw = dll.wasmtime_externref_to_raw
5184_wasmtime_externref_to_raw.restype = ctypes.c_uint32
5185_wasmtime_externref_to_raw.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_externref_t)]
5186def wasmtime_externref_to_raw(context: Any, ref: Any) -> int:
5187 return _wasmtime_externref_to_raw(context, ref) # type: ignore
5189_wasmtime_global_new = dll.wasmtime_global_new
5190_wasmtime_global_new.restype = ctypes.POINTER(wasmtime_error_t)
5191_wasmtime_global_new.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasm_globaltype_t), ctypes.POINTER(wasmtime_val_t), ctypes.POINTER(wasmtime_global_t)]
5192def wasmtime_global_new(store: Any, type: Any, val: Any, ret: Any) -> ctypes._Pointer:
5193 return _wasmtime_global_new(store, type, val, ret) # type: ignore
5195_wasmtime_global_type = dll.wasmtime_global_type
5196_wasmtime_global_type.restype = ctypes.POINTER(wasm_globaltype_t)
5197_wasmtime_global_type.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_global_t)]
5198def wasmtime_global_type(store: Any, arg1: Any) -> ctypes._Pointer:
5199 return _wasmtime_global_type(store, arg1) # type: ignore
5201_wasmtime_global_get = dll.wasmtime_global_get
5202_wasmtime_global_get.restype = None
5203_wasmtime_global_get.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_global_t), ctypes.POINTER(wasmtime_val_t)]
5204def wasmtime_global_get(store: Any, arg1: Any, out: Any) -> None:
5205 return _wasmtime_global_get(store, arg1, out) # type: ignore
5207_wasmtime_global_set = dll.wasmtime_global_set
5208_wasmtime_global_set.restype = ctypes.POINTER(wasmtime_error_t)
5209_wasmtime_global_set.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_global_t), ctypes.POINTER(wasmtime_val_t)]
5210def wasmtime_global_set(store: Any, arg1: Any, val: Any) -> ctypes._Pointer:
5211 return _wasmtime_global_set(store, arg1, val) # type: ignore
5213_wasmtime_memorytype_new = dll.wasmtime_memorytype_new
5214_wasmtime_memorytype_new.restype = ctypes.POINTER(wasmtime_error_t)
5215_wasmtime_memorytype_new.argtypes = [ctypes.c_uint64, ctypes.c_bool, ctypes.c_uint64, ctypes.c_bool, ctypes.c_bool, ctypes.c_uint8, ctypes.POINTER(ctypes.POINTER(wasm_memorytype_t))]
5216def wasmtime_memorytype_new(min: Any, max_present: Any, max: Any, is_64: Any, shared: Any, page_size_log2: Any, ret: Any) -> ctypes._Pointer:
5217 return _wasmtime_memorytype_new(min, max_present, max, is_64, shared, page_size_log2, ret) # type: ignore
5219_wasmtime_memorytype_minimum = dll.wasmtime_memorytype_minimum
5220_wasmtime_memorytype_minimum.restype = ctypes.c_uint64
5221_wasmtime_memorytype_minimum.argtypes = [ctypes.POINTER(wasm_memorytype_t)]
5222def wasmtime_memorytype_minimum(ty: Any) -> int:
5223 return _wasmtime_memorytype_minimum(ty) # type: ignore
5225_wasmtime_memorytype_maximum = dll.wasmtime_memorytype_maximum
5226_wasmtime_memorytype_maximum.restype = ctypes.c_bool
5227_wasmtime_memorytype_maximum.argtypes = [ctypes.POINTER(wasm_memorytype_t), ctypes.POINTER(ctypes.c_uint64)]
5228def wasmtime_memorytype_maximum(ty: Any, max: Any) -> bool:
5229 return _wasmtime_memorytype_maximum(ty, max) # type: ignore
5231_wasmtime_memorytype_is64 = dll.wasmtime_memorytype_is64
5232_wasmtime_memorytype_is64.restype = ctypes.c_bool
5233_wasmtime_memorytype_is64.argtypes = [ctypes.POINTER(wasm_memorytype_t)]
5234def wasmtime_memorytype_is64(ty: Any) -> bool:
5235 return _wasmtime_memorytype_is64(ty) # type: ignore
5237_wasmtime_memorytype_isshared = dll.wasmtime_memorytype_isshared
5238_wasmtime_memorytype_isshared.restype = ctypes.c_bool
5239_wasmtime_memorytype_isshared.argtypes = [ctypes.POINTER(wasm_memorytype_t)]
5240def wasmtime_memorytype_isshared(ty: Any) -> bool:
5241 return _wasmtime_memorytype_isshared(ty) # type: ignore
5243_wasmtime_memorytype_page_size = dll.wasmtime_memorytype_page_size
5244_wasmtime_memorytype_page_size.restype = ctypes.c_uint64
5245_wasmtime_memorytype_page_size.argtypes = [ctypes.POINTER(wasm_memorytype_t)]
5246def wasmtime_memorytype_page_size(ty: Any) -> int:
5247 return _wasmtime_memorytype_page_size(ty) # type: ignore
5249_wasmtime_memorytype_page_size_log2 = dll.wasmtime_memorytype_page_size_log2
5250_wasmtime_memorytype_page_size_log2.restype = ctypes.c_uint8
5251_wasmtime_memorytype_page_size_log2.argtypes = [ctypes.POINTER(wasm_memorytype_t)]
5252def wasmtime_memorytype_page_size_log2(ty: Any) -> ctypes.c_uint8:
5253 return _wasmtime_memorytype_page_size_log2(ty) # type: ignore
5255_wasmtime_memory_new = dll.wasmtime_memory_new
5256_wasmtime_memory_new.restype = ctypes.POINTER(wasmtime_error_t)
5257_wasmtime_memory_new.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasm_memorytype_t), ctypes.POINTER(wasmtime_memory_t)]
5258def wasmtime_memory_new(store: Any, ty: Any, ret: Any) -> ctypes._Pointer:
5259 return _wasmtime_memory_new(store, ty, ret) # type: ignore
5261_wasmtime_memory_type = dll.wasmtime_memory_type
5262_wasmtime_memory_type.restype = ctypes.POINTER(wasm_memorytype_t)
5263_wasmtime_memory_type.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_memory_t)]
5264def wasmtime_memory_type(store: Any, memory: Any) -> ctypes._Pointer:
5265 return _wasmtime_memory_type(store, memory) # type: ignore
5267_wasmtime_memory_data = dll.wasmtime_memory_data
5268_wasmtime_memory_data.restype = ctypes.POINTER(ctypes.c_uint8)
5269_wasmtime_memory_data.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_memory_t)]
5270def wasmtime_memory_data(store: Any, memory: Any) -> ctypes._Pointer:
5271 return _wasmtime_memory_data(store, memory) # type: ignore
5273_wasmtime_memory_data_size = dll.wasmtime_memory_data_size
5274_wasmtime_memory_data_size.restype = ctypes.c_size_t
5275_wasmtime_memory_data_size.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_memory_t)]
5276def wasmtime_memory_data_size(store: Any, memory: Any) -> int:
5277 return _wasmtime_memory_data_size(store, memory) # type: ignore
5279_wasmtime_memory_size = dll.wasmtime_memory_size
5280_wasmtime_memory_size.restype = ctypes.c_uint64
5281_wasmtime_memory_size.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_memory_t)]
5282def wasmtime_memory_size(store: Any, memory: Any) -> int:
5283 return _wasmtime_memory_size(store, memory) # type: ignore
5285_wasmtime_memory_grow = dll.wasmtime_memory_grow
5286_wasmtime_memory_grow.restype = ctypes.POINTER(wasmtime_error_t)
5287_wasmtime_memory_grow.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_memory_t), ctypes.c_uint64, ctypes.POINTER(ctypes.c_uint64)]
5288def wasmtime_memory_grow(store: Any, memory: Any, delta: Any, prev_size: Any) -> ctypes._Pointer:
5289 return _wasmtime_memory_grow(store, memory, delta, prev_size) # type: ignore
5291_wasmtime_memory_page_size = dll.wasmtime_memory_page_size
5292_wasmtime_memory_page_size.restype = ctypes.c_uint64
5293_wasmtime_memory_page_size.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_memory_t)]
5294def wasmtime_memory_page_size(store: Any, memory: Any) -> int:
5295 return _wasmtime_memory_page_size(store, memory) # type: ignore
5297_wasmtime_memory_page_size_log2 = dll.wasmtime_memory_page_size_log2
5298_wasmtime_memory_page_size_log2.restype = ctypes.c_uint8
5299_wasmtime_memory_page_size_log2.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_memory_t)]
5300def wasmtime_memory_page_size_log2(store: Any, memory: Any) -> ctypes.c_uint8:
5301 return _wasmtime_memory_page_size_log2(store, memory) # type: ignore
5303class wasmtime_guestprofiler(ctypes.Structure):
5304 pass
5306wasmtime_guestprofiler_t = wasmtime_guestprofiler
5308_wasmtime_guestprofiler_delete = dll.wasmtime_guestprofiler_delete
5309_wasmtime_guestprofiler_delete.restype = None
5310_wasmtime_guestprofiler_delete.argtypes = [ctypes.POINTER(wasmtime_guestprofiler_t)]
5311def wasmtime_guestprofiler_delete(guestprofiler: Any) -> None:
5312 return _wasmtime_guestprofiler_delete(guestprofiler) # type: ignore
5314class wasmtime_guestprofiler_modules(ctypes.Structure):
5315 _fields_ = [
5316 ("name", ctypes.POINTER(wasm_name_t)),
5317 ("mod", ctypes.POINTER(wasmtime_module_t)),
5318 ]
5319 name: ctypes._Pointer
5320 mod: ctypes._Pointer
5322wasmtime_guestprofiler_modules_t = wasmtime_guestprofiler_modules
5324_wasmtime_guestprofiler_new = dll.wasmtime_guestprofiler_new
5325_wasmtime_guestprofiler_new.restype = ctypes.POINTER(wasmtime_guestprofiler_t)
5326_wasmtime_guestprofiler_new.argtypes = [ctypes.POINTER(wasm_engine_t), ctypes.POINTER(wasm_name_t), ctypes.c_uint64, ctypes.POINTER(wasmtime_guestprofiler_modules_t), ctypes.c_size_t]
5327def wasmtime_guestprofiler_new(engine: Any, module_name: Any, interval_nanos: Any, modules: Any, modules_len: Any) -> ctypes._Pointer:
5328 return _wasmtime_guestprofiler_new(engine, module_name, interval_nanos, modules, modules_len) # type: ignore
5330_wasmtime_guestprofiler_sample = dll.wasmtime_guestprofiler_sample
5331_wasmtime_guestprofiler_sample.restype = None
5332_wasmtime_guestprofiler_sample.argtypes = [ctypes.POINTER(wasmtime_guestprofiler_t), ctypes.POINTER(wasmtime_store_t), ctypes.c_uint64]
5333def wasmtime_guestprofiler_sample(guestprofiler: Any, store: Any, delta_nanos: Any) -> None:
5334 return _wasmtime_guestprofiler_sample(guestprofiler, store, delta_nanos) # type: ignore
5336_wasmtime_guestprofiler_finish = dll.wasmtime_guestprofiler_finish
5337_wasmtime_guestprofiler_finish.restype = ctypes.POINTER(wasmtime_error_t)
5338_wasmtime_guestprofiler_finish.argtypes = [ctypes.POINTER(wasmtime_guestprofiler_t), ctypes.POINTER(wasm_byte_vec_t)]
5339def wasmtime_guestprofiler_finish(guestprofiler: Any, out: Any) -> ctypes._Pointer:
5340 return _wasmtime_guestprofiler_finish(guestprofiler, out) # type: ignore
5342class wasmtime_struct_ref_pre(ctypes.Structure):
5343 pass
5345wasmtime_struct_ref_pre_t = wasmtime_struct_ref_pre
5347_wasmtime_struct_ref_pre_new = dll.wasmtime_struct_ref_pre_new
5348_wasmtime_struct_ref_pre_new.restype = ctypes.POINTER(wasmtime_struct_ref_pre_t)
5349_wasmtime_struct_ref_pre_new.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_struct_type_t)]
5350def wasmtime_struct_ref_pre_new(context: Any, ty: Any) -> ctypes._Pointer:
5351 return _wasmtime_struct_ref_pre_new(context, ty) # type: ignore
5353_wasmtime_struct_ref_pre_delete = dll.wasmtime_struct_ref_pre_delete
5354_wasmtime_struct_ref_pre_delete.restype = None
5355_wasmtime_struct_ref_pre_delete.argtypes = [ctypes.POINTER(wasmtime_struct_ref_pre_t)]
5356def wasmtime_struct_ref_pre_delete(pre: Any) -> None:
5357 return _wasmtime_struct_ref_pre_delete(pre) # type: ignore
5359_wasmtime_structref_new = dll.wasmtime_structref_new
5360_wasmtime_structref_new.restype = ctypes.POINTER(wasmtime_error_t)
5361_wasmtime_structref_new.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_struct_ref_pre_t), ctypes.POINTER(wasmtime_val_t), ctypes.c_size_t, ctypes.POINTER(wasmtime_structref_t)]
5362def wasmtime_structref_new(context: Any, pre: Any, fields: Any, nfields: Any, out: Any) -> ctypes._Pointer:
5363 return _wasmtime_structref_new(context, pre, fields, nfields, out) # type: ignore
5365_wasmtime_structref_clone = dll.wasmtime_structref_clone
5366_wasmtime_structref_clone.restype = None
5367_wasmtime_structref_clone.argtypes = [ctypes.POINTER(wasmtime_structref_t), ctypes.POINTER(wasmtime_structref_t)]
5368def wasmtime_structref_clone(structref: Any, out: Any) -> None:
5369 return _wasmtime_structref_clone(structref, out) # type: ignore
5371_wasmtime_structref_unroot = dll.wasmtime_structref_unroot
5372_wasmtime_structref_unroot.restype = None
5373_wasmtime_structref_unroot.argtypes = [ctypes.POINTER(wasmtime_structref_t)]
5374def wasmtime_structref_unroot(ref: Any) -> None:
5375 return _wasmtime_structref_unroot(ref) # type: ignore
5377_wasmtime_structref_to_anyref = dll.wasmtime_structref_to_anyref
5378_wasmtime_structref_to_anyref.restype = None
5379_wasmtime_structref_to_anyref.argtypes = [ctypes.POINTER(wasmtime_structref_t), ctypes.POINTER(wasmtime_anyref_t)]
5380def wasmtime_structref_to_anyref(structref: Any, out: Any) -> None:
5381 return _wasmtime_structref_to_anyref(structref, out) # type: ignore
5383_wasmtime_structref_to_eqref = dll.wasmtime_structref_to_eqref
5384_wasmtime_structref_to_eqref.restype = None
5385_wasmtime_structref_to_eqref.argtypes = [ctypes.POINTER(wasmtime_structref_t), ctypes.POINTER(wasmtime_eqref_t)]
5386def wasmtime_structref_to_eqref(structref: Any, out: Any) -> None:
5387 return _wasmtime_structref_to_eqref(structref, out) # type: ignore
5389_wasmtime_structref_field = dll.wasmtime_structref_field
5390_wasmtime_structref_field.restype = ctypes.POINTER(wasmtime_error_t)
5391_wasmtime_structref_field.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_structref_t), ctypes.c_size_t, ctypes.POINTER(wasmtime_val_t)]
5392def wasmtime_structref_field(context: Any, structref: Any, index: Any, out: Any) -> ctypes._Pointer:
5393 return _wasmtime_structref_field(context, structref, index, out) # type: ignore
5395_wasmtime_structref_set_field = dll.wasmtime_structref_set_field
5396_wasmtime_structref_set_field.restype = ctypes.POINTER(wasmtime_error_t)
5397_wasmtime_structref_set_field.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_structref_t), ctypes.c_size_t, ctypes.POINTER(wasmtime_val_t)]
5398def wasmtime_structref_set_field(context: Any, structref: Any, index: Any, val: Any) -> ctypes._Pointer:
5399 return _wasmtime_structref_set_field(context, structref, index, val) # type: ignore
5401_wasmtime_table_new = dll.wasmtime_table_new
5402_wasmtime_table_new.restype = ctypes.POINTER(wasmtime_error_t)
5403_wasmtime_table_new.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasm_tabletype_t), ctypes.POINTER(wasmtime_val_t), ctypes.POINTER(wasmtime_table_t)]
5404def wasmtime_table_new(store: Any, ty: Any, init: Any, table: Any) -> ctypes._Pointer:
5405 return _wasmtime_table_new(store, ty, init, table) # type: ignore
5407_wasmtime_table_type = dll.wasmtime_table_type
5408_wasmtime_table_type.restype = ctypes.POINTER(wasm_tabletype_t)
5409_wasmtime_table_type.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_table_t)]
5410def wasmtime_table_type(store: Any, table: Any) -> ctypes._Pointer:
5411 return _wasmtime_table_type(store, table) # type: ignore
5413_wasmtime_table_get = dll.wasmtime_table_get
5414_wasmtime_table_get.restype = ctypes.c_bool
5415_wasmtime_table_get.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_table_t), ctypes.c_uint64, ctypes.POINTER(wasmtime_val_t)]
5416def wasmtime_table_get(store: Any, table: Any, index: Any, val: Any) -> bool:
5417 return _wasmtime_table_get(store, table, index, val) # type: ignore
5419_wasmtime_table_set = dll.wasmtime_table_set
5420_wasmtime_table_set.restype = ctypes.POINTER(wasmtime_error_t)
5421_wasmtime_table_set.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_table_t), ctypes.c_uint64, ctypes.POINTER(wasmtime_val_t)]
5422def wasmtime_table_set(store: Any, table: Any, index: Any, value: Any) -> ctypes._Pointer:
5423 return _wasmtime_table_set(store, table, index, value) # type: ignore
5425_wasmtime_table_size = dll.wasmtime_table_size
5426_wasmtime_table_size.restype = ctypes.c_uint64
5427_wasmtime_table_size.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_table_t)]
5428def wasmtime_table_size(store: Any, table: Any) -> int:
5429 return _wasmtime_table_size(store, table) # type: ignore
5431_wasmtime_table_grow = dll.wasmtime_table_grow
5432_wasmtime_table_grow.restype = ctypes.POINTER(wasmtime_error_t)
5433_wasmtime_table_grow.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_table_t), ctypes.c_uint64, ctypes.POINTER(wasmtime_val_t), ctypes.POINTER(ctypes.c_uint64)]
5434def wasmtime_table_grow(store: Any, table: Any, delta: Any, init: Any, prev_size: Any) -> ctypes._Pointer:
5435 return _wasmtime_table_grow(store, table, delta, init, prev_size) # type: ignore
5437wasmtime_trap_code_t = ctypes.c_uint8
5439class wasmtime_trap_code_enum(Enum):
5440 WASMTIME_TRAP_CODE_STACK_OVERFLOW = 0
5441 WASMTIME_TRAP_CODE_MEMORY_OUT_OF_BOUNDS = 1
5442 WASMTIME_TRAP_CODE_HEAP_MISALIGNED = 2
5443 WASMTIME_TRAP_CODE_TABLE_OUT_OF_BOUNDS = 3
5444 WASMTIME_TRAP_CODE_INDIRECT_CALL_TO_NULL = 4
5445 WASMTIME_TRAP_CODE_BAD_SIGNATURE = 5
5446 WASMTIME_TRAP_CODE_INTEGER_OVERFLOW = 6
5447 WASMTIME_TRAP_CODE_INTEGER_DIVISION_BY_ZERO = 7
5448 WASMTIME_TRAP_CODE_BAD_CONVERSION_TO_INTEGER = 8
5449 WASMTIME_TRAP_CODE_UNREACHABLE_CODE_REACHED = 9
5450 WASMTIME_TRAP_CODE_INTERRUPT = 10
5451 WASMTIME_TRAP_CODE_OUT_OF_FUEL = 11
5452 WASMTIME_TRAP_CODE_ATOMIC_WAIT_NON_SHARED_MEMORY = 12
5453 WASMTIME_TRAP_CODE_NULL_REFERENCE = 13
5454 WASMTIME_TRAP_CODE_ARRAY_OUT_OF_BOUNDS = 14
5455 WASMTIME_TRAP_CODE_ALLOCATION_TOO_LARGE = 15
5456 WASMTIME_TRAP_CODE_CAST_FAILURE = 16
5457 WASMTIME_TRAP_CODE_CANNOT_ENTER_COMPONENT = 17
5458 WASMTIME_TRAP_CODE_NO_ASYNC_RESULT = 18
5459 WASMTIME_TRAP_CODE_UNHANDLED_TAG = 19
5460 WASMTIME_TRAP_CODE_CONTINUATION_ALREADY_CONSUMED = 20
5461 WASMTIME_TRAP_CODE_DISABLED_OPCODE = 21
5462 WASMTIME_TRAP_CODE_ASYNC_DEADLOCK = 22
5463 WASMTIME_TRAP_CODE_CANNOT_LEAVE_COMPONENT = 23
5464 WASMTIME_TRAP_CODE_CANNOT_BLOCK_SYNC_TASK = 24
5465 WASMTIME_TRAP_CODE_INVALID_CHAR = 25
5466 WASMTIME_TRAP_CODE_DEBUG_ASSERT_STRING_ENCODING_FINISHED = 26
5467 WASMTIME_TRAP_CODE_DEBUG_ASSERT_EQUAL_CODE_UNITS = 27
5468 WASMTIME_TRAP_CODE_DEBUG_ASSERT_POINTER_ALIGNED = 28
5469 WASMTIME_TRAP_CODE_DEBUG_ASSERT_UPPER_BITS_UNSET = 29
5470 WASMTIME_TRAP_CODE_STRING_OUT_OF_BOUNDS = 30
5471 WASMTIME_TRAP_CODE_LIST_OUT_OF_BOUNDS = 31
5472 WASMTIME_TRAP_CODE_INVALID_DISCRIMINANT = 32
5473 WASMTIME_TRAP_CODE_UNALIGNED_POINTER = 33
5474 WASMTIME_TRAP_CODE_TASK_CANCEL_NOT_CANCELLED = 34
5475 WASMTIME_TRAP_CODE_TASK_CANCEL_OR_RETURN_TWICE = 35
5476 WASMTIME_TRAP_CODE_SUBTASK_CANCEL_AFTER_TERMINAL = 36
5477 WASMTIME_TRAP_CODE_TASK_RETURN_INVALID = 37
5478 WASMTIME_TRAP_CODE_WAITABLE_SET_DROP_HAS_WAITERS = 38
5479 WASMTIME_TRAP_CODE_SUBTASK_DROP_NOT_RESOLVED = 39
5480 WASMTIME_TRAP_CODE_THREAD_NEW_INDIRECT_INVALID_TYPE = 40
5481 WASMTIME_TRAP_CODE_THREAD_NEW_INDIRECT_UNINITIALIZED = 41
5482 WASMTIME_TRAP_CODE_BACKPRESSURE_OVERFLOW = 42
5483 WASMTIME_TRAP_CODE_UNSUPPORTED_CALLBACK_CODE = 43
5484 WASMTIME_TRAP_CODE_CANNOT_RESUME_THREAD = 44
5485 WASMTIME_TRAP_CODE_CONCURRENT_FUTURE_STREAM_OP = 45
5486 WASMTIME_TRAP_CODE_REFERENCE_COUNT_OVERFLOW = 46
5487 WASMTIME_TRAP_CODE_STREAM_OP_TOO_BIG = 47
5489_wasmtime_trap_new = dll.wasmtime_trap_new
5490_wasmtime_trap_new.restype = ctypes.POINTER(wasm_trap_t)
5491_wasmtime_trap_new.argtypes = [ctypes.POINTER(ctypes.c_char), ctypes.c_size_t]
5492def wasmtime_trap_new(msg: Any, msg_len: Any) -> ctypes._Pointer:
5493 return _wasmtime_trap_new(msg, msg_len) # type: ignore
5495_wasmtime_trap_new_code = dll.wasmtime_trap_new_code
5496_wasmtime_trap_new_code.restype = ctypes.POINTER(wasm_trap_t)
5497_wasmtime_trap_new_code.argtypes = [wasmtime_trap_code_t]
5498def wasmtime_trap_new_code(code: Any) -> ctypes._Pointer:
5499 return _wasmtime_trap_new_code(code) # type: ignore
5501_wasmtime_trap_code = dll.wasmtime_trap_code
5502_wasmtime_trap_code.restype = ctypes.c_bool
5503_wasmtime_trap_code.argtypes = [ctypes.POINTER(wasm_trap_t), ctypes.POINTER(wasmtime_trap_code_t)]
5504def wasmtime_trap_code(arg0: Any, code: Any) -> bool:
5505 return _wasmtime_trap_code(arg0, code) # type: ignore
5507_wasmtime_frame_func_name = dll.wasmtime_frame_func_name
5508_wasmtime_frame_func_name.restype = ctypes.POINTER(wasm_name_t)
5509_wasmtime_frame_func_name.argtypes = [ctypes.POINTER(wasm_frame_t)]
5510def wasmtime_frame_func_name(arg0: Any) -> ctypes._Pointer:
5511 return _wasmtime_frame_func_name(arg0) # type: ignore
5513_wasmtime_frame_module_name = dll.wasmtime_frame_module_name
5514_wasmtime_frame_module_name.restype = ctypes.POINTER(wasm_name_t)
5515_wasmtime_frame_module_name.argtypes = [ctypes.POINTER(wasm_frame_t)]
5516def wasmtime_frame_module_name(arg0: Any) -> ctypes._Pointer:
5517 return _wasmtime_frame_module_name(arg0) # type: ignore
5519class wasmtime_exn_type(ctypes.Structure):
5520 pass
5522wasmtime_exn_type_t = wasmtime_exn_type
5524_wasmtime_exn_type_new = dll.wasmtime_exn_type_new
5525_wasmtime_exn_type_new.restype = ctypes.POINTER(wasmtime_error_t)
5526_wasmtime_exn_type_new.argtypes = [ctypes.POINTER(wasm_engine_t), ctypes.POINTER(wasm_valtype_vec_t), ctypes.POINTER(ctypes.POINTER(wasmtime_exn_type_t))]
5527def wasmtime_exn_type_new(engine: Any, params: Any, out: Any) -> ctypes._Pointer:
5528 return _wasmtime_exn_type_new(engine, params, out) # type: ignore
5530_wasmtime_exn_type_delete = dll.wasmtime_exn_type_delete
5531_wasmtime_exn_type_delete.restype = None
5532_wasmtime_exn_type_delete.argtypes = [ctypes.POINTER(wasmtime_exn_type_t)]
5533def wasmtime_exn_type_delete(ty: Any) -> None:
5534 return _wasmtime_exn_type_delete(ty) # type: ignore
5536_wasmtime_exn_type_copy = dll.wasmtime_exn_type_copy
5537_wasmtime_exn_type_copy.restype = ctypes.POINTER(wasmtime_exn_type_t)
5538_wasmtime_exn_type_copy.argtypes = [ctypes.POINTER(wasmtime_exn_type_t)]
5539def wasmtime_exn_type_copy(ty: Any) -> ctypes._Pointer:
5540 return _wasmtime_exn_type_copy(ty) # type: ignore
5542_wasmtime_exn_type_tag_type = dll.wasmtime_exn_type_tag_type
5543_wasmtime_exn_type_tag_type.restype = ctypes.POINTER(wasm_tagtype_t)
5544_wasmtime_exn_type_tag_type.argtypes = [ctypes.POINTER(wasmtime_exn_type_t)]
5545def wasmtime_exn_type_tag_type(ty: Any) -> ctypes._Pointer:
5546 return _wasmtime_exn_type_tag_type(ty) # type: ignore
5548_wasmtime_wasm_valtype_v128 = dll.wasmtime_wasm_valtype_v128
5549_wasmtime_wasm_valtype_v128.restype = ctypes.POINTER(wasm_valtype_t)
5550_wasmtime_wasm_valtype_v128.argtypes = []
5551def wasmtime_wasm_valtype_v128() -> ctypes._Pointer:
5552 return _wasmtime_wasm_valtype_v128() # type: ignore
5554_wasmtime_wasm_valtype_equal = dll.wasmtime_wasm_valtype_equal
5555_wasmtime_wasm_valtype_equal.restype = ctypes.c_bool
5556_wasmtime_wasm_valtype_equal.argtypes = [ctypes.POINTER(wasm_valtype_t), ctypes.POINTER(wasm_valtype_t)]
5557def wasmtime_wasm_valtype_equal(a: Any, b: Any) -> bool:
5558 return _wasmtime_wasm_valtype_equal(a, b) # type: ignore
5560wasmtime_heaptype_kind_t = ctypes.c_uint8
5562class wasmtime_heaptype_union(ctypes.Union):
5563 _fields_ = [
5564 ("concrete_func", ctypes.POINTER(wasm_functype_t)),
5565 ("concrete_array", ctypes.POINTER(wasmtime_array_type_t)),
5566 ("concrete_struct", ctypes.POINTER(wasmtime_struct_type_t)),
5567 ("concrete_exn", ctypes.POINTER(wasmtime_exn_type_t)),
5568 ]
5569 concrete_func: ctypes._Pointer
5570 concrete_array: ctypes._Pointer
5571 concrete_struct: ctypes._Pointer
5572 concrete_exn: ctypes._Pointer
5574wasmtime_heaptype_union_t = wasmtime_heaptype_union
5576class wasmtime_heaptype(ctypes.Structure):
5577 _fields_ = [
5578 ("kind", wasmtime_heaptype_kind_t),
5579 ("of", wasmtime_heaptype_union_t),
5580 ]
5581 kind: wasmtime_heaptype_kind_t
5582 of: wasmtime_heaptype_union_t
5584wasmtime_heaptype_t = wasmtime_heaptype
5586_wasmtime_heaptype_clone = dll.wasmtime_heaptype_clone
5587_wasmtime_heaptype_clone.restype = None
5588_wasmtime_heaptype_clone.argtypes = [ctypes.POINTER(wasmtime_heaptype_t), ctypes.POINTER(wasmtime_heaptype_t)]
5589def wasmtime_heaptype_clone(ty: Any, out: Any) -> None:
5590 return _wasmtime_heaptype_clone(ty, out) # type: ignore
5592_wasmtime_heaptype_delete = dll.wasmtime_heaptype_delete
5593_wasmtime_heaptype_delete.restype = None
5594_wasmtime_heaptype_delete.argtypes = [ctypes.POINTER(wasmtime_heaptype_t)]
5595def wasmtime_heaptype_delete(ty: Any) -> None:
5596 return _wasmtime_heaptype_delete(ty) # type: ignore
5598class wasmtime_reftype(ctypes.Structure):
5599 _fields_ = [
5600 ("nullable", ctypes.c_bool),
5601 ("heaptype", wasmtime_heaptype_t),
5602 ]
5603 nullable: bool
5604 heaptype: wasmtime_heaptype_t
5606wasmtime_reftype_t = wasmtime_reftype
5608_wasmtime_reftype_clone = dll.wasmtime_reftype_clone
5609_wasmtime_reftype_clone.restype = None
5610_wasmtime_reftype_clone.argtypes = [ctypes.POINTER(wasmtime_reftype_t), ctypes.POINTER(wasmtime_reftype_t)]
5611def wasmtime_reftype_clone(ty: Any, out: Any) -> None:
5612 return _wasmtime_reftype_clone(ty, out) # type: ignore
5614_wasmtime_reftype_delete = dll.wasmtime_reftype_delete
5615_wasmtime_reftype_delete.restype = None
5616_wasmtime_reftype_delete.argtypes = [ctypes.POINTER(wasmtime_reftype_t)]
5617def wasmtime_reftype_delete(ty: Any) -> None:
5618 return _wasmtime_reftype_delete(ty) # type: ignore
5620wasmtime_valtype_kind_t = ctypes.c_uint8
5622class wasmtime_valtype(ctypes.Structure):
5623 _fields_ = [
5624 ("kind", wasmtime_valtype_kind_t),
5625 ("reftype", wasmtime_reftype_t),
5626 ]
5627 kind: wasmtime_valtype_kind_t
5628 reftype: wasmtime_reftype_t
5630wasmtime_valtype_t = wasmtime_valtype
5632_wasmtime_valtype_new = dll.wasmtime_valtype_new
5633_wasmtime_valtype_new.restype = None
5634_wasmtime_valtype_new.argtypes = [ctypes.POINTER(wasm_valtype_t), ctypes.POINTER(wasmtime_valtype_t)]
5635def wasmtime_valtype_new(ty: Any, out: Any) -> None:
5636 return _wasmtime_valtype_new(ty, out) # type: ignore
5638_wasmtime_valtype_clone = dll.wasmtime_valtype_clone
5639_wasmtime_valtype_clone.restype = None
5640_wasmtime_valtype_clone.argtypes = [ctypes.POINTER(wasmtime_valtype_t), ctypes.POINTER(wasmtime_valtype_t)]
5641def wasmtime_valtype_clone(ty: Any, out: Any) -> None:
5642 return _wasmtime_valtype_clone(ty, out) # type: ignore
5644_wasmtime_valtype_delete = dll.wasmtime_valtype_delete
5645_wasmtime_valtype_delete.restype = None
5646_wasmtime_valtype_delete.argtypes = [ctypes.POINTER(wasmtime_valtype_t)]
5647def wasmtime_valtype_delete(ty: Any) -> None:
5648 return _wasmtime_valtype_delete(ty) # type: ignore
5650_wasmtime_valtype_to_wasm = dll.wasmtime_valtype_to_wasm
5651_wasmtime_valtype_to_wasm.restype = ctypes.POINTER(wasm_valtype_t)
5652_wasmtime_valtype_to_wasm.argtypes = [ctypes.POINTER(wasm_engine_t), ctypes.POINTER(wasmtime_valtype_t)]
5653def wasmtime_valtype_to_wasm(engine: Any, ty: Any) -> ctypes._Pointer:
5654 return _wasmtime_valtype_to_wasm(engine, ty) # type: ignore
5656_wasmtime_wat2wasm = dll.wasmtime_wat2wasm
5657_wasmtime_wat2wasm.restype = ctypes.POINTER(wasmtime_error_t)
5658_wasmtime_wat2wasm.argtypes = [ctypes.POINTER(ctypes.c_char), ctypes.c_size_t, ctypes.POINTER(wasm_byte_vec_t)]
5659def wasmtime_wat2wasm(wat: Any, wat_len: Any, ret: Any) -> ctypes._Pointer:
5660 return _wasmtime_wat2wasm(wat, wat_len, ret) # type: ignore