Coverage for wasmtime/_bindings.py: 89%
4328 statements
« prev ^ index » next coverage.py v7.11.3, created at 2026-11-20 16:34 +0000
« prev ^ index » next coverage.py v7.11.3, created at 2026-11-20 16:34 +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
2058wasi_file_perms = ctypes.c_size_t
2060_wasi_config_preopen_dir = dll.wasi_config_preopen_dir
2061_wasi_config_preopen_dir.restype = ctypes.c_bool
2062_wasi_config_preopen_dir.argtypes = [ctypes.POINTER(wasi_config_t), ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_char), ctypes.c_bool]
2063def wasi_config_preopen_dir(config: Any, host_path: Any, guest_path: Any, fs_mutable: Any) -> bool:
2064 return _wasi_config_preopen_dir(config, host_path, guest_path, fs_mutable) # type: ignore
2066class wasmtime_error(ctypes.Structure):
2067 pass
2069wasmtime_error_t = wasmtime_error
2071_wasmtime_error_new = dll.wasmtime_error_new
2072_wasmtime_error_new.restype = ctypes.POINTER(wasmtime_error_t)
2073_wasmtime_error_new.argtypes = [ctypes.POINTER(ctypes.c_char)]
2074def wasmtime_error_new(arg0: Any) -> ctypes._Pointer:
2075 return _wasmtime_error_new(arg0) # type: ignore
2077_wasmtime_error_delete = dll.wasmtime_error_delete
2078_wasmtime_error_delete.restype = None
2079_wasmtime_error_delete.argtypes = [ctypes.POINTER(wasmtime_error_t)]
2080def wasmtime_error_delete(error: Any) -> None:
2081 return _wasmtime_error_delete(error) # type: ignore
2083_wasmtime_error_message = dll.wasmtime_error_message
2084_wasmtime_error_message.restype = None
2085_wasmtime_error_message.argtypes = [ctypes.POINTER(wasmtime_error_t), ctypes.POINTER(wasm_name_t)]
2086def wasmtime_error_message(error: Any, message: Any) -> None:
2087 return _wasmtime_error_message(error, message) # type: ignore
2089_wasmtime_error_exit_status = dll.wasmtime_error_exit_status
2090_wasmtime_error_exit_status.restype = ctypes.c_bool
2091_wasmtime_error_exit_status.argtypes = [ctypes.POINTER(wasmtime_error_t), ctypes.POINTER(ctypes.c_int)]
2092def wasmtime_error_exit_status(arg0: Any, status: Any) -> bool:
2093 return _wasmtime_error_exit_status(arg0, status) # type: ignore
2095_wasmtime_error_wasm_trace = dll.wasmtime_error_wasm_trace
2096_wasmtime_error_wasm_trace.restype = None
2097_wasmtime_error_wasm_trace.argtypes = [ctypes.POINTER(wasmtime_error_t), ctypes.POINTER(wasm_frame_vec_t)]
2098def wasmtime_error_wasm_trace(arg0: Any, out: Any) -> None:
2099 return _wasmtime_error_wasm_trace(arg0, out) # type: ignore
2101wasmtime_storage_type_kind_t = ctypes.c_uint8
2103class wasmtime_storage_type(ctypes.Structure):
2104 _fields_ = [
2105 ("kind", wasmtime_storage_type_kind_t),
2106 ("valtype", ctypes.POINTER(wasm_valtype_t)),
2107 ]
2108 kind: wasmtime_storage_type_kind_t
2109 valtype: ctypes._Pointer
2111wasmtime_storage_type_t = wasmtime_storage_type
2113_wasmtime_storage_type_clone = dll.wasmtime_storage_type_clone
2114_wasmtime_storage_type_clone.restype = None
2115_wasmtime_storage_type_clone.argtypes = [ctypes.POINTER(wasmtime_storage_type_t), ctypes.POINTER(wasmtime_storage_type_t)]
2116def wasmtime_storage_type_clone(storage: Any, out: Any) -> None:
2117 return _wasmtime_storage_type_clone(storage, out) # type: ignore
2119_wasmtime_storage_type_delete = dll.wasmtime_storage_type_delete
2120_wasmtime_storage_type_delete.restype = None
2121_wasmtime_storage_type_delete.argtypes = [ctypes.POINTER(wasmtime_storage_type_t)]
2122def wasmtime_storage_type_delete(storage: Any) -> None:
2123 return _wasmtime_storage_type_delete(storage) # type: ignore
2125class wasmtime_field_type(ctypes.Structure):
2126 _fields_ = [
2127 ("mutable_", ctypes.c_bool),
2128 ("storage", wasmtime_storage_type_t),
2129 ]
2130 mutable_: bool
2131 storage: wasmtime_storage_type_t
2133wasmtime_field_type_t = wasmtime_field_type
2135_wasmtime_field_type_clone = dll.wasmtime_field_type_clone
2136_wasmtime_field_type_clone.restype = None
2137_wasmtime_field_type_clone.argtypes = [ctypes.POINTER(wasmtime_field_type_t), ctypes.POINTER(wasmtime_field_type_t)]
2138def wasmtime_field_type_clone(field: Any, out: Any) -> None:
2139 return _wasmtime_field_type_clone(field, out) # type: ignore
2141_wasmtime_field_type_delete = dll.wasmtime_field_type_delete
2142_wasmtime_field_type_delete.restype = None
2143_wasmtime_field_type_delete.argtypes = [ctypes.POINTER(wasmtime_field_type_t)]
2144def wasmtime_field_type_delete(field: Any) -> None:
2145 return _wasmtime_field_type_delete(field) # type: ignore
2147class wasmtime_struct_type(ctypes.Structure):
2148 pass
2150wasmtime_struct_type_t = wasmtime_struct_type
2152_wasmtime_struct_type_new = dll.wasmtime_struct_type_new
2153_wasmtime_struct_type_new.restype = ctypes.POINTER(wasmtime_error_t)
2154_wasmtime_struct_type_new.argtypes = [ctypes.POINTER(wasm_engine_t), ctypes.POINTER(wasmtime_field_type_t), ctypes.c_size_t, ctypes.POINTER(ctypes.POINTER(wasmtime_struct_type_t))]
2155def wasmtime_struct_type_new(engine: Any, fields: Any, nfields: Any, out: Any) -> ctypes._Pointer:
2156 return _wasmtime_struct_type_new(engine, fields, nfields, out) # type: ignore
2158_wasmtime_struct_type_copy = dll.wasmtime_struct_type_copy
2159_wasmtime_struct_type_copy.restype = ctypes.POINTER(wasmtime_struct_type_t)
2160_wasmtime_struct_type_copy.argtypes = [ctypes.POINTER(wasmtime_struct_type_t)]
2161def wasmtime_struct_type_copy(ty: Any) -> ctypes._Pointer:
2162 return _wasmtime_struct_type_copy(ty) # type: ignore
2164_wasmtime_struct_type_delete = dll.wasmtime_struct_type_delete
2165_wasmtime_struct_type_delete.restype = None
2166_wasmtime_struct_type_delete.argtypes = [ctypes.POINTER(wasmtime_struct_type_t)]
2167def wasmtime_struct_type_delete(ty: Any) -> None:
2168 return _wasmtime_struct_type_delete(ty) # type: ignore
2170_wasmtime_struct_type_num_fields = dll.wasmtime_struct_type_num_fields
2171_wasmtime_struct_type_num_fields.restype = ctypes.c_size_t
2172_wasmtime_struct_type_num_fields.argtypes = [ctypes.POINTER(wasmtime_struct_type_t)]
2173def wasmtime_struct_type_num_fields(ty: Any) -> int:
2174 return _wasmtime_struct_type_num_fields(ty) # type: ignore
2176_wasmtime_struct_type_field = dll.wasmtime_struct_type_field
2177_wasmtime_struct_type_field.restype = ctypes.c_bool
2178_wasmtime_struct_type_field.argtypes = [ctypes.POINTER(wasmtime_struct_type_t), ctypes.c_size_t, ctypes.POINTER(wasmtime_field_type_t)]
2179def wasmtime_struct_type_field(ty: Any, index: Any, out: Any) -> bool:
2180 return _wasmtime_struct_type_field(ty, index, out) # type: ignore
2182class wasmtime_array_type(ctypes.Structure):
2183 pass
2185wasmtime_array_type_t = wasmtime_array_type
2187_wasmtime_array_type_new = dll.wasmtime_array_type_new
2188_wasmtime_array_type_new.restype = ctypes.POINTER(wasmtime_array_type_t)
2189_wasmtime_array_type_new.argtypes = [ctypes.POINTER(wasm_engine_t), ctypes.POINTER(wasmtime_field_type_t)]
2190def wasmtime_array_type_new(engine: Any, field: Any) -> ctypes._Pointer:
2191 return _wasmtime_array_type_new(engine, field) # type: ignore
2193_wasmtime_array_type_copy = dll.wasmtime_array_type_copy
2194_wasmtime_array_type_copy.restype = ctypes.POINTER(wasmtime_array_type_t)
2195_wasmtime_array_type_copy.argtypes = [ctypes.POINTER(wasmtime_array_type_t)]
2196def wasmtime_array_type_copy(ty: Any) -> ctypes._Pointer:
2197 return _wasmtime_array_type_copy(ty) # type: ignore
2199_wasmtime_array_type_delete = dll.wasmtime_array_type_delete
2200_wasmtime_array_type_delete.restype = None
2201_wasmtime_array_type_delete.argtypes = [ctypes.POINTER(wasmtime_array_type_t)]
2202def wasmtime_array_type_delete(ty: Any) -> None:
2203 return _wasmtime_array_type_delete(ty) # type: ignore
2205_wasmtime_array_type_element = dll.wasmtime_array_type_element
2206_wasmtime_array_type_element.restype = None
2207_wasmtime_array_type_element.argtypes = [ctypes.POINTER(wasmtime_array_type_t), ctypes.POINTER(wasmtime_field_type_t)]
2208def wasmtime_array_type_element(ty: Any, out: Any) -> None:
2209 return _wasmtime_array_type_element(ty, out) # type: ignore
2211class wasmtime_exn_type(ctypes.Structure):
2212 pass
2214wasmtime_exn_type_t = wasmtime_exn_type
2216_wasmtime_exn_type_new = dll.wasmtime_exn_type_new
2217_wasmtime_exn_type_new.restype = ctypes.POINTER(wasmtime_error_t)
2218_wasmtime_exn_type_new.argtypes = [ctypes.POINTER(wasm_engine_t), ctypes.POINTER(wasm_valtype_vec_t), ctypes.POINTER(ctypes.POINTER(wasmtime_exn_type_t))]
2219def wasmtime_exn_type_new(engine: Any, params: Any, out: Any) -> ctypes._Pointer:
2220 return _wasmtime_exn_type_new(engine, params, out) # type: ignore
2222_wasmtime_exn_type_delete = dll.wasmtime_exn_type_delete
2223_wasmtime_exn_type_delete.restype = None
2224_wasmtime_exn_type_delete.argtypes = [ctypes.POINTER(wasmtime_exn_type_t)]
2225def wasmtime_exn_type_delete(ty: Any) -> None:
2226 return _wasmtime_exn_type_delete(ty) # type: ignore
2228_wasmtime_exn_type_copy = dll.wasmtime_exn_type_copy
2229_wasmtime_exn_type_copy.restype = ctypes.POINTER(wasmtime_exn_type_t)
2230_wasmtime_exn_type_copy.argtypes = [ctypes.POINTER(wasmtime_exn_type_t)]
2231def wasmtime_exn_type_copy(ty: Any) -> ctypes._Pointer:
2232 return _wasmtime_exn_type_copy(ty) # type: ignore
2234_wasmtime_exn_type_tag_type = dll.wasmtime_exn_type_tag_type
2235_wasmtime_exn_type_tag_type.restype = ctypes.POINTER(wasm_tagtype_t)
2236_wasmtime_exn_type_tag_type.argtypes = [ctypes.POINTER(wasmtime_exn_type_t)]
2237def wasmtime_exn_type_tag_type(ty: Any) -> ctypes._Pointer:
2238 return _wasmtime_exn_type_tag_type(ty) # type: ignore
2240_wasmtime_wasm_valtype_v128 = dll.wasmtime_wasm_valtype_v128
2241_wasmtime_wasm_valtype_v128.restype = ctypes.POINTER(wasm_valtype_t)
2242_wasmtime_wasm_valtype_v128.argtypes = []
2243def wasmtime_wasm_valtype_v128() -> ctypes._Pointer:
2244 return _wasmtime_wasm_valtype_v128() # type: ignore
2246_wasmtime_wasm_valtype_equal = dll.wasmtime_wasm_valtype_equal
2247_wasmtime_wasm_valtype_equal.restype = ctypes.c_bool
2248_wasmtime_wasm_valtype_equal.argtypes = [ctypes.POINTER(wasm_valtype_t), ctypes.POINTER(wasm_valtype_t)]
2249def wasmtime_wasm_valtype_equal(a: Any, b: Any) -> bool:
2250 return _wasmtime_wasm_valtype_equal(a, b) # type: ignore
2252wasmtime_heaptype_kind_t = ctypes.c_uint8
2254class wasmtime_heaptype_union(ctypes.Union):
2255 _fields_ = [
2256 ("concrete_func", ctypes.POINTER(wasm_functype_t)),
2257 ("concrete_array", ctypes.POINTER(wasmtime_array_type_t)),
2258 ("concrete_struct", ctypes.POINTER(wasmtime_struct_type_t)),
2259 ]
2260 concrete_func: ctypes._Pointer
2261 concrete_array: ctypes._Pointer
2262 concrete_struct: ctypes._Pointer
2264wasmtime_heaptype_union_t = wasmtime_heaptype_union
2266class wasmtime_heaptype(ctypes.Structure):
2267 _fields_ = [
2268 ("kind", wasmtime_heaptype_kind_t),
2269 ("of", wasmtime_heaptype_union_t),
2270 ]
2271 kind: wasmtime_heaptype_kind_t
2272 of: wasmtime_heaptype_union_t
2274wasmtime_heaptype_t = wasmtime_heaptype
2276_wasmtime_heaptype_clone = dll.wasmtime_heaptype_clone
2277_wasmtime_heaptype_clone.restype = None
2278_wasmtime_heaptype_clone.argtypes = [ctypes.POINTER(wasmtime_heaptype_t), ctypes.POINTER(wasmtime_heaptype_t)]
2279def wasmtime_heaptype_clone(ty: Any, out: Any) -> None:
2280 return _wasmtime_heaptype_clone(ty, out) # type: ignore
2282_wasmtime_heaptype_delete = dll.wasmtime_heaptype_delete
2283_wasmtime_heaptype_delete.restype = None
2284_wasmtime_heaptype_delete.argtypes = [ctypes.POINTER(wasmtime_heaptype_t)]
2285def wasmtime_heaptype_delete(ty: Any) -> None:
2286 return _wasmtime_heaptype_delete(ty) # type: ignore
2288class wasmtime_reftype(ctypes.Structure):
2289 _fields_ = [
2290 ("nullable", ctypes.c_bool),
2291 ("heaptype", wasmtime_heaptype_t),
2292 ]
2293 nullable: bool
2294 heaptype: wasmtime_heaptype_t
2296wasmtime_reftype_t = wasmtime_reftype
2298_wasmtime_reftype_clone = dll.wasmtime_reftype_clone
2299_wasmtime_reftype_clone.restype = None
2300_wasmtime_reftype_clone.argtypes = [ctypes.POINTER(wasmtime_reftype_t), ctypes.POINTER(wasmtime_reftype_t)]
2301def wasmtime_reftype_clone(ty: Any, out: Any) -> None:
2302 return _wasmtime_reftype_clone(ty, out) # type: ignore
2304_wasmtime_reftype_delete = dll.wasmtime_reftype_delete
2305_wasmtime_reftype_delete.restype = None
2306_wasmtime_reftype_delete.argtypes = [ctypes.POINTER(wasmtime_reftype_t)]
2307def wasmtime_reftype_delete(ty: Any) -> None:
2308 return _wasmtime_reftype_delete(ty) # type: ignore
2310wasmtime_valtype_kind_t = ctypes.c_uint8
2312class wasmtime_valtype(ctypes.Structure):
2313 _fields_ = [
2314 ("kind", wasmtime_valtype_kind_t),
2315 ("reftype", wasmtime_reftype_t),
2316 ]
2317 kind: wasmtime_valtype_kind_t
2318 reftype: wasmtime_reftype_t
2320wasmtime_valtype_t = wasmtime_valtype
2322_wasmtime_valtype_new = dll.wasmtime_valtype_new
2323_wasmtime_valtype_new.restype = None
2324_wasmtime_valtype_new.argtypes = [ctypes.POINTER(wasm_valtype_t), ctypes.POINTER(wasmtime_valtype_t)]
2325def wasmtime_valtype_new(ty: Any, out: Any) -> None:
2326 return _wasmtime_valtype_new(ty, out) # type: ignore
2328_wasmtime_valtype_clone = dll.wasmtime_valtype_clone
2329_wasmtime_valtype_clone.restype = None
2330_wasmtime_valtype_clone.argtypes = [ctypes.POINTER(wasmtime_valtype_t), ctypes.POINTER(wasmtime_valtype_t)]
2331def wasmtime_valtype_clone(ty: Any, out: Any) -> None:
2332 return _wasmtime_valtype_clone(ty, out) # type: ignore
2334_wasmtime_valtype_delete = dll.wasmtime_valtype_delete
2335_wasmtime_valtype_delete.restype = None
2336_wasmtime_valtype_delete.argtypes = [ctypes.POINTER(wasmtime_valtype_t)]
2337def wasmtime_valtype_delete(ty: Any) -> None:
2338 return _wasmtime_valtype_delete(ty) # type: ignore
2340_wasmtime_valtype_to_wasm = dll.wasmtime_valtype_to_wasm
2341_wasmtime_valtype_to_wasm.restype = ctypes.POINTER(wasm_valtype_t)
2342_wasmtime_valtype_to_wasm.argtypes = [ctypes.POINTER(wasm_engine_t), ctypes.POINTER(wasmtime_valtype_t)]
2343def wasmtime_valtype_to_wasm(engine: Any, ty: Any) -> ctypes._Pointer:
2344 return _wasmtime_valtype_to_wasm(engine, ty) # type: ignore
2346class wasmtime_module(ctypes.Structure):
2347 pass
2349wasmtime_module_t = wasmtime_module
2351_wasmtime_module_new = dll.wasmtime_module_new
2352_wasmtime_module_new.restype = ctypes.POINTER(wasmtime_error_t)
2353_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))]
2354def wasmtime_module_new(engine: Any, wasm: Any, wasm_len: Any, ret: Any) -> ctypes._Pointer:
2355 return _wasmtime_module_new(engine, wasm, wasm_len, ret) # type: ignore
2357_wasmtime_module_delete = dll.wasmtime_module_delete
2358_wasmtime_module_delete.restype = None
2359_wasmtime_module_delete.argtypes = [ctypes.POINTER(wasmtime_module_t)]
2360def wasmtime_module_delete(m: Any) -> None:
2361 return _wasmtime_module_delete(m) # type: ignore
2363_wasmtime_module_clone = dll.wasmtime_module_clone
2364_wasmtime_module_clone.restype = ctypes.POINTER(wasmtime_module_t)
2365_wasmtime_module_clone.argtypes = [ctypes.POINTER(wasmtime_module_t)]
2366def wasmtime_module_clone(m: Any) -> ctypes._Pointer:
2367 return _wasmtime_module_clone(m) # type: ignore
2369_wasmtime_module_imports = dll.wasmtime_module_imports
2370_wasmtime_module_imports.restype = None
2371_wasmtime_module_imports.argtypes = [ctypes.POINTER(wasmtime_module_t), ctypes.POINTER(wasm_importtype_vec_t)]
2372def wasmtime_module_imports(module: Any, out: Any) -> None:
2373 return _wasmtime_module_imports(module, out) # type: ignore
2375_wasmtime_module_exports = dll.wasmtime_module_exports
2376_wasmtime_module_exports.restype = None
2377_wasmtime_module_exports.argtypes = [ctypes.POINTER(wasmtime_module_t), ctypes.POINTER(wasm_exporttype_vec_t)]
2378def wasmtime_module_exports(module: Any, out: Any) -> None:
2379 return _wasmtime_module_exports(module, out) # type: ignore
2381_wasmtime_module_validate = dll.wasmtime_module_validate
2382_wasmtime_module_validate.restype = ctypes.POINTER(wasmtime_error_t)
2383_wasmtime_module_validate.argtypes = [ctypes.POINTER(wasm_engine_t), ctypes.POINTER(ctypes.c_uint8), ctypes.c_size_t]
2384def wasmtime_module_validate(engine: Any, wasm: Any, wasm_len: Any) -> ctypes._Pointer:
2385 return _wasmtime_module_validate(engine, wasm, wasm_len) # type: ignore
2387_wasmtime_module_serialize = dll.wasmtime_module_serialize
2388_wasmtime_module_serialize.restype = ctypes.POINTER(wasmtime_error_t)
2389_wasmtime_module_serialize.argtypes = [ctypes.POINTER(wasmtime_module_t), ctypes.POINTER(wasm_byte_vec_t)]
2390def wasmtime_module_serialize(module: Any, ret: Any) -> ctypes._Pointer:
2391 return _wasmtime_module_serialize(module, ret) # type: ignore
2393_wasmtime_module_deserialize = dll.wasmtime_module_deserialize
2394_wasmtime_module_deserialize.restype = ctypes.POINTER(wasmtime_error_t)
2395_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))]
2396def wasmtime_module_deserialize(engine: Any, bytes: Any, bytes_len: Any, ret: Any) -> ctypes._Pointer:
2397 return _wasmtime_module_deserialize(engine, bytes, bytes_len, ret) # type: ignore
2399_wasmtime_module_deserialize_file = dll.wasmtime_module_deserialize_file
2400_wasmtime_module_deserialize_file.restype = ctypes.POINTER(wasmtime_error_t)
2401_wasmtime_module_deserialize_file.argtypes = [ctypes.POINTER(wasm_engine_t), ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.POINTER(wasmtime_module_t))]
2402def wasmtime_module_deserialize_file(engine: Any, path: Any, ret: Any) -> ctypes._Pointer:
2403 return _wasmtime_module_deserialize_file(engine, path, ret) # type: ignore
2405_wasmtime_module_image_range = dll.wasmtime_module_image_range
2406_wasmtime_module_image_range.restype = None
2407_wasmtime_module_image_range.argtypes = [ctypes.POINTER(wasmtime_module_t), ctypes.POINTER(ctypes.c_void_p), ctypes.POINTER(ctypes.c_void_p)]
2408def wasmtime_module_image_range(module: Any, start: Any, end: Any) -> None:
2409 return _wasmtime_module_image_range(module, start, end) # type: ignore
2411class wasmtime_sharedmemory(ctypes.Structure):
2412 pass
2414wasmtime_sharedmemory_t = wasmtime_sharedmemory
2416_wasmtime_sharedmemory_new = dll.wasmtime_sharedmemory_new
2417_wasmtime_sharedmemory_new.restype = ctypes.POINTER(wasmtime_error_t)
2418_wasmtime_sharedmemory_new.argtypes = [ctypes.POINTER(wasm_engine_t), ctypes.POINTER(wasm_memorytype_t), ctypes.POINTER(ctypes.POINTER(wasmtime_sharedmemory_t))]
2419def wasmtime_sharedmemory_new(engine: Any, ty: Any, ret: Any) -> ctypes._Pointer:
2420 return _wasmtime_sharedmemory_new(engine, ty, ret) # type: ignore
2422_wasmtime_sharedmemory_delete = dll.wasmtime_sharedmemory_delete
2423_wasmtime_sharedmemory_delete.restype = None
2424_wasmtime_sharedmemory_delete.argtypes = [ctypes.POINTER(wasmtime_sharedmemory_t)]
2425def wasmtime_sharedmemory_delete(memory: Any) -> None:
2426 return _wasmtime_sharedmemory_delete(memory) # type: ignore
2428_wasmtime_sharedmemory_clone = dll.wasmtime_sharedmemory_clone
2429_wasmtime_sharedmemory_clone.restype = ctypes.POINTER(wasmtime_sharedmemory_t)
2430_wasmtime_sharedmemory_clone.argtypes = [ctypes.POINTER(wasmtime_sharedmemory_t)]
2431def wasmtime_sharedmemory_clone(memory: Any) -> ctypes._Pointer:
2432 return _wasmtime_sharedmemory_clone(memory) # type: ignore
2434_wasmtime_sharedmemory_type = dll.wasmtime_sharedmemory_type
2435_wasmtime_sharedmemory_type.restype = ctypes.POINTER(wasm_memorytype_t)
2436_wasmtime_sharedmemory_type.argtypes = [ctypes.POINTER(wasmtime_sharedmemory_t)]
2437def wasmtime_sharedmemory_type(memory: Any) -> ctypes._Pointer:
2438 return _wasmtime_sharedmemory_type(memory) # type: ignore
2440_wasmtime_sharedmemory_data = dll.wasmtime_sharedmemory_data
2441_wasmtime_sharedmemory_data.restype = ctypes.POINTER(ctypes.c_uint8)
2442_wasmtime_sharedmemory_data.argtypes = [ctypes.POINTER(wasmtime_sharedmemory_t)]
2443def wasmtime_sharedmemory_data(memory: Any) -> ctypes._Pointer:
2444 return _wasmtime_sharedmemory_data(memory) # type: ignore
2446_wasmtime_sharedmemory_data_size = dll.wasmtime_sharedmemory_data_size
2447_wasmtime_sharedmemory_data_size.restype = ctypes.c_size_t
2448_wasmtime_sharedmemory_data_size.argtypes = [ctypes.POINTER(wasmtime_sharedmemory_t)]
2449def wasmtime_sharedmemory_data_size(memory: Any) -> int:
2450 return _wasmtime_sharedmemory_data_size(memory) # type: ignore
2452_wasmtime_sharedmemory_size = dll.wasmtime_sharedmemory_size
2453_wasmtime_sharedmemory_size.restype = ctypes.c_uint64
2454_wasmtime_sharedmemory_size.argtypes = [ctypes.POINTER(wasmtime_sharedmemory_t)]
2455def wasmtime_sharedmemory_size(memory: Any) -> int:
2456 return _wasmtime_sharedmemory_size(memory) # type: ignore
2458_wasmtime_sharedmemory_grow = dll.wasmtime_sharedmemory_grow
2459_wasmtime_sharedmemory_grow.restype = ctypes.POINTER(wasmtime_error_t)
2460_wasmtime_sharedmemory_grow.argtypes = [ctypes.POINTER(wasmtime_sharedmemory_t), ctypes.c_uint64, ctypes.POINTER(ctypes.c_uint64)]
2461def wasmtime_sharedmemory_grow(memory: Any, delta: Any, prev_size: Any) -> ctypes._Pointer:
2462 return _wasmtime_sharedmemory_grow(memory, delta, prev_size) # type: ignore
2464class wasmtime_store(ctypes.Structure):
2465 pass
2467wasmtime_store_t = wasmtime_store
2469class wasmtime_context(ctypes.Structure):
2470 pass
2472wasmtime_context_t = wasmtime_context
2474_wasmtime_store_new = dll.wasmtime_store_new
2475_wasmtime_store_new.restype = ctypes.POINTER(wasmtime_store_t)
2476_wasmtime_store_new.argtypes = [ctypes.POINTER(wasm_engine_t), ctypes.c_void_p, ctypes.CFUNCTYPE(None, ctypes.c_void_p)]
2477def wasmtime_store_new(engine: Any, data: Any, finalizer: Any) -> ctypes._Pointer:
2478 return _wasmtime_store_new(engine, data, finalizer) # type: ignore
2480_wasmtime_store_context = dll.wasmtime_store_context
2481_wasmtime_store_context.restype = ctypes.POINTER(wasmtime_context_t)
2482_wasmtime_store_context.argtypes = [ctypes.POINTER(wasmtime_store_t)]
2483def wasmtime_store_context(store: Any) -> ctypes._Pointer:
2484 return _wasmtime_store_context(store) # type: ignore
2486_wasmtime_store_limiter = dll.wasmtime_store_limiter
2487_wasmtime_store_limiter.restype = None
2488_wasmtime_store_limiter.argtypes = [ctypes.POINTER(wasmtime_store_t), ctypes.c_int64, ctypes.c_int64, ctypes.c_int64, ctypes.c_int64, ctypes.c_int64]
2489def wasmtime_store_limiter(store: Any, memory_size: Any, table_elements: Any, instances: Any, tables: Any, memories: Any) -> None:
2490 return _wasmtime_store_limiter(store, memory_size, table_elements, instances, tables, memories) # type: ignore
2492_wasmtime_store_delete = dll.wasmtime_store_delete
2493_wasmtime_store_delete.restype = None
2494_wasmtime_store_delete.argtypes = [ctypes.POINTER(wasmtime_store_t)]
2495def wasmtime_store_delete(store: Any) -> None:
2496 return _wasmtime_store_delete(store) # type: ignore
2498_wasmtime_context_get_data = dll.wasmtime_context_get_data
2499_wasmtime_context_get_data.restype = ctypes.c_void_p
2500_wasmtime_context_get_data.argtypes = [ctypes.POINTER(wasmtime_context_t)]
2501def wasmtime_context_get_data(context: Any) -> ctypes._Pointer:
2502 return _wasmtime_context_get_data(context) # type: ignore
2504_wasmtime_context_set_data = dll.wasmtime_context_set_data
2505_wasmtime_context_set_data.restype = None
2506_wasmtime_context_set_data.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.c_void_p]
2507def wasmtime_context_set_data(context: Any, data: Any) -> None:
2508 return _wasmtime_context_set_data(context, data) # type: ignore
2510_wasmtime_context_gc = dll.wasmtime_context_gc
2511_wasmtime_context_gc.restype = ctypes.POINTER(wasmtime_error_t)
2512_wasmtime_context_gc.argtypes = [ctypes.POINTER(wasmtime_context_t)]
2513def wasmtime_context_gc(context: Any) -> ctypes._Pointer:
2514 return _wasmtime_context_gc(context) # type: ignore
2516_wasmtime_context_set_fuel = dll.wasmtime_context_set_fuel
2517_wasmtime_context_set_fuel.restype = ctypes.POINTER(wasmtime_error_t)
2518_wasmtime_context_set_fuel.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.c_uint64]
2519def wasmtime_context_set_fuel(store: Any, fuel: Any) -> ctypes._Pointer:
2520 return _wasmtime_context_set_fuel(store, fuel) # type: ignore
2522_wasmtime_context_get_fuel = dll.wasmtime_context_get_fuel
2523_wasmtime_context_get_fuel.restype = ctypes.POINTER(wasmtime_error_t)
2524_wasmtime_context_get_fuel.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(ctypes.c_uint64)]
2525def wasmtime_context_get_fuel(context: Any, fuel: Any) -> ctypes._Pointer:
2526 return _wasmtime_context_get_fuel(context, fuel) # type: ignore
2528_wasmtime_context_set_wasi = dll.wasmtime_context_set_wasi
2529_wasmtime_context_set_wasi.restype = ctypes.POINTER(wasmtime_error_t)
2530_wasmtime_context_set_wasi.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasi_config_t)]
2531def wasmtime_context_set_wasi(context: Any, wasi: Any) -> ctypes._Pointer:
2532 return _wasmtime_context_set_wasi(context, wasi) # type: ignore
2534_wasmtime_context_set_wasi_http = dll.wasmtime_context_set_wasi_http
2535_wasmtime_context_set_wasi_http.restype = None
2536_wasmtime_context_set_wasi_http.argtypes = [ctypes.POINTER(wasmtime_context_t)]
2537def wasmtime_context_set_wasi_http(context: Any) -> None:
2538 return _wasmtime_context_set_wasi_http(context) # type: ignore
2540_wasmtime_context_set_epoch_deadline = dll.wasmtime_context_set_epoch_deadline
2541_wasmtime_context_set_epoch_deadline.restype = None
2542_wasmtime_context_set_epoch_deadline.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.c_uint64]
2543def wasmtime_context_set_epoch_deadline(context: Any, ticks_beyond_current: Any) -> None:
2544 return _wasmtime_context_set_epoch_deadline(context, ticks_beyond_current) # type: ignore
2546wasmtime_update_deadline_kind_t = ctypes.c_uint8
2548_wasmtime_store_epoch_deadline_callback = dll.wasmtime_store_epoch_deadline_callback
2549_wasmtime_store_epoch_deadline_callback.restype = None
2550_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)]
2551def wasmtime_store_epoch_deadline_callback(store: Any, func: Any, data: Any, finalizer: Any) -> None:
2552 return _wasmtime_store_epoch_deadline_callback(store, func, data, finalizer) # type: ignore
2555class wasmtime_tag_anon_0(ctypes.Structure):
2556 _fields_ = [
2557 ("store_id", ctypes.c_uint64),
2558 ("__private1", ctypes.c_uint32),
2559 ]
2560 store_id: int
2561 __private1: int
2562class wasmtime_tag(ctypes.Structure):
2563 _fields_ = [
2564 ("_anon_1", wasmtime_tag_anon_0),
2565 ("__private2", ctypes.c_uint32),
2566 ]
2567 _anon_1: wasmtime_tag_anon_0
2568 __private2: int
2570wasmtime_tag_t = wasmtime_tag
2572_wasmtime_tag_new = dll.wasmtime_tag_new
2573_wasmtime_tag_new.restype = ctypes.POINTER(wasmtime_error_t)
2574_wasmtime_tag_new.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasm_tagtype_t), ctypes.POINTER(wasmtime_tag_t)]
2575def wasmtime_tag_new(store: Any, tt: Any, ret: Any) -> ctypes._Pointer:
2576 return _wasmtime_tag_new(store, tt, ret) # type: ignore
2578_wasmtime_tag_type = dll.wasmtime_tag_type
2579_wasmtime_tag_type.restype = ctypes.POINTER(wasm_tagtype_t)
2580_wasmtime_tag_type.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_tag_t)]
2581def wasmtime_tag_type(store: Any, tag: Any) -> ctypes._Pointer:
2582 return _wasmtime_tag_type(store, tag) # type: ignore
2584_wasmtime_tag_eq = dll.wasmtime_tag_eq
2585_wasmtime_tag_eq.restype = ctypes.c_bool
2586_wasmtime_tag_eq.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_tag_t), ctypes.POINTER(wasmtime_tag_t)]
2587def wasmtime_tag_eq(store: Any, a: Any, b: Any) -> bool:
2588 return _wasmtime_tag_eq(store, a, b) # type: ignore
2590class wasmtime_func(ctypes.Structure):
2591 _fields_ = [
2592 ("store_id", ctypes.c_uint64),
2593 ("__private", ctypes.c_void_p),
2594 ]
2595 store_id: int
2596 __private: ctypes._Pointer
2598wasmtime_func_t = wasmtime_func
2601class wasmtime_table_anon_0(ctypes.Structure):
2602 _fields_ = [
2603 ("store_id", ctypes.c_uint64),
2604 ("__private1", ctypes.c_uint32),
2605 ]
2606 store_id: int
2607 __private1: int
2608class wasmtime_table(ctypes.Structure):
2609 _fields_ = [
2610 ("_anon_1", wasmtime_table_anon_0),
2611 ("__private2", ctypes.c_uint32),
2612 ]
2613 _anon_1: wasmtime_table_anon_0
2614 __private2: int
2616wasmtime_table_t = wasmtime_table
2619class wasmtime_memory_anon_0(ctypes.Structure):
2620 _fields_ = [
2621 ("store_id", ctypes.c_uint64),
2622 ("__private1", ctypes.c_uint32),
2623 ]
2624 store_id: int
2625 __private1: int
2626class wasmtime_memory(ctypes.Structure):
2627 _fields_ = [
2628 ("_anon_1", wasmtime_memory_anon_0),
2629 ("__private2", ctypes.c_uint32),
2630 ]
2631 _anon_1: wasmtime_memory_anon_0
2632 __private2: int
2634wasmtime_memory_t = wasmtime_memory
2636class wasmtime_global(ctypes.Structure):
2637 _fields_ = [
2638 ("store_id", ctypes.c_uint64),
2639 ("__private1", ctypes.c_uint32),
2640 ("__private2", ctypes.c_uint32),
2641 ("__private3", ctypes.c_uint32),
2642 ]
2643 store_id: int
2644 __private1: int
2645 __private2: int
2646 __private3: int
2648wasmtime_global_t = wasmtime_global
2650wasmtime_extern_kind_t = ctypes.c_uint8
2652class wasmtime_extern_union(ctypes.Union):
2653 _fields_ = [
2654 ("func", wasmtime_func_t),
2655 ("global_", wasmtime_global_t),
2656 ("table", wasmtime_table_t),
2657 ("memory", wasmtime_memory_t),
2658 ("sharedmemory", ctypes.POINTER(wasmtime_sharedmemory)),
2659 ("tag", wasmtime_tag_t),
2660 ]
2661 func: wasmtime_func_t
2662 global_: wasmtime_global_t
2663 table: wasmtime_table_t
2664 memory: wasmtime_memory_t
2665 sharedmemory: ctypes._Pointer
2666 tag: wasmtime_tag_t
2668wasmtime_extern_union_t = wasmtime_extern_union
2670class wasmtime_extern(ctypes.Structure):
2671 _fields_ = [
2672 ("kind", wasmtime_extern_kind_t),
2673 ("of", wasmtime_extern_union_t),
2674 ]
2675 kind: wasmtime_extern_kind_t
2676 of: wasmtime_extern_union_t
2678wasmtime_extern_t = wasmtime_extern
2680_wasmtime_extern_delete = dll.wasmtime_extern_delete
2681_wasmtime_extern_delete.restype = None
2682_wasmtime_extern_delete.argtypes = [ctypes.POINTER(wasmtime_extern_t)]
2683def wasmtime_extern_delete(val: Any) -> None:
2684 return _wasmtime_extern_delete(val) # type: ignore
2686_wasmtime_extern_type = dll.wasmtime_extern_type
2687_wasmtime_extern_type.restype = ctypes.POINTER(wasm_externtype_t)
2688_wasmtime_extern_type.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_extern_t)]
2689def wasmtime_extern_type(context: Any, val: Any) -> ctypes._Pointer:
2690 return _wasmtime_extern_type(context, val) # type: ignore
2692wasmtime_valkind_t = ctypes.c_uint8
2694wasmtime_v128 = ctypes.c_uint8 * 16
2696class wasmtime_anyref(ctypes.Structure):
2697 _fields_ = [
2698 ("store_id", ctypes.c_uint64),
2699 ("__private1", ctypes.c_uint32),
2700 ("__private2", ctypes.c_uint32),
2701 ("__private3", ctypes.c_void_p),
2702 ]
2703 store_id: int
2704 __private1: int
2705 __private2: int
2706 __private3: ctypes._Pointer
2708wasmtime_anyref_t = wasmtime_anyref
2710class wasmtime_exnref(ctypes.Structure):
2711 _fields_ = [
2712 ("store_id", ctypes.c_uint64),
2713 ("__private1", ctypes.c_uint32),
2714 ("__private2", ctypes.c_uint32),
2715 ("__private3", ctypes.c_void_p),
2716 ]
2717 store_id: int
2718 __private1: int
2719 __private2: int
2720 __private3: ctypes._Pointer
2722wasmtime_exnref_t = wasmtime_exnref
2724class wasmtime_externref(ctypes.Structure):
2725 _fields_ = [
2726 ("store_id", ctypes.c_uint64),
2727 ("__private1", ctypes.c_uint32),
2728 ("__private2", ctypes.c_uint32),
2729 ("__private3", ctypes.c_void_p),
2730 ]
2731 store_id: int
2732 __private1: int
2733 __private2: int
2734 __private3: ctypes._Pointer
2736wasmtime_externref_t = wasmtime_externref
2738class wasmtime_eqref(ctypes.Structure):
2739 _fields_ = [
2740 ("store_id", ctypes.c_uint64),
2741 ("__private1", ctypes.c_uint32),
2742 ("__private2", ctypes.c_uint32),
2743 ("__private3", ctypes.c_void_p),
2744 ]
2745 store_id: int
2746 __private1: int
2747 __private2: int
2748 __private3: ctypes._Pointer
2750wasmtime_eqref_t = wasmtime_eqref
2752class wasmtime_structref(ctypes.Structure):
2753 _fields_ = [
2754 ("store_id", ctypes.c_uint64),
2755 ("__private1", ctypes.c_uint32),
2756 ("__private2", ctypes.c_uint32),
2757 ("__private3", ctypes.c_void_p),
2758 ]
2759 store_id: int
2760 __private1: int
2761 __private2: int
2762 __private3: ctypes._Pointer
2764wasmtime_structref_t = wasmtime_structref
2766class wasmtime_arrayref(ctypes.Structure):
2767 _fields_ = [
2768 ("store_id", ctypes.c_uint64),
2769 ("__private1", ctypes.c_uint32),
2770 ("__private2", ctypes.c_uint32),
2771 ("__private3", ctypes.c_void_p),
2772 ]
2773 store_id: int
2774 __private1: int
2775 __private2: int
2776 __private3: ctypes._Pointer
2778wasmtime_arrayref_t = wasmtime_arrayref
2780class wasmtime_valunion(ctypes.Union):
2781 _fields_ = [
2782 ("i32", ctypes.c_int32),
2783 ("i64", ctypes.c_int64),
2784 ("f32", ctypes.c_float),
2785 ("f64", ctypes.c_double),
2786 ("anyref", wasmtime_anyref_t),
2787 ("externref", wasmtime_externref_t),
2788 ("exnref", wasmtime_exnref_t),
2789 ("funcref", wasmtime_func_t),
2790 ("v128", wasmtime_v128),
2791 ]
2792 i32: int
2793 i64: int
2794 f32: float
2795 f64: float
2796 anyref: wasmtime_anyref_t
2797 externref: wasmtime_externref_t
2798 exnref: wasmtime_exnref_t
2799 funcref: wasmtime_func_t
2800 v128: wasmtime_v128 # type: ignore
2802wasmtime_valunion_t = wasmtime_valunion
2804class wasmtime_val_raw(ctypes.Union):
2805 _fields_ = [
2806 ("i32", ctypes.c_int32),
2807 ("i64", ctypes.c_int64),
2808 ("f32", ctypes.c_float),
2809 ("f64", ctypes.c_double),
2810 ("v128", wasmtime_v128),
2811 ("anyref", ctypes.c_uint32),
2812 ("externref", ctypes.c_uint32),
2813 ("exnref", ctypes.c_uint32),
2814 ("funcref", ctypes.c_void_p),
2815 ]
2816 i32: int
2817 i64: int
2818 f32: float
2819 f64: float
2820 v128: wasmtime_v128 # type: ignore
2821 anyref: int
2822 externref: int
2823 exnref: int
2824 funcref: ctypes._Pointer
2826wasmtime_val_raw_t = wasmtime_val_raw
2828class wasmtime_val(ctypes.Structure):
2829 _fields_ = [
2830 ("kind", wasmtime_valkind_t),
2831 ("of", wasmtime_valunion_t),
2832 ]
2833 kind: wasmtime_valkind_t
2834 of: wasmtime_valunion_t
2836wasmtime_val_t = wasmtime_val
2838_wasmtime_val_unroot = dll.wasmtime_val_unroot
2839_wasmtime_val_unroot.restype = None
2840_wasmtime_val_unroot.argtypes = [ctypes.POINTER(wasmtime_val_t)]
2841def wasmtime_val_unroot(val: Any) -> None:
2842 return _wasmtime_val_unroot(val) # type: ignore
2844_wasmtime_val_clone = dll.wasmtime_val_clone
2845_wasmtime_val_clone.restype = None
2846_wasmtime_val_clone.argtypes = [ctypes.POINTER(wasmtime_val_t), ctypes.POINTER(wasmtime_val_t)]
2847def wasmtime_val_clone(src: Any, dst: Any) -> None:
2848 return _wasmtime_val_clone(src, dst) # type: ignore
2850_wasmtime_anyref_clone = dll.wasmtime_anyref_clone
2851_wasmtime_anyref_clone.restype = None
2852_wasmtime_anyref_clone.argtypes = [ctypes.POINTER(wasmtime_anyref_t), ctypes.POINTER(wasmtime_anyref_t)]
2853def wasmtime_anyref_clone(anyref: Any, out: Any) -> None:
2854 return _wasmtime_anyref_clone(anyref, out) # type: ignore
2856_wasmtime_anyref_unroot = dll.wasmtime_anyref_unroot
2857_wasmtime_anyref_unroot.restype = None
2858_wasmtime_anyref_unroot.argtypes = [ctypes.POINTER(wasmtime_anyref_t)]
2859def wasmtime_anyref_unroot(ref: Any) -> None:
2860 return _wasmtime_anyref_unroot(ref) # type: ignore
2862_wasmtime_anyref_from_raw = dll.wasmtime_anyref_from_raw
2863_wasmtime_anyref_from_raw.restype = None
2864_wasmtime_anyref_from_raw.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.c_uint32, ctypes.POINTER(wasmtime_anyref_t)]
2865def wasmtime_anyref_from_raw(context: Any, raw: Any, out: Any) -> None:
2866 return _wasmtime_anyref_from_raw(context, raw, out) # type: ignore
2868_wasmtime_anyref_to_raw = dll.wasmtime_anyref_to_raw
2869_wasmtime_anyref_to_raw.restype = ctypes.c_uint32
2870_wasmtime_anyref_to_raw.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_anyref_t)]
2871def wasmtime_anyref_to_raw(context: Any, ref: Any) -> int:
2872 return _wasmtime_anyref_to_raw(context, ref) # type: ignore
2874_wasmtime_anyref_from_i31 = dll.wasmtime_anyref_from_i31
2875_wasmtime_anyref_from_i31.restype = None
2876_wasmtime_anyref_from_i31.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.c_uint32, ctypes.POINTER(wasmtime_anyref_t)]
2877def wasmtime_anyref_from_i31(context: Any, i31val: Any, out: Any) -> None:
2878 return _wasmtime_anyref_from_i31(context, i31val, out) # type: ignore
2880_wasmtime_anyref_is_i31 = dll.wasmtime_anyref_is_i31
2881_wasmtime_anyref_is_i31.restype = ctypes.c_bool
2882_wasmtime_anyref_is_i31.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_anyref_t)]
2883def wasmtime_anyref_is_i31(context: Any, anyref: Any) -> bool:
2884 return _wasmtime_anyref_is_i31(context, anyref) # type: ignore
2886_wasmtime_anyref_i31_get_u = dll.wasmtime_anyref_i31_get_u
2887_wasmtime_anyref_i31_get_u.restype = ctypes.c_bool
2888_wasmtime_anyref_i31_get_u.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_anyref_t), ctypes.POINTER(ctypes.c_uint32)]
2889def wasmtime_anyref_i31_get_u(context: Any, anyref: Any, dst: Any) -> bool:
2890 return _wasmtime_anyref_i31_get_u(context, anyref, dst) # type: ignore
2892_wasmtime_anyref_i31_get_s = dll.wasmtime_anyref_i31_get_s
2893_wasmtime_anyref_i31_get_s.restype = ctypes.c_bool
2894_wasmtime_anyref_i31_get_s.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_anyref_t), ctypes.POINTER(ctypes.c_int32)]
2895def wasmtime_anyref_i31_get_s(context: Any, anyref: Any, dst: Any) -> bool:
2896 return _wasmtime_anyref_i31_get_s(context, anyref, dst) # type: ignore
2898_wasmtime_anyref_is_eqref = dll.wasmtime_anyref_is_eqref
2899_wasmtime_anyref_is_eqref.restype = ctypes.c_bool
2900_wasmtime_anyref_is_eqref.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_anyref_t)]
2901def wasmtime_anyref_is_eqref(context: Any, anyref: Any) -> bool:
2902 return _wasmtime_anyref_is_eqref(context, anyref) # type: ignore
2904_wasmtime_anyref_as_eqref = dll.wasmtime_anyref_as_eqref
2905_wasmtime_anyref_as_eqref.restype = ctypes.c_bool
2906_wasmtime_anyref_as_eqref.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_anyref_t), ctypes.POINTER(wasmtime_eqref_t)]
2907def wasmtime_anyref_as_eqref(context: Any, anyref: Any, out: Any) -> bool:
2908 return _wasmtime_anyref_as_eqref(context, anyref, out) # type: ignore
2910_wasmtime_anyref_is_struct = dll.wasmtime_anyref_is_struct
2911_wasmtime_anyref_is_struct.restype = ctypes.c_bool
2912_wasmtime_anyref_is_struct.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_anyref_t)]
2913def wasmtime_anyref_is_struct(context: Any, anyref: Any) -> bool:
2914 return _wasmtime_anyref_is_struct(context, anyref) # type: ignore
2916_wasmtime_anyref_as_struct = dll.wasmtime_anyref_as_struct
2917_wasmtime_anyref_as_struct.restype = ctypes.c_bool
2918_wasmtime_anyref_as_struct.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_anyref_t), ctypes.POINTER(wasmtime_structref_t)]
2919def wasmtime_anyref_as_struct(context: Any, anyref: Any, out: Any) -> bool:
2920 return _wasmtime_anyref_as_struct(context, anyref, out) # type: ignore
2922_wasmtime_anyref_is_array = dll.wasmtime_anyref_is_array
2923_wasmtime_anyref_is_array.restype = ctypes.c_bool
2924_wasmtime_anyref_is_array.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_anyref_t)]
2925def wasmtime_anyref_is_array(context: Any, anyref: Any) -> bool:
2926 return _wasmtime_anyref_is_array(context, anyref) # type: ignore
2928_wasmtime_anyref_as_array = dll.wasmtime_anyref_as_array
2929_wasmtime_anyref_as_array.restype = ctypes.c_bool
2930_wasmtime_anyref_as_array.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_anyref_t), ctypes.POINTER(wasmtime_arrayref_t)]
2931def wasmtime_anyref_as_array(context: Any, anyref: Any, out: Any) -> bool:
2932 return _wasmtime_anyref_as_array(context, anyref, out) # type: ignore
2934_wasmtime_anyref_type = dll.wasmtime_anyref_type
2935_wasmtime_anyref_type.restype = ctypes.c_bool
2936_wasmtime_anyref_type.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_anyref_t), ctypes.POINTER(wasmtime_heaptype_t)]
2937def wasmtime_anyref_type(context: Any, anyref: Any, out: Any) -> bool:
2938 return _wasmtime_anyref_type(context, anyref, out) # type: ignore
2940class wasmtime_array_ref_pre(ctypes.Structure):
2941 pass
2943wasmtime_array_ref_pre_t = wasmtime_array_ref_pre
2945_wasmtime_array_ref_pre_new = dll.wasmtime_array_ref_pre_new
2946_wasmtime_array_ref_pre_new.restype = ctypes.POINTER(wasmtime_array_ref_pre_t)
2947_wasmtime_array_ref_pre_new.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_array_type_t)]
2948def wasmtime_array_ref_pre_new(context: Any, ty: Any) -> ctypes._Pointer:
2949 return _wasmtime_array_ref_pre_new(context, ty) # type: ignore
2951_wasmtime_array_ref_pre_delete = dll.wasmtime_array_ref_pre_delete
2952_wasmtime_array_ref_pre_delete.restype = None
2953_wasmtime_array_ref_pre_delete.argtypes = [ctypes.POINTER(wasmtime_array_ref_pre_t)]
2954def wasmtime_array_ref_pre_delete(pre: Any) -> None:
2955 return _wasmtime_array_ref_pre_delete(pre) # type: ignore
2957_wasmtime_arrayref_new = dll.wasmtime_arrayref_new
2958_wasmtime_arrayref_new.restype = ctypes.POINTER(wasmtime_error_t)
2959_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)]
2960def wasmtime_arrayref_new(context: Any, pre: Any, elem: Any, len: Any, out: Any) -> ctypes._Pointer:
2961 return _wasmtime_arrayref_new(context, pre, elem, len, out) # type: ignore
2963_wasmtime_arrayref_clone = dll.wasmtime_arrayref_clone
2964_wasmtime_arrayref_clone.restype = None
2965_wasmtime_arrayref_clone.argtypes = [ctypes.POINTER(wasmtime_arrayref_t), ctypes.POINTER(wasmtime_arrayref_t)]
2966def wasmtime_arrayref_clone(arrayref: Any, out: Any) -> None:
2967 return _wasmtime_arrayref_clone(arrayref, out) # type: ignore
2969_wasmtime_arrayref_unroot = dll.wasmtime_arrayref_unroot
2970_wasmtime_arrayref_unroot.restype = None
2971_wasmtime_arrayref_unroot.argtypes = [ctypes.POINTER(wasmtime_arrayref_t)]
2972def wasmtime_arrayref_unroot(ref: Any) -> None:
2973 return _wasmtime_arrayref_unroot(ref) # type: ignore
2975_wasmtime_arrayref_to_anyref = dll.wasmtime_arrayref_to_anyref
2976_wasmtime_arrayref_to_anyref.restype = None
2977_wasmtime_arrayref_to_anyref.argtypes = [ctypes.POINTER(wasmtime_arrayref_t), ctypes.POINTER(wasmtime_anyref_t)]
2978def wasmtime_arrayref_to_anyref(arrayref: Any, out: Any) -> None:
2979 return _wasmtime_arrayref_to_anyref(arrayref, out) # type: ignore
2981_wasmtime_arrayref_to_eqref = dll.wasmtime_arrayref_to_eqref
2982_wasmtime_arrayref_to_eqref.restype = None
2983_wasmtime_arrayref_to_eqref.argtypes = [ctypes.POINTER(wasmtime_arrayref_t), ctypes.POINTER(wasmtime_eqref_t)]
2984def wasmtime_arrayref_to_eqref(arrayref: Any, out: Any) -> None:
2985 return _wasmtime_arrayref_to_eqref(arrayref, out) # type: ignore
2987_wasmtime_arrayref_len = dll.wasmtime_arrayref_len
2988_wasmtime_arrayref_len.restype = ctypes.POINTER(wasmtime_error_t)
2989_wasmtime_arrayref_len.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_arrayref_t), ctypes.POINTER(ctypes.c_uint32)]
2990def wasmtime_arrayref_len(context: Any, arrayref: Any, out: Any) -> ctypes._Pointer:
2991 return _wasmtime_arrayref_len(context, arrayref, out) # type: ignore
2993_wasmtime_arrayref_get = dll.wasmtime_arrayref_get
2994_wasmtime_arrayref_get.restype = ctypes.POINTER(wasmtime_error_t)
2995_wasmtime_arrayref_get.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_arrayref_t), ctypes.c_uint32, ctypes.POINTER(wasmtime_val_t)]
2996def wasmtime_arrayref_get(context: Any, arrayref: Any, index: Any, out: Any) -> ctypes._Pointer:
2997 return _wasmtime_arrayref_get(context, arrayref, index, out) # type: ignore
2999_wasmtime_arrayref_set = dll.wasmtime_arrayref_set
3000_wasmtime_arrayref_set.restype = ctypes.POINTER(wasmtime_error_t)
3001_wasmtime_arrayref_set.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_arrayref_t), ctypes.c_uint32, ctypes.POINTER(wasmtime_val_t)]
3002def wasmtime_arrayref_set(context: Any, arrayref: Any, index: Any, val: Any) -> ctypes._Pointer:
3003 return _wasmtime_arrayref_set(context, arrayref, index, val) # type: ignore
3005_wasmtime_arrayref_type = dll.wasmtime_arrayref_type
3006_wasmtime_arrayref_type.restype = ctypes.POINTER(wasmtime_array_type_t)
3007_wasmtime_arrayref_type.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_arrayref_t)]
3008def wasmtime_arrayref_type(context: Any, arrayref: Any) -> ctypes._Pointer:
3009 return _wasmtime_arrayref_type(context, arrayref) # type: ignore
3011wasmtime_strategy_t = ctypes.c_uint8
3013class wasmtime_strategy_enum(Enum):
3014 WASMTIME_STRATEGY_AUTO = auto()
3015 WASMTIME_STRATEGY_CRANELIFT = auto()
3016 WASMTIME_STRATEGY_WINCH = auto()
3018wasmtime_opt_level_t = ctypes.c_uint8
3020class wasmtime_opt_level_enum(Enum):
3021 WASMTIME_OPT_LEVEL_NONE = auto()
3022 WASMTIME_OPT_LEVEL_SPEED = auto()
3023 WASMTIME_OPT_LEVEL_SPEED_AND_SIZE = auto()
3025wasmtime_profiling_strategy_t = ctypes.c_uint8
3027class wasmtime_profiling_strategy_enum(Enum):
3028 WASMTIME_PROFILING_STRATEGY_NONE = auto()
3029 WASMTIME_PROFILING_STRATEGY_JITDUMP = auto()
3030 WASMTIME_PROFILING_STRATEGY_VTUNE = auto()
3031 WASMTIME_PROFILING_STRATEGY_PERFMAP = auto()
3033wasmtime_regalloc_algorithm_t = ctypes.c_uint8
3035class wasmtime_regalloc_algorithm_enum(Enum):
3036 WASMTIME_REGALLOC_BACKTRACKING = auto()
3037 WASMTIME_REGALLOC_SINGLE_PASS = auto()
3039_wasmtime_config_debug_info_set = dll.wasmtime_config_debug_info_set
3040_wasmtime_config_debug_info_set.restype = None
3041_wasmtime_config_debug_info_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3042def wasmtime_config_debug_info_set(arg0: Any, arg1: Any) -> None:
3043 return _wasmtime_config_debug_info_set(arg0, arg1) # type: ignore
3045_wasmtime_config_consume_fuel_set = dll.wasmtime_config_consume_fuel_set
3046_wasmtime_config_consume_fuel_set.restype = None
3047_wasmtime_config_consume_fuel_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3048def wasmtime_config_consume_fuel_set(arg0: Any, arg1: Any) -> None:
3049 return _wasmtime_config_consume_fuel_set(arg0, arg1) # type: ignore
3051_wasmtime_config_epoch_interruption_set = dll.wasmtime_config_epoch_interruption_set
3052_wasmtime_config_epoch_interruption_set.restype = None
3053_wasmtime_config_epoch_interruption_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3054def wasmtime_config_epoch_interruption_set(arg0: Any, arg1: Any) -> None:
3055 return _wasmtime_config_epoch_interruption_set(arg0, arg1) # type: ignore
3057_wasmtime_config_max_wasm_stack_set = dll.wasmtime_config_max_wasm_stack_set
3058_wasmtime_config_max_wasm_stack_set.restype = None
3059_wasmtime_config_max_wasm_stack_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_size_t]
3060def wasmtime_config_max_wasm_stack_set(arg0: Any, arg1: Any) -> None:
3061 return _wasmtime_config_max_wasm_stack_set(arg0, arg1) # type: ignore
3063_wasmtime_config_wasm_threads_set = dll.wasmtime_config_wasm_threads_set
3064_wasmtime_config_wasm_threads_set.restype = None
3065_wasmtime_config_wasm_threads_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3066def wasmtime_config_wasm_threads_set(arg0: Any, arg1: Any) -> None:
3067 return _wasmtime_config_wasm_threads_set(arg0, arg1) # type: ignore
3069_wasmtime_config_shared_memory_set = dll.wasmtime_config_shared_memory_set
3070_wasmtime_config_shared_memory_set.restype = None
3071_wasmtime_config_shared_memory_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3072def wasmtime_config_shared_memory_set(arg0: Any, arg1: Any) -> None:
3073 return _wasmtime_config_shared_memory_set(arg0, arg1) # type: ignore
3075_wasmtime_config_wasm_tail_call_set = dll.wasmtime_config_wasm_tail_call_set
3076_wasmtime_config_wasm_tail_call_set.restype = None
3077_wasmtime_config_wasm_tail_call_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3078def wasmtime_config_wasm_tail_call_set(arg0: Any, arg1: Any) -> None:
3079 return _wasmtime_config_wasm_tail_call_set(arg0, arg1) # type: ignore
3081_wasmtime_config_wasm_reference_types_set = dll.wasmtime_config_wasm_reference_types_set
3082_wasmtime_config_wasm_reference_types_set.restype = None
3083_wasmtime_config_wasm_reference_types_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3084def wasmtime_config_wasm_reference_types_set(arg0: Any, arg1: Any) -> None:
3085 return _wasmtime_config_wasm_reference_types_set(arg0, arg1) # type: ignore
3087_wasmtime_config_wasm_function_references_set = dll.wasmtime_config_wasm_function_references_set
3088_wasmtime_config_wasm_function_references_set.restype = None
3089_wasmtime_config_wasm_function_references_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3090def wasmtime_config_wasm_function_references_set(arg0: Any, arg1: Any) -> None:
3091 return _wasmtime_config_wasm_function_references_set(arg0, arg1) # type: ignore
3093_wasmtime_config_wasm_gc_set = dll.wasmtime_config_wasm_gc_set
3094_wasmtime_config_wasm_gc_set.restype = None
3095_wasmtime_config_wasm_gc_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3096def wasmtime_config_wasm_gc_set(arg0: Any, arg1: Any) -> None:
3097 return _wasmtime_config_wasm_gc_set(arg0, arg1) # type: ignore
3099_wasmtime_config_gc_support_set = dll.wasmtime_config_gc_support_set
3100_wasmtime_config_gc_support_set.restype = None
3101_wasmtime_config_gc_support_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3102def wasmtime_config_gc_support_set(arg0: Any, arg1: Any) -> None:
3103 return _wasmtime_config_gc_support_set(arg0, arg1) # type: ignore
3105_wasmtime_config_wasm_simd_set = dll.wasmtime_config_wasm_simd_set
3106_wasmtime_config_wasm_simd_set.restype = None
3107_wasmtime_config_wasm_simd_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3108def wasmtime_config_wasm_simd_set(arg0: Any, arg1: Any) -> None:
3109 return _wasmtime_config_wasm_simd_set(arg0, arg1) # type: ignore
3111_wasmtime_config_wasm_relaxed_simd_set = dll.wasmtime_config_wasm_relaxed_simd_set
3112_wasmtime_config_wasm_relaxed_simd_set.restype = None
3113_wasmtime_config_wasm_relaxed_simd_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3114def wasmtime_config_wasm_relaxed_simd_set(arg0: Any, arg1: Any) -> None:
3115 return _wasmtime_config_wasm_relaxed_simd_set(arg0, arg1) # type: ignore
3117_wasmtime_config_wasm_relaxed_simd_deterministic_set = dll.wasmtime_config_wasm_relaxed_simd_deterministic_set
3118_wasmtime_config_wasm_relaxed_simd_deterministic_set.restype = None
3119_wasmtime_config_wasm_relaxed_simd_deterministic_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3120def wasmtime_config_wasm_relaxed_simd_deterministic_set(arg0: Any, arg1: Any) -> None:
3121 return _wasmtime_config_wasm_relaxed_simd_deterministic_set(arg0, arg1) # type: ignore
3123_wasmtime_config_wasm_bulk_memory_set = dll.wasmtime_config_wasm_bulk_memory_set
3124_wasmtime_config_wasm_bulk_memory_set.restype = None
3125_wasmtime_config_wasm_bulk_memory_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3126def wasmtime_config_wasm_bulk_memory_set(arg0: Any, arg1: Any) -> None:
3127 return _wasmtime_config_wasm_bulk_memory_set(arg0, arg1) # type: ignore
3129_wasmtime_config_wasm_multi_value_set = dll.wasmtime_config_wasm_multi_value_set
3130_wasmtime_config_wasm_multi_value_set.restype = None
3131_wasmtime_config_wasm_multi_value_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3132def wasmtime_config_wasm_multi_value_set(arg0: Any, arg1: Any) -> None:
3133 return _wasmtime_config_wasm_multi_value_set(arg0, arg1) # type: ignore
3135_wasmtime_config_wasm_multi_memory_set = dll.wasmtime_config_wasm_multi_memory_set
3136_wasmtime_config_wasm_multi_memory_set.restype = None
3137_wasmtime_config_wasm_multi_memory_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3138def wasmtime_config_wasm_multi_memory_set(arg0: Any, arg1: Any) -> None:
3139 return _wasmtime_config_wasm_multi_memory_set(arg0, arg1) # type: ignore
3141_wasmtime_config_wasm_memory64_set = dll.wasmtime_config_wasm_memory64_set
3142_wasmtime_config_wasm_memory64_set.restype = None
3143_wasmtime_config_wasm_memory64_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3144def wasmtime_config_wasm_memory64_set(arg0: Any, arg1: Any) -> None:
3145 return _wasmtime_config_wasm_memory64_set(arg0, arg1) # type: ignore
3147_wasmtime_config_wasm_wide_arithmetic_set = dll.wasmtime_config_wasm_wide_arithmetic_set
3148_wasmtime_config_wasm_wide_arithmetic_set.restype = None
3149_wasmtime_config_wasm_wide_arithmetic_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3150def wasmtime_config_wasm_wide_arithmetic_set(arg0: Any, arg1: Any) -> None:
3151 return _wasmtime_config_wasm_wide_arithmetic_set(arg0, arg1) # type: ignore
3153_wasmtime_config_wasm_branch_hinting_set = dll.wasmtime_config_wasm_branch_hinting_set
3154_wasmtime_config_wasm_branch_hinting_set.restype = None
3155_wasmtime_config_wasm_branch_hinting_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3156def wasmtime_config_wasm_branch_hinting_set(arg0: Any, arg1: Any) -> None:
3157 return _wasmtime_config_wasm_branch_hinting_set(arg0, arg1) # type: ignore
3159_wasmtime_config_wasm_exceptions_set = dll.wasmtime_config_wasm_exceptions_set
3160_wasmtime_config_wasm_exceptions_set.restype = None
3161_wasmtime_config_wasm_exceptions_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3162def wasmtime_config_wasm_exceptions_set(arg0: Any, arg1: Any) -> None:
3163 return _wasmtime_config_wasm_exceptions_set(arg0, arg1) # type: ignore
3165_wasmtime_config_wasm_custom_page_sizes_set = dll.wasmtime_config_wasm_custom_page_sizes_set
3166_wasmtime_config_wasm_custom_page_sizes_set.restype = None
3167_wasmtime_config_wasm_custom_page_sizes_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3168def wasmtime_config_wasm_custom_page_sizes_set(arg0: Any, arg1: Any) -> None:
3169 return _wasmtime_config_wasm_custom_page_sizes_set(arg0, arg1) # type: ignore
3171_wasmtime_config_wasm_compact_imports_set = dll.wasmtime_config_wasm_compact_imports_set
3172_wasmtime_config_wasm_compact_imports_set.restype = None
3173_wasmtime_config_wasm_compact_imports_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3174def wasmtime_config_wasm_compact_imports_set(arg0: Any, arg1: Any) -> None:
3175 return _wasmtime_config_wasm_compact_imports_set(arg0, arg1) # type: ignore
3177_wasmtime_config_wasm_stack_switching_set = dll.wasmtime_config_wasm_stack_switching_set
3178_wasmtime_config_wasm_stack_switching_set.restype = None
3179_wasmtime_config_wasm_stack_switching_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3180def wasmtime_config_wasm_stack_switching_set(arg0: Any, arg1: Any) -> None:
3181 return _wasmtime_config_wasm_stack_switching_set(arg0, arg1) # type: ignore
3183_wasmtime_config_strategy_set = dll.wasmtime_config_strategy_set
3184_wasmtime_config_strategy_set.restype = None
3185_wasmtime_config_strategy_set.argtypes = [ctypes.POINTER(wasm_config_t), wasmtime_strategy_t]
3186def wasmtime_config_strategy_set(arg0: Any, arg1: Any) -> None:
3187 return _wasmtime_config_strategy_set(arg0, arg1) # type: ignore
3189_wasmtime_config_parallel_compilation_set = dll.wasmtime_config_parallel_compilation_set
3190_wasmtime_config_parallel_compilation_set.restype = None
3191_wasmtime_config_parallel_compilation_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3192def wasmtime_config_parallel_compilation_set(arg0: Any, arg1: Any) -> None:
3193 return _wasmtime_config_parallel_compilation_set(arg0, arg1) # type: ignore
3195_wasmtime_config_cranelift_debug_verifier_set = dll.wasmtime_config_cranelift_debug_verifier_set
3196_wasmtime_config_cranelift_debug_verifier_set.restype = None
3197_wasmtime_config_cranelift_debug_verifier_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3198def wasmtime_config_cranelift_debug_verifier_set(arg0: Any, arg1: Any) -> None:
3199 return _wasmtime_config_cranelift_debug_verifier_set(arg0, arg1) # type: ignore
3201_wasmtime_config_cranelift_nan_canonicalization_set = dll.wasmtime_config_cranelift_nan_canonicalization_set
3202_wasmtime_config_cranelift_nan_canonicalization_set.restype = None
3203_wasmtime_config_cranelift_nan_canonicalization_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3204def wasmtime_config_cranelift_nan_canonicalization_set(arg0: Any, arg1: Any) -> None:
3205 return _wasmtime_config_cranelift_nan_canonicalization_set(arg0, arg1) # type: ignore
3207_wasmtime_config_cranelift_opt_level_set = dll.wasmtime_config_cranelift_opt_level_set
3208_wasmtime_config_cranelift_opt_level_set.restype = None
3209_wasmtime_config_cranelift_opt_level_set.argtypes = [ctypes.POINTER(wasm_config_t), wasmtime_opt_level_t]
3210def wasmtime_config_cranelift_opt_level_set(arg0: Any, arg1: Any) -> None:
3211 return _wasmtime_config_cranelift_opt_level_set(arg0, arg1) # type: ignore
3213_wasmtime_config_cranelift_regalloc_algorithm_set = dll.wasmtime_config_cranelift_regalloc_algorithm_set
3214_wasmtime_config_cranelift_regalloc_algorithm_set.restype = None
3215_wasmtime_config_cranelift_regalloc_algorithm_set.argtypes = [ctypes.POINTER(wasm_config_t), wasmtime_regalloc_algorithm_t]
3216def wasmtime_config_cranelift_regalloc_algorithm_set(arg0: Any, arg1: Any) -> None:
3217 return _wasmtime_config_cranelift_regalloc_algorithm_set(arg0, arg1) # type: ignore
3219_wasmtime_config_profiler_set = dll.wasmtime_config_profiler_set
3220_wasmtime_config_profiler_set.restype = None
3221_wasmtime_config_profiler_set.argtypes = [ctypes.POINTER(wasm_config_t), wasmtime_profiling_strategy_t]
3222def wasmtime_config_profiler_set(arg0: Any, arg1: Any) -> None:
3223 return _wasmtime_config_profiler_set(arg0, arg1) # type: ignore
3225_wasmtime_config_memory_may_move_set = dll.wasmtime_config_memory_may_move_set
3226_wasmtime_config_memory_may_move_set.restype = None
3227_wasmtime_config_memory_may_move_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3228def wasmtime_config_memory_may_move_set(arg0: Any, arg1: Any) -> None:
3229 return _wasmtime_config_memory_may_move_set(arg0, arg1) # type: ignore
3231_wasmtime_config_memory_reservation_set = dll.wasmtime_config_memory_reservation_set
3232_wasmtime_config_memory_reservation_set.restype = None
3233_wasmtime_config_memory_reservation_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_uint64]
3234def wasmtime_config_memory_reservation_set(arg0: Any, arg1: Any) -> None:
3235 return _wasmtime_config_memory_reservation_set(arg0, arg1) # type: ignore
3237_wasmtime_config_memory_guard_size_set = dll.wasmtime_config_memory_guard_size_set
3238_wasmtime_config_memory_guard_size_set.restype = None
3239_wasmtime_config_memory_guard_size_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_uint64]
3240def wasmtime_config_memory_guard_size_set(arg0: Any, arg1: Any) -> None:
3241 return _wasmtime_config_memory_guard_size_set(arg0, arg1) # type: ignore
3243_wasmtime_config_memory_reservation_for_growth_set = dll.wasmtime_config_memory_reservation_for_growth_set
3244_wasmtime_config_memory_reservation_for_growth_set.restype = None
3245_wasmtime_config_memory_reservation_for_growth_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_uint64]
3246def wasmtime_config_memory_reservation_for_growth_set(arg0: Any, arg1: Any) -> None:
3247 return _wasmtime_config_memory_reservation_for_growth_set(arg0, arg1) # type: ignore
3249_wasmtime_config_native_unwind_info_set = dll.wasmtime_config_native_unwind_info_set
3250_wasmtime_config_native_unwind_info_set.restype = None
3251_wasmtime_config_native_unwind_info_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3252def wasmtime_config_native_unwind_info_set(arg0: Any, arg1: Any) -> None:
3253 return _wasmtime_config_native_unwind_info_set(arg0, arg1) # type: ignore
3255_wasmtime_config_asan_compatible_code_set = dll.wasmtime_config_asan_compatible_code_set
3256_wasmtime_config_asan_compatible_code_set.restype = None
3257_wasmtime_config_asan_compatible_code_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3258def wasmtime_config_asan_compatible_code_set(arg0: Any, arg1: Any) -> None:
3259 return _wasmtime_config_asan_compatible_code_set(arg0, arg1) # type: ignore
3261_wasmtime_config_cache_config_load = dll.wasmtime_config_cache_config_load
3262_wasmtime_config_cache_config_load.restype = ctypes.POINTER(wasmtime_error_t)
3263_wasmtime_config_cache_config_load.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.POINTER(ctypes.c_char)]
3264def wasmtime_config_cache_config_load(arg0: Any, arg1: Any) -> ctypes._Pointer:
3265 return _wasmtime_config_cache_config_load(arg0, arg1) # type: ignore
3267_wasmtime_config_target_set = dll.wasmtime_config_target_set
3268_wasmtime_config_target_set.restype = ctypes.POINTER(wasmtime_error_t)
3269_wasmtime_config_target_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.POINTER(ctypes.c_char)]
3270def wasmtime_config_target_set(arg0: Any, arg1: Any) -> ctypes._Pointer:
3271 return _wasmtime_config_target_set(arg0, arg1) # type: ignore
3273_wasmtime_config_cranelift_flag_enable = dll.wasmtime_config_cranelift_flag_enable
3274_wasmtime_config_cranelift_flag_enable.restype = None
3275_wasmtime_config_cranelift_flag_enable.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.POINTER(ctypes.c_char)]
3276def wasmtime_config_cranelift_flag_enable(arg0: Any, arg1: Any) -> None:
3277 return _wasmtime_config_cranelift_flag_enable(arg0, arg1) # type: ignore
3279_wasmtime_config_cranelift_flag_set = dll.wasmtime_config_cranelift_flag_set
3280_wasmtime_config_cranelift_flag_set.restype = None
3281_wasmtime_config_cranelift_flag_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_char)]
3282def wasmtime_config_cranelift_flag_set(arg0: Any, key: Any, value: Any) -> None:
3283 return _wasmtime_config_cranelift_flag_set(arg0, key, value) # type: ignore
3285_wasmtime_config_macos_use_mach_ports_set = dll.wasmtime_config_macos_use_mach_ports_set
3286_wasmtime_config_macos_use_mach_ports_set.restype = None
3287_wasmtime_config_macos_use_mach_ports_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3288def wasmtime_config_macos_use_mach_ports_set(arg0: Any, arg1: Any) -> None:
3289 return _wasmtime_config_macos_use_mach_ports_set(arg0, arg1) # type: ignore
3291_wasmtime_config_signals_based_traps_set = dll.wasmtime_config_signals_based_traps_set
3292_wasmtime_config_signals_based_traps_set.restype = None
3293_wasmtime_config_signals_based_traps_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3294def wasmtime_config_signals_based_traps_set(arg0: Any, arg1: Any) -> None:
3295 return _wasmtime_config_signals_based_traps_set(arg0, arg1) # type: ignore
3297wasmtime_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))
3299wasmtime_memory_grow_callback_t = ctypes.CFUNCTYPE(ctypes.c_size_t, ctypes.c_void_p, ctypes.c_size_t)
3301class wasmtime_linear_memory(ctypes.Structure):
3302 _fields_ = [
3303 ("env", ctypes.c_void_p),
3304 ("get_memory", wasmtime_memory_get_callback_t),
3305 ("grow_memory", wasmtime_memory_grow_callback_t),
3306 ("finalizer", ctypes.CFUNCTYPE(None, ctypes.c_void_p)),
3307 ]
3308 env: ctypes._Pointer
3309 get_memory: ctypes._Pointer
3310 grow_memory: ctypes._Pointer
3311 finalizer: ctypes._Pointer
3313wasmtime_linear_memory_t = wasmtime_linear_memory
3315wasmtime_memory_kind_t = ctypes.c_uint8
3317class wasmtime_memory_kind_enum(Enum):
3318 WASMTIME_MEMORY_KIND_LINEAR_MEMORY = auto()
3319 WASMTIME_MEMORY_KIND_GC_HEAP = auto()
3321class wasmtime_memory_request(ctypes.Structure):
3322 _fields_ = [
3323 ("ty", ctypes.POINTER(wasm_memorytype_t)),
3324 ("minimum", ctypes.c_size_t),
3325 ("maximum", ctypes.c_size_t),
3326 ("reserved_size_in_bytes", ctypes.c_size_t),
3327 ("guard_size_in_bytes", ctypes.c_size_t),
3328 ("kind", wasmtime_memory_kind_t),
3329 ]
3330 ty: ctypes._Pointer
3331 minimum: int
3332 maximum: int
3333 reserved_size_in_bytes: int
3334 guard_size_in_bytes: int
3335 kind: wasmtime_memory_kind_t
3337wasmtime_memory_request_t = wasmtime_memory_request
3339wasmtime_new_memory_callback_t = ctypes.CFUNCTYPE(ctypes.c_size_t, ctypes.c_void_p, ctypes.POINTER(wasmtime_memory_request_t), ctypes.POINTER(wasmtime_linear_memory_t))
3341class wasmtime_memory_creator(ctypes.Structure):
3342 _fields_ = [
3343 ("env", ctypes.c_void_p),
3344 ("new_memory", wasmtime_new_memory_callback_t),
3345 ("finalizer", ctypes.CFUNCTYPE(None, ctypes.c_void_p)),
3346 ]
3347 env: ctypes._Pointer
3348 new_memory: ctypes._Pointer
3349 finalizer: ctypes._Pointer
3351wasmtime_memory_creator_t = wasmtime_memory_creator
3353_wasmtime_config_host_memory_creator_set = dll.wasmtime_config_host_memory_creator_set
3354_wasmtime_config_host_memory_creator_set.restype = None
3355_wasmtime_config_host_memory_creator_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.POINTER(wasmtime_memory_creator_t)]
3356def wasmtime_config_host_memory_creator_set(arg0: Any, arg1: Any) -> None:
3357 return _wasmtime_config_host_memory_creator_set(arg0, arg1) # type: ignore
3359_wasmtime_config_memory_init_cow_set = dll.wasmtime_config_memory_init_cow_set
3360_wasmtime_config_memory_init_cow_set.restype = None
3361_wasmtime_config_memory_init_cow_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3362def wasmtime_config_memory_init_cow_set(arg0: Any, arg1: Any) -> None:
3363 return _wasmtime_config_memory_init_cow_set(arg0, arg1) # type: ignore
3365class wasmtime_pooling_allocation_config_t(ctypes.Structure):
3366 pass
3368_wasmtime_pooling_allocation_config_new = dll.wasmtime_pooling_allocation_config_new
3369_wasmtime_pooling_allocation_config_new.restype = ctypes.POINTER(wasmtime_pooling_allocation_config_t)
3370_wasmtime_pooling_allocation_config_new.argtypes = []
3371def wasmtime_pooling_allocation_config_new() -> ctypes._Pointer:
3372 return _wasmtime_pooling_allocation_config_new() # type: ignore
3374_wasmtime_pooling_allocation_config_delete = dll.wasmtime_pooling_allocation_config_delete
3375_wasmtime_pooling_allocation_config_delete.restype = None
3376_wasmtime_pooling_allocation_config_delete.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t)]
3377def wasmtime_pooling_allocation_config_delete(arg0: Any) -> None:
3378 return _wasmtime_pooling_allocation_config_delete(arg0) # type: ignore
3380_wasmtime_pooling_allocation_config_max_unused_warm_slots_set = dll.wasmtime_pooling_allocation_config_max_unused_warm_slots_set
3381_wasmtime_pooling_allocation_config_max_unused_warm_slots_set.restype = None
3382_wasmtime_pooling_allocation_config_max_unused_warm_slots_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_uint32]
3383def wasmtime_pooling_allocation_config_max_unused_warm_slots_set(arg0: Any, arg1: Any) -> None:
3384 return _wasmtime_pooling_allocation_config_max_unused_warm_slots_set(arg0, arg1) # type: ignore
3386_wasmtime_pooling_allocation_config_decommit_batch_size_set = dll.wasmtime_pooling_allocation_config_decommit_batch_size_set
3387_wasmtime_pooling_allocation_config_decommit_batch_size_set.restype = None
3388_wasmtime_pooling_allocation_config_decommit_batch_size_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_size_t]
3389def wasmtime_pooling_allocation_config_decommit_batch_size_set(arg0: Any, arg1: Any) -> None:
3390 return _wasmtime_pooling_allocation_config_decommit_batch_size_set(arg0, arg1) # type: ignore
3392_wasmtime_pooling_allocation_config_async_stack_keep_resident_set = dll.wasmtime_pooling_allocation_config_async_stack_keep_resident_set
3393_wasmtime_pooling_allocation_config_async_stack_keep_resident_set.restype = None
3394_wasmtime_pooling_allocation_config_async_stack_keep_resident_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_size_t]
3395def wasmtime_pooling_allocation_config_async_stack_keep_resident_set(arg0: Any, arg1: Any) -> None:
3396 return _wasmtime_pooling_allocation_config_async_stack_keep_resident_set(arg0, arg1) # type: ignore
3398_wasmtime_pooling_allocation_config_linear_memory_keep_resident_set = dll.wasmtime_pooling_allocation_config_linear_memory_keep_resident_set
3399_wasmtime_pooling_allocation_config_linear_memory_keep_resident_set.restype = None
3400_wasmtime_pooling_allocation_config_linear_memory_keep_resident_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_size_t]
3401def wasmtime_pooling_allocation_config_linear_memory_keep_resident_set(arg0: Any, arg1: Any) -> None:
3402 return _wasmtime_pooling_allocation_config_linear_memory_keep_resident_set(arg0, arg1) # type: ignore
3404_wasmtime_pooling_allocation_config_table_keep_resident_set = dll.wasmtime_pooling_allocation_config_table_keep_resident_set
3405_wasmtime_pooling_allocation_config_table_keep_resident_set.restype = None
3406_wasmtime_pooling_allocation_config_table_keep_resident_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_size_t]
3407def wasmtime_pooling_allocation_config_table_keep_resident_set(arg0: Any, arg1: Any) -> None:
3408 return _wasmtime_pooling_allocation_config_table_keep_resident_set(arg0, arg1) # type: ignore
3410_wasmtime_pooling_allocation_config_total_component_instances_set = dll.wasmtime_pooling_allocation_config_total_component_instances_set
3411_wasmtime_pooling_allocation_config_total_component_instances_set.restype = None
3412_wasmtime_pooling_allocation_config_total_component_instances_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_uint32]
3413def wasmtime_pooling_allocation_config_total_component_instances_set(arg0: Any, arg1: Any) -> None:
3414 return _wasmtime_pooling_allocation_config_total_component_instances_set(arg0, arg1) # type: ignore
3416_wasmtime_pooling_allocation_config_max_component_instance_size_set = dll.wasmtime_pooling_allocation_config_max_component_instance_size_set
3417_wasmtime_pooling_allocation_config_max_component_instance_size_set.restype = None
3418_wasmtime_pooling_allocation_config_max_component_instance_size_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_size_t]
3419def wasmtime_pooling_allocation_config_max_component_instance_size_set(arg0: Any, arg1: Any) -> None:
3420 return _wasmtime_pooling_allocation_config_max_component_instance_size_set(arg0, arg1) # type: ignore
3422_wasmtime_pooling_allocation_config_max_core_instances_per_component_set = dll.wasmtime_pooling_allocation_config_max_core_instances_per_component_set
3423_wasmtime_pooling_allocation_config_max_core_instances_per_component_set.restype = None
3424_wasmtime_pooling_allocation_config_max_core_instances_per_component_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_uint32]
3425def wasmtime_pooling_allocation_config_max_core_instances_per_component_set(arg0: Any, arg1: Any) -> None:
3426 return _wasmtime_pooling_allocation_config_max_core_instances_per_component_set(arg0, arg1) # type: ignore
3428_wasmtime_pooling_allocation_config_max_memories_per_component_set = dll.wasmtime_pooling_allocation_config_max_memories_per_component_set
3429_wasmtime_pooling_allocation_config_max_memories_per_component_set.restype = None
3430_wasmtime_pooling_allocation_config_max_memories_per_component_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_uint32]
3431def wasmtime_pooling_allocation_config_max_memories_per_component_set(arg0: Any, arg1: Any) -> None:
3432 return _wasmtime_pooling_allocation_config_max_memories_per_component_set(arg0, arg1) # type: ignore
3434_wasmtime_pooling_allocation_config_max_tables_per_component_set = dll.wasmtime_pooling_allocation_config_max_tables_per_component_set
3435_wasmtime_pooling_allocation_config_max_tables_per_component_set.restype = None
3436_wasmtime_pooling_allocation_config_max_tables_per_component_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_uint32]
3437def wasmtime_pooling_allocation_config_max_tables_per_component_set(arg0: Any, arg1: Any) -> None:
3438 return _wasmtime_pooling_allocation_config_max_tables_per_component_set(arg0, arg1) # type: ignore
3440_wasmtime_pooling_allocation_config_total_memories_set = dll.wasmtime_pooling_allocation_config_total_memories_set
3441_wasmtime_pooling_allocation_config_total_memories_set.restype = None
3442_wasmtime_pooling_allocation_config_total_memories_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_uint32]
3443def wasmtime_pooling_allocation_config_total_memories_set(arg0: Any, arg1: Any) -> None:
3444 return _wasmtime_pooling_allocation_config_total_memories_set(arg0, arg1) # type: ignore
3446_wasmtime_pooling_allocation_config_total_tables_set = dll.wasmtime_pooling_allocation_config_total_tables_set
3447_wasmtime_pooling_allocation_config_total_tables_set.restype = None
3448_wasmtime_pooling_allocation_config_total_tables_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_uint32]
3449def wasmtime_pooling_allocation_config_total_tables_set(arg0: Any, arg1: Any) -> None:
3450 return _wasmtime_pooling_allocation_config_total_tables_set(arg0, arg1) # type: ignore
3452_wasmtime_pooling_allocation_config_total_stacks_set = dll.wasmtime_pooling_allocation_config_total_stacks_set
3453_wasmtime_pooling_allocation_config_total_stacks_set.restype = None
3454_wasmtime_pooling_allocation_config_total_stacks_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_uint32]
3455def wasmtime_pooling_allocation_config_total_stacks_set(arg0: Any, arg1: Any) -> None:
3456 return _wasmtime_pooling_allocation_config_total_stacks_set(arg0, arg1) # type: ignore
3458_wasmtime_pooling_allocation_config_total_core_instances_set = dll.wasmtime_pooling_allocation_config_total_core_instances_set
3459_wasmtime_pooling_allocation_config_total_core_instances_set.restype = None
3460_wasmtime_pooling_allocation_config_total_core_instances_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_uint32]
3461def wasmtime_pooling_allocation_config_total_core_instances_set(arg0: Any, arg1: Any) -> None:
3462 return _wasmtime_pooling_allocation_config_total_core_instances_set(arg0, arg1) # type: ignore
3464_wasmtime_pooling_allocation_config_max_core_instance_size_set = dll.wasmtime_pooling_allocation_config_max_core_instance_size_set
3465_wasmtime_pooling_allocation_config_max_core_instance_size_set.restype = None
3466_wasmtime_pooling_allocation_config_max_core_instance_size_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_size_t]
3467def wasmtime_pooling_allocation_config_max_core_instance_size_set(arg0: Any, arg1: Any) -> None:
3468 return _wasmtime_pooling_allocation_config_max_core_instance_size_set(arg0, arg1) # type: ignore
3470_wasmtime_pooling_allocation_config_max_tables_per_module_set = dll.wasmtime_pooling_allocation_config_max_tables_per_module_set
3471_wasmtime_pooling_allocation_config_max_tables_per_module_set.restype = None
3472_wasmtime_pooling_allocation_config_max_tables_per_module_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_uint32]
3473def wasmtime_pooling_allocation_config_max_tables_per_module_set(arg0: Any, arg1: Any) -> None:
3474 return _wasmtime_pooling_allocation_config_max_tables_per_module_set(arg0, arg1) # type: ignore
3476_wasmtime_pooling_allocation_config_table_elements_set = dll.wasmtime_pooling_allocation_config_table_elements_set
3477_wasmtime_pooling_allocation_config_table_elements_set.restype = None
3478_wasmtime_pooling_allocation_config_table_elements_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_size_t]
3479def wasmtime_pooling_allocation_config_table_elements_set(arg0: Any, arg1: Any) -> None:
3480 return _wasmtime_pooling_allocation_config_table_elements_set(arg0, arg1) # type: ignore
3482_wasmtime_pooling_allocation_config_max_memories_per_module_set = dll.wasmtime_pooling_allocation_config_max_memories_per_module_set
3483_wasmtime_pooling_allocation_config_max_memories_per_module_set.restype = None
3484_wasmtime_pooling_allocation_config_max_memories_per_module_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_uint32]
3485def wasmtime_pooling_allocation_config_max_memories_per_module_set(arg0: Any, arg1: Any) -> None:
3486 return _wasmtime_pooling_allocation_config_max_memories_per_module_set(arg0, arg1) # type: ignore
3488_wasmtime_pooling_allocation_config_max_memory_size_set = dll.wasmtime_pooling_allocation_config_max_memory_size_set
3489_wasmtime_pooling_allocation_config_max_memory_size_set.restype = None
3490_wasmtime_pooling_allocation_config_max_memory_size_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_size_t]
3491def wasmtime_pooling_allocation_config_max_memory_size_set(arg0: Any, arg1: Any) -> None:
3492 return _wasmtime_pooling_allocation_config_max_memory_size_set(arg0, arg1) # type: ignore
3494_wasmtime_pooling_allocation_config_total_gc_heaps_set = dll.wasmtime_pooling_allocation_config_total_gc_heaps_set
3495_wasmtime_pooling_allocation_config_total_gc_heaps_set.restype = None
3496_wasmtime_pooling_allocation_config_total_gc_heaps_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_uint32]
3497def wasmtime_pooling_allocation_config_total_gc_heaps_set(arg0: Any, arg1: Any) -> None:
3498 return _wasmtime_pooling_allocation_config_total_gc_heaps_set(arg0, arg1) # type: ignore
3500_wasmtime_pooling_allocation_strategy_set = dll.wasmtime_pooling_allocation_strategy_set
3501_wasmtime_pooling_allocation_strategy_set.restype = None
3502_wasmtime_pooling_allocation_strategy_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.POINTER(wasmtime_pooling_allocation_config_t)]
3503def wasmtime_pooling_allocation_strategy_set(arg0: Any, arg1: Any) -> None:
3504 return _wasmtime_pooling_allocation_strategy_set(arg0, arg1) # type: ignore
3506_wasmtime_config_wasm_component_model_set = dll.wasmtime_config_wasm_component_model_set
3507_wasmtime_config_wasm_component_model_set.restype = None
3508_wasmtime_config_wasm_component_model_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3509def wasmtime_config_wasm_component_model_set(arg0: Any, arg1: Any) -> None:
3510 return _wasmtime_config_wasm_component_model_set(arg0, arg1) # type: ignore
3512_wasmtime_config_concurrency_support_set = dll.wasmtime_config_concurrency_support_set
3513_wasmtime_config_concurrency_support_set.restype = None
3514_wasmtime_config_concurrency_support_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3515def wasmtime_config_concurrency_support_set(arg0: Any, arg1: Any) -> None:
3516 return _wasmtime_config_concurrency_support_set(arg0, arg1) # type: ignore
3518_wasmtime_config_wasm_component_model_map_set = dll.wasmtime_config_wasm_component_model_map_set
3519_wasmtime_config_wasm_component_model_map_set.restype = None
3520_wasmtime_config_wasm_component_model_map_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3521def wasmtime_config_wasm_component_model_map_set(arg0: Any, arg1: Any) -> None:
3522 return _wasmtime_config_wasm_component_model_map_set(arg0, arg1) # type: ignore
3524_wasmtime_config_wasm_component_model_implements_set = dll.wasmtime_config_wasm_component_model_implements_set
3525_wasmtime_config_wasm_component_model_implements_set.restype = None
3526_wasmtime_config_wasm_component_model_implements_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3527def wasmtime_config_wasm_component_model_implements_set(arg0: Any, arg1: Any) -> None:
3528 return _wasmtime_config_wasm_component_model_implements_set(arg0, arg1) # type: ignore
3530_wasmtime_config_wasm_component_model_canonical_names_set = dll.wasmtime_config_wasm_component_model_canonical_names_set
3531_wasmtime_config_wasm_component_model_canonical_names_set.restype = None
3532_wasmtime_config_wasm_component_model_canonical_names_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3533def wasmtime_config_wasm_component_model_canonical_names_set(arg0: Any, arg1: Any) -> None:
3534 return _wasmtime_config_wasm_component_model_canonical_names_set(arg0, arg1) # type: ignore
3536_wasmtime_config_wasm_component_model_accessors_set = dll.wasmtime_config_wasm_component_model_accessors_set
3537_wasmtime_config_wasm_component_model_accessors_set.restype = None
3538_wasmtime_config_wasm_component_model_accessors_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3539def wasmtime_config_wasm_component_model_accessors_set(arg0: Any, arg1: Any) -> None:
3540 return _wasmtime_config_wasm_component_model_accessors_set(arg0, arg1) # type: ignore
3542_wasmtime_config_wasm_component_model_async_set = dll.wasmtime_config_wasm_component_model_async_set
3543_wasmtime_config_wasm_component_model_async_set.restype = None
3544_wasmtime_config_wasm_component_model_async_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3545def wasmtime_config_wasm_component_model_async_set(arg0: Any, arg1: Any) -> None:
3546 return _wasmtime_config_wasm_component_model_async_set(arg0, arg1) # type: ignore
3548_wasmtime_config_wasm_component_model_more_async_builtins_set = dll.wasmtime_config_wasm_component_model_more_async_builtins_set
3549_wasmtime_config_wasm_component_model_more_async_builtins_set.restype = None
3550_wasmtime_config_wasm_component_model_more_async_builtins_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3551def wasmtime_config_wasm_component_model_more_async_builtins_set(arg0: Any, arg1: Any) -> None:
3552 return _wasmtime_config_wasm_component_model_more_async_builtins_set(arg0, arg1) # type: ignore
3554_wasmtime_config_wasm_component_model_async_stackful_set = dll.wasmtime_config_wasm_component_model_async_stackful_set
3555_wasmtime_config_wasm_component_model_async_stackful_set.restype = None
3556_wasmtime_config_wasm_component_model_async_stackful_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3557def wasmtime_config_wasm_component_model_async_stackful_set(arg0: Any, arg1: Any) -> None:
3558 return _wasmtime_config_wasm_component_model_async_stackful_set(arg0, arg1) # type: ignore
3560class wasmtime_caller(ctypes.Structure):
3561 pass
3563wasmtime_caller_t = wasmtime_caller
3565wasmtime_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)
3567_wasmtime_func_new = dll.wasmtime_func_new
3568_wasmtime_func_new.restype = None
3569_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)]
3570def wasmtime_func_new(store: Any, type: Any, callback: Any, env: Any, finalizer: Any, ret: Any) -> None:
3571 return _wasmtime_func_new(store, type, callback, env, finalizer, ret) # type: ignore
3573wasmtime_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)
3575_wasmtime_func_new_unchecked = dll.wasmtime_func_new_unchecked
3576_wasmtime_func_new_unchecked.restype = None
3577_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)]
3578def wasmtime_func_new_unchecked(store: Any, type: Any, callback: Any, env: Any, finalizer: Any, ret: Any) -> None:
3579 return _wasmtime_func_new_unchecked(store, type, callback, env, finalizer, ret) # type: ignore
3581_wasmtime_func_type = dll.wasmtime_func_type
3582_wasmtime_func_type.restype = ctypes.POINTER(wasm_functype_t)
3583_wasmtime_func_type.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_func_t)]
3584def wasmtime_func_type(store: Any, func: Any) -> ctypes._Pointer:
3585 return _wasmtime_func_type(store, func) # type: ignore
3587_wasmtime_func_call = dll.wasmtime_func_call
3588_wasmtime_func_call.restype = ctypes.POINTER(wasmtime_error_t)
3589_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))]
3590def wasmtime_func_call(store: Any, func: Any, args: Any, nargs: Any, results: Any, nresults: Any, trap: Any) -> ctypes._Pointer:
3591 return _wasmtime_func_call(store, func, args, nargs, results, nresults, trap) # type: ignore
3593_wasmtime_func_call_unchecked = dll.wasmtime_func_call_unchecked
3594_wasmtime_func_call_unchecked.restype = ctypes.POINTER(wasmtime_error_t)
3595_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))]
3596def wasmtime_func_call_unchecked(store: Any, func: Any, args_and_results: Any, args_and_results_len: Any, trap: Any) -> ctypes._Pointer:
3597 return _wasmtime_func_call_unchecked(store, func, args_and_results, args_and_results_len, trap) # type: ignore
3599_wasmtime_caller_export_get = dll.wasmtime_caller_export_get
3600_wasmtime_caller_export_get.restype = ctypes.c_bool
3601_wasmtime_caller_export_get.argtypes = [ctypes.POINTER(wasmtime_caller_t), ctypes.POINTER(ctypes.c_char), ctypes.c_size_t, ctypes.POINTER(wasmtime_extern_t)]
3602def wasmtime_caller_export_get(caller: Any, name: Any, name_len: Any, item: Any) -> bool:
3603 return _wasmtime_caller_export_get(caller, name, name_len, item) # type: ignore
3605_wasmtime_caller_context = dll.wasmtime_caller_context
3606_wasmtime_caller_context.restype = ctypes.POINTER(wasmtime_context_t)
3607_wasmtime_caller_context.argtypes = [ctypes.POINTER(wasmtime_caller_t)]
3608def wasmtime_caller_context(caller: Any) -> ctypes._Pointer:
3609 return _wasmtime_caller_context(caller) # type: ignore
3611_wasmtime_func_from_raw = dll.wasmtime_func_from_raw
3612_wasmtime_func_from_raw.restype = None
3613_wasmtime_func_from_raw.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.c_void_p, ctypes.POINTER(wasmtime_func_t)]
3614def wasmtime_func_from_raw(context: Any, raw: Any, ret: Any) -> None:
3615 return _wasmtime_func_from_raw(context, raw, ret) # type: ignore
3617_wasmtime_func_to_raw = dll.wasmtime_func_to_raw
3618_wasmtime_func_to_raw.restype = ctypes.c_void_p
3619_wasmtime_func_to_raw.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_func_t)]
3620def wasmtime_func_to_raw(context: Any, func: Any) -> ctypes._Pointer:
3621 return _wasmtime_func_to_raw(context, func) # type: ignore
3623class wasmtime_instance(ctypes.Structure):
3624 _fields_ = [
3625 ("store_id", ctypes.c_uint64),
3626 ("__private", ctypes.c_size_t),
3627 ]
3628 store_id: int
3629 __private: int
3631wasmtime_instance_t = wasmtime_instance
3633_wasmtime_instance_new = dll.wasmtime_instance_new
3634_wasmtime_instance_new.restype = ctypes.POINTER(wasmtime_error_t)
3635_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))]
3636def wasmtime_instance_new(store: Any, module: Any, imports: Any, nimports: Any, instance: Any, trap: Any) -> ctypes._Pointer:
3637 return _wasmtime_instance_new(store, module, imports, nimports, instance, trap) # type: ignore
3639_wasmtime_instance_export_get = dll.wasmtime_instance_export_get
3640_wasmtime_instance_export_get.restype = ctypes.c_bool
3641_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)]
3642def wasmtime_instance_export_get(store: Any, instance: Any, name: Any, name_len: Any, item: Any) -> bool:
3643 return _wasmtime_instance_export_get(store, instance, name, name_len, item) # type: ignore
3645_wasmtime_instance_export_nth = dll.wasmtime_instance_export_nth
3646_wasmtime_instance_export_nth.restype = ctypes.c_bool
3647_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)]
3648def wasmtime_instance_export_nth(store: Any, instance: Any, index: Any, name: Any, name_len: Any, item: Any) -> bool:
3649 return _wasmtime_instance_export_nth(store, instance, index, name, name_len, item) # type: ignore
3651class wasmtime_instance_pre(ctypes.Structure):
3652 pass
3654wasmtime_instance_pre_t = wasmtime_instance_pre
3656_wasmtime_instance_pre_delete = dll.wasmtime_instance_pre_delete
3657_wasmtime_instance_pre_delete.restype = None
3658_wasmtime_instance_pre_delete.argtypes = [ctypes.POINTER(wasmtime_instance_pre_t)]
3659def wasmtime_instance_pre_delete(instance_pre: Any) -> None:
3660 return _wasmtime_instance_pre_delete(instance_pre) # type: ignore
3662_wasmtime_instance_pre_instantiate = dll.wasmtime_instance_pre_instantiate
3663_wasmtime_instance_pre_instantiate.restype = ctypes.POINTER(wasmtime_error_t)
3664_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))]
3665def wasmtime_instance_pre_instantiate(instance_pre: Any, store: Any, instance: Any, trap_ptr: Any) -> ctypes._Pointer:
3666 return _wasmtime_instance_pre_instantiate(instance_pre, store, instance, trap_ptr) # type: ignore
3668_wasmtime_instance_pre_module = dll.wasmtime_instance_pre_module
3669_wasmtime_instance_pre_module.restype = ctypes.POINTER(wasmtime_module_t)
3670_wasmtime_instance_pre_module.argtypes = [ctypes.POINTER(wasmtime_instance_pre_t)]
3671def wasmtime_instance_pre_module(instance_pre: Any) -> ctypes._Pointer:
3672 return _wasmtime_instance_pre_module(instance_pre) # type: ignore
3674class wasmtime_linker(ctypes.Structure):
3675 pass
3677wasmtime_linker_t = wasmtime_linker
3679_wasmtime_linker_new = dll.wasmtime_linker_new
3680_wasmtime_linker_new.restype = ctypes.POINTER(wasmtime_linker_t)
3681_wasmtime_linker_new.argtypes = [ctypes.POINTER(wasm_engine_t)]
3682def wasmtime_linker_new(engine: Any) -> ctypes._Pointer:
3683 return _wasmtime_linker_new(engine) # type: ignore
3685_wasmtime_linker_clone = dll.wasmtime_linker_clone
3686_wasmtime_linker_clone.restype = ctypes.POINTER(wasmtime_linker_t)
3687_wasmtime_linker_clone.argtypes = [ctypes.POINTER(wasmtime_linker_t)]
3688def wasmtime_linker_clone(linker: Any) -> ctypes._Pointer:
3689 return _wasmtime_linker_clone(linker) # type: ignore
3691_wasmtime_linker_delete = dll.wasmtime_linker_delete
3692_wasmtime_linker_delete.restype = None
3693_wasmtime_linker_delete.argtypes = [ctypes.POINTER(wasmtime_linker_t)]
3694def wasmtime_linker_delete(linker: Any) -> None:
3695 return _wasmtime_linker_delete(linker) # type: ignore
3697_wasmtime_linker_allow_shadowing = dll.wasmtime_linker_allow_shadowing
3698_wasmtime_linker_allow_shadowing.restype = None
3699_wasmtime_linker_allow_shadowing.argtypes = [ctypes.POINTER(wasmtime_linker_t), ctypes.c_bool]
3700def wasmtime_linker_allow_shadowing(linker: Any, allow_shadowing: Any) -> None:
3701 return _wasmtime_linker_allow_shadowing(linker, allow_shadowing) # type: ignore
3703_wasmtime_linker_define_unknown_imports_as_traps = dll.wasmtime_linker_define_unknown_imports_as_traps
3704_wasmtime_linker_define_unknown_imports_as_traps.restype = ctypes.POINTER(wasmtime_error_t)
3705_wasmtime_linker_define_unknown_imports_as_traps.argtypes = [ctypes.POINTER(wasmtime_linker_t), ctypes.POINTER(wasmtime_module_t)]
3706def wasmtime_linker_define_unknown_imports_as_traps(linker: Any, module: Any) -> ctypes._Pointer:
3707 return _wasmtime_linker_define_unknown_imports_as_traps(linker, module) # type: ignore
3709_wasmtime_linker_define_unknown_imports_as_default_values = dll.wasmtime_linker_define_unknown_imports_as_default_values
3710_wasmtime_linker_define_unknown_imports_as_default_values.restype = ctypes.POINTER(wasmtime_error_t)
3711_wasmtime_linker_define_unknown_imports_as_default_values.argtypes = [ctypes.POINTER(wasmtime_linker_t), ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_module_t)]
3712def wasmtime_linker_define_unknown_imports_as_default_values(linker: Any, store: Any, module: Any) -> ctypes._Pointer:
3713 return _wasmtime_linker_define_unknown_imports_as_default_values(linker, store, module) # type: ignore
3715_wasmtime_linker_define = dll.wasmtime_linker_define
3716_wasmtime_linker_define.restype = ctypes.POINTER(wasmtime_error_t)
3717_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)]
3718def wasmtime_linker_define(linker: Any, store: Any, module: Any, module_len: Any, name: Any, name_len: Any, item: Any) -> ctypes._Pointer:
3719 return _wasmtime_linker_define(linker, store, module, module_len, name, name_len, item) # type: ignore
3721_wasmtime_linker_define_func = dll.wasmtime_linker_define_func
3722_wasmtime_linker_define_func.restype = ctypes.POINTER(wasmtime_error_t)
3723_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)]
3724def 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:
3725 return _wasmtime_linker_define_func(linker, module, module_len, name, name_len, ty, cb, data, finalizer) # type: ignore
3727_wasmtime_linker_define_func_unchecked = dll.wasmtime_linker_define_func_unchecked
3728_wasmtime_linker_define_func_unchecked.restype = ctypes.POINTER(wasmtime_error_t)
3729_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)]
3730def 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:
3731 return _wasmtime_linker_define_func_unchecked(linker, module, module_len, name, name_len, ty, cb, data, finalizer) # type: ignore
3733_wasmtime_linker_define_wasi = dll.wasmtime_linker_define_wasi
3734_wasmtime_linker_define_wasi.restype = ctypes.POINTER(wasmtime_error_t)
3735_wasmtime_linker_define_wasi.argtypes = [ctypes.POINTER(wasmtime_linker_t)]
3736def wasmtime_linker_define_wasi(linker: Any) -> ctypes._Pointer:
3737 return _wasmtime_linker_define_wasi(linker) # type: ignore
3739_wasmtime_linker_define_instance = dll.wasmtime_linker_define_instance
3740_wasmtime_linker_define_instance.restype = ctypes.POINTER(wasmtime_error_t)
3741_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)]
3742def wasmtime_linker_define_instance(linker: Any, store: Any, name: Any, name_len: Any, instance: Any) -> ctypes._Pointer:
3743 return _wasmtime_linker_define_instance(linker, store, name, name_len, instance) # type: ignore
3745_wasmtime_linker_instantiate = dll.wasmtime_linker_instantiate
3746_wasmtime_linker_instantiate.restype = ctypes.POINTER(wasmtime_error_t)
3747_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))]
3748def wasmtime_linker_instantiate(linker: Any, store: Any, module: Any, instance: Any, trap: Any) -> ctypes._Pointer:
3749 return _wasmtime_linker_instantiate(linker, store, module, instance, trap) # type: ignore
3751_wasmtime_linker_module = dll.wasmtime_linker_module
3752_wasmtime_linker_module.restype = ctypes.POINTER(wasmtime_error_t)
3753_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)]
3754def wasmtime_linker_module(linker: Any, store: Any, name: Any, name_len: Any, module: Any) -> ctypes._Pointer:
3755 return _wasmtime_linker_module(linker, store, name, name_len, module) # type: ignore
3757_wasmtime_linker_get_default = dll.wasmtime_linker_get_default
3758_wasmtime_linker_get_default.restype = ctypes.POINTER(wasmtime_error_t)
3759_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)]
3760def wasmtime_linker_get_default(linker: Any, store: Any, name: Any, name_len: Any, func: Any) -> ctypes._Pointer:
3761 return _wasmtime_linker_get_default(linker, store, name, name_len, func) # type: ignore
3763_wasmtime_linker_get = dll.wasmtime_linker_get
3764_wasmtime_linker_get.restype = ctypes.c_bool
3765_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)]
3766def wasmtime_linker_get(linker: Any, store: Any, module: Any, module_len: Any, name: Any, name_len: Any, item: Any) -> bool:
3767 return _wasmtime_linker_get(linker, store, module, module_len, name, name_len, item) # type: ignore
3769_wasmtime_linker_instantiate_pre = dll.wasmtime_linker_instantiate_pre
3770_wasmtime_linker_instantiate_pre.restype = ctypes.POINTER(wasmtime_error_t)
3771_wasmtime_linker_instantiate_pre.argtypes = [ctypes.POINTER(wasmtime_linker_t), ctypes.POINTER(wasmtime_module_t), ctypes.POINTER(ctypes.POINTER(wasmtime_instance_pre_t))]
3772def wasmtime_linker_instantiate_pre(linker: Any, module: Any, instance_pre: Any) -> ctypes._Pointer:
3773 return _wasmtime_linker_instantiate_pre(linker, module, instance_pre) # type: ignore
3775_wasmtime_config_async_stack_size_set = dll.wasmtime_config_async_stack_size_set
3776_wasmtime_config_async_stack_size_set.restype = None
3777_wasmtime_config_async_stack_size_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_size_t]
3778def wasmtime_config_async_stack_size_set(arg0: Any, arg1: Any) -> None:
3779 return _wasmtime_config_async_stack_size_set(arg0, arg1) # type: ignore
3781_wasmtime_context_fuel_async_yield_interval = dll.wasmtime_context_fuel_async_yield_interval
3782_wasmtime_context_fuel_async_yield_interval.restype = ctypes.POINTER(wasmtime_error_t)
3783_wasmtime_context_fuel_async_yield_interval.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.c_uint64]
3784def wasmtime_context_fuel_async_yield_interval(context: Any, interval: Any) -> ctypes._Pointer:
3785 return _wasmtime_context_fuel_async_yield_interval(context, interval) # type: ignore
3787_wasmtime_context_epoch_deadline_async_yield_and_update = dll.wasmtime_context_epoch_deadline_async_yield_and_update
3788_wasmtime_context_epoch_deadline_async_yield_and_update.restype = ctypes.POINTER(wasmtime_error_t)
3789_wasmtime_context_epoch_deadline_async_yield_and_update.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.c_uint64]
3790def wasmtime_context_epoch_deadline_async_yield_and_update(context: Any, delta: Any) -> ctypes._Pointer:
3791 return _wasmtime_context_epoch_deadline_async_yield_and_update(context, delta) # type: ignore
3793wasmtime_func_async_continuation_callback_t = ctypes.CFUNCTYPE(ctypes.c_bool, ctypes.c_void_p)
3795class wasmtime_async_continuation_t(ctypes.Structure):
3796 _fields_ = [
3797 ("callback", wasmtime_func_async_continuation_callback_t),
3798 ("env", ctypes.c_void_p),
3799 ("finalizer", ctypes.CFUNCTYPE(None, ctypes.c_void_p)),
3800 ]
3801 callback: ctypes._Pointer
3802 env: ctypes._Pointer
3803 finalizer: ctypes._Pointer
3805wasmtime_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))
3807class wasmtime_call_future(ctypes.Structure):
3808 pass
3810wasmtime_call_future_t = wasmtime_call_future
3812_wasmtime_call_future_poll = dll.wasmtime_call_future_poll
3813_wasmtime_call_future_poll.restype = ctypes.c_bool
3814_wasmtime_call_future_poll.argtypes = [ctypes.POINTER(wasmtime_call_future_t)]
3815def wasmtime_call_future_poll(future: Any) -> bool:
3816 return _wasmtime_call_future_poll(future) # type: ignore
3818_wasmtime_call_future_delete = dll.wasmtime_call_future_delete
3819_wasmtime_call_future_delete.restype = None
3820_wasmtime_call_future_delete.argtypes = [ctypes.POINTER(wasmtime_call_future_t)]
3821def wasmtime_call_future_delete(future: Any) -> None:
3822 return _wasmtime_call_future_delete(future) # type: ignore
3824_wasmtime_func_call_async = dll.wasmtime_func_call_async
3825_wasmtime_func_call_async.restype = ctypes.POINTER(wasmtime_call_future_t)
3826_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))]
3827def wasmtime_func_call_async(context: Any, func: Any, args: Any, nargs: Any, results: Any, nresults: Any, trap_ret: Any, error_ret: Any) -> ctypes._Pointer:
3828 return _wasmtime_func_call_async(context, func, args, nargs, results, nresults, trap_ret, error_ret) # type: ignore
3830_wasmtime_linker_define_async_func = dll.wasmtime_linker_define_async_func
3831_wasmtime_linker_define_async_func.restype = ctypes.POINTER(wasmtime_error_t)
3832_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)]
3833def 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:
3834 return _wasmtime_linker_define_async_func(linker, module, module_len, name, name_len, ty, cb, data, finalizer) # type: ignore
3836_wasmtime_linker_instantiate_async = dll.wasmtime_linker_instantiate_async
3837_wasmtime_linker_instantiate_async.restype = ctypes.POINTER(wasmtime_call_future_t)
3838_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))]
3839def wasmtime_linker_instantiate_async(linker: Any, store: Any, module: Any, instance: Any, trap_ret: Any, error_ret: Any) -> ctypes._Pointer:
3840 return _wasmtime_linker_instantiate_async(linker, store, module, instance, trap_ret, error_ret) # type: ignore
3842_wasmtime_instance_pre_instantiate_async = dll.wasmtime_instance_pre_instantiate_async
3843_wasmtime_instance_pre_instantiate_async.restype = ctypes.POINTER(wasmtime_call_future_t)
3844_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))]
3845def wasmtime_instance_pre_instantiate_async(instance_pre: Any, store: Any, instance: Any, trap_ret: Any, error_ret: Any) -> ctypes._Pointer:
3846 return _wasmtime_instance_pre_instantiate_async(instance_pre, store, instance, trap_ret, error_ret) # type: ignore
3848wasmtime_stack_memory_get_callback_t = ctypes.CFUNCTYPE(ctypes.c_size_t, ctypes.c_void_p, ctypes.POINTER(ctypes.c_size_t))
3850class wasmtime_stack_memory(ctypes.Structure):
3851 _fields_ = [
3852 ("env", ctypes.c_void_p),
3853 ("get_stack_memory", wasmtime_stack_memory_get_callback_t),
3854 ("finalizer", ctypes.CFUNCTYPE(None, ctypes.c_void_p)),
3855 ]
3856 env: ctypes._Pointer
3857 get_stack_memory: ctypes._Pointer
3858 finalizer: ctypes._Pointer
3860wasmtime_stack_memory_t = wasmtime_stack_memory
3862wasmtime_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))
3864class wasmtime_stack_creator(ctypes.Structure):
3865 _fields_ = [
3866 ("env", ctypes.c_void_p),
3867 ("new_stack", wasmtime_new_stack_memory_callback_t),
3868 ("finalizer", ctypes.CFUNCTYPE(None, ctypes.c_void_p)),
3869 ]
3870 env: ctypes._Pointer
3871 new_stack: ctypes._Pointer
3872 finalizer: ctypes._Pointer
3874wasmtime_stack_creator_t = wasmtime_stack_creator
3876_wasmtime_config_host_stack_creator_set = dll.wasmtime_config_host_stack_creator_set
3877_wasmtime_config_host_stack_creator_set.restype = None
3878_wasmtime_config_host_stack_creator_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.POINTER(wasmtime_stack_creator_t)]
3879def wasmtime_config_host_stack_creator_set(arg0: Any, arg1: Any) -> None:
3880 return _wasmtime_config_host_stack_creator_set(arg0, arg1) # type: ignore
3882class wasmtime_component_resource_type(ctypes.Structure):
3883 pass
3885wasmtime_component_resource_type_t = wasmtime_component_resource_type
3887_wasmtime_component_resource_type_new_host = dll.wasmtime_component_resource_type_new_host
3888_wasmtime_component_resource_type_new_host.restype = ctypes.POINTER(wasmtime_component_resource_type_t)
3889_wasmtime_component_resource_type_new_host.argtypes = [ctypes.c_uint32]
3890def wasmtime_component_resource_type_new_host(ty: Any) -> ctypes._Pointer:
3891 return _wasmtime_component_resource_type_new_host(ty) # type: ignore
3893_wasmtime_component_resource_type_clone = dll.wasmtime_component_resource_type_clone
3894_wasmtime_component_resource_type_clone.restype = ctypes.POINTER(wasmtime_component_resource_type_t)
3895_wasmtime_component_resource_type_clone.argtypes = [ctypes.POINTER(wasmtime_component_resource_type_t)]
3896def wasmtime_component_resource_type_clone(ty: Any) -> ctypes._Pointer:
3897 return _wasmtime_component_resource_type_clone(ty) # type: ignore
3899_wasmtime_component_resource_type_equal = dll.wasmtime_component_resource_type_equal
3900_wasmtime_component_resource_type_equal.restype = ctypes.c_bool
3901_wasmtime_component_resource_type_equal.argtypes = [ctypes.POINTER(wasmtime_component_resource_type_t), ctypes.POINTER(wasmtime_component_resource_type_t)]
3902def wasmtime_component_resource_type_equal(a: Any, b: Any) -> bool:
3903 return _wasmtime_component_resource_type_equal(a, b) # type: ignore
3905_wasmtime_component_resource_type_delete = dll.wasmtime_component_resource_type_delete
3906_wasmtime_component_resource_type_delete.restype = None
3907_wasmtime_component_resource_type_delete.argtypes = [ctypes.POINTER(wasmtime_component_resource_type_t)]
3908def wasmtime_component_resource_type_delete(resource: Any) -> None:
3909 return _wasmtime_component_resource_type_delete(resource) # type: ignore
3911class wasmtime_component_valtype_t(ctypes.Structure):
3912 pass
3914class wasmtime_component_list_type(ctypes.Structure):
3915 pass
3917wasmtime_component_list_type_t = wasmtime_component_list_type
3919_wasmtime_component_list_type_clone = dll.wasmtime_component_list_type_clone
3920_wasmtime_component_list_type_clone.restype = ctypes.POINTER(wasmtime_component_list_type_t)
3921_wasmtime_component_list_type_clone.argtypes = [ctypes.POINTER(wasmtime_component_list_type_t)]
3922def wasmtime_component_list_type_clone(ty: Any) -> ctypes._Pointer:
3923 return _wasmtime_component_list_type_clone(ty) # type: ignore
3925_wasmtime_component_list_type_equal = dll.wasmtime_component_list_type_equal
3926_wasmtime_component_list_type_equal.restype = ctypes.c_bool
3927_wasmtime_component_list_type_equal.argtypes = [ctypes.POINTER(wasmtime_component_list_type_t), ctypes.POINTER(wasmtime_component_list_type_t)]
3928def wasmtime_component_list_type_equal(a: Any, b: Any) -> bool:
3929 return _wasmtime_component_list_type_equal(a, b) # type: ignore
3931_wasmtime_component_list_type_delete = dll.wasmtime_component_list_type_delete
3932_wasmtime_component_list_type_delete.restype = None
3933_wasmtime_component_list_type_delete.argtypes = [ctypes.POINTER(wasmtime_component_list_type_t)]
3934def wasmtime_component_list_type_delete(ptr: Any) -> None:
3935 return _wasmtime_component_list_type_delete(ptr) # type: ignore
3937_wasmtime_component_list_type_element = dll.wasmtime_component_list_type_element
3938_wasmtime_component_list_type_element.restype = None
3939_wasmtime_component_list_type_element.argtypes = [ctypes.POINTER(wasmtime_component_list_type_t), ctypes.POINTER(wasmtime_component_valtype_t)]
3940def wasmtime_component_list_type_element(ty: Any, type_ret: Any) -> None:
3941 return _wasmtime_component_list_type_element(ty, type_ret) # type: ignore
3943class wasmtime_component_record_type(ctypes.Structure):
3944 pass
3946wasmtime_component_record_type_t = wasmtime_component_record_type
3948_wasmtime_component_record_type_clone = dll.wasmtime_component_record_type_clone
3949_wasmtime_component_record_type_clone.restype = ctypes.POINTER(wasmtime_component_record_type_t)
3950_wasmtime_component_record_type_clone.argtypes = [ctypes.POINTER(wasmtime_component_record_type_t)]
3951def wasmtime_component_record_type_clone(ty: Any) -> ctypes._Pointer:
3952 return _wasmtime_component_record_type_clone(ty) # type: ignore
3954_wasmtime_component_record_type_equal = dll.wasmtime_component_record_type_equal
3955_wasmtime_component_record_type_equal.restype = ctypes.c_bool
3956_wasmtime_component_record_type_equal.argtypes = [ctypes.POINTER(wasmtime_component_record_type_t), ctypes.POINTER(wasmtime_component_record_type_t)]
3957def wasmtime_component_record_type_equal(a: Any, b: Any) -> bool:
3958 return _wasmtime_component_record_type_equal(a, b) # type: ignore
3960_wasmtime_component_record_type_delete = dll.wasmtime_component_record_type_delete
3961_wasmtime_component_record_type_delete.restype = None
3962_wasmtime_component_record_type_delete.argtypes = [ctypes.POINTER(wasmtime_component_record_type_t)]
3963def wasmtime_component_record_type_delete(ptr: Any) -> None:
3964 return _wasmtime_component_record_type_delete(ptr) # type: ignore
3966_wasmtime_component_record_type_field_count = dll.wasmtime_component_record_type_field_count
3967_wasmtime_component_record_type_field_count.restype = ctypes.c_size_t
3968_wasmtime_component_record_type_field_count.argtypes = [ctypes.POINTER(wasmtime_component_record_type_t)]
3969def wasmtime_component_record_type_field_count(ty: Any) -> int:
3970 return _wasmtime_component_record_type_field_count(ty) # type: ignore
3972_wasmtime_component_record_type_field_nth = dll.wasmtime_component_record_type_field_nth
3973_wasmtime_component_record_type_field_nth.restype = ctypes.c_bool
3974_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)]
3975def wasmtime_component_record_type_field_nth(ty: Any, nth: Any, name_ret: Any, name_len_ret: Any, type_ret: Any) -> bool:
3976 return _wasmtime_component_record_type_field_nth(ty, nth, name_ret, name_len_ret, type_ret) # type: ignore
3978class wasmtime_component_tuple_type(ctypes.Structure):
3979 pass
3981wasmtime_component_tuple_type_t = wasmtime_component_tuple_type
3983_wasmtime_component_tuple_type_clone = dll.wasmtime_component_tuple_type_clone
3984_wasmtime_component_tuple_type_clone.restype = ctypes.POINTER(wasmtime_component_tuple_type_t)
3985_wasmtime_component_tuple_type_clone.argtypes = [ctypes.POINTER(wasmtime_component_tuple_type_t)]
3986def wasmtime_component_tuple_type_clone(ty: Any) -> ctypes._Pointer:
3987 return _wasmtime_component_tuple_type_clone(ty) # type: ignore
3989_wasmtime_component_tuple_type_equal = dll.wasmtime_component_tuple_type_equal
3990_wasmtime_component_tuple_type_equal.restype = ctypes.c_bool
3991_wasmtime_component_tuple_type_equal.argtypes = [ctypes.POINTER(wasmtime_component_tuple_type_t), ctypes.POINTER(wasmtime_component_tuple_type_t)]
3992def wasmtime_component_tuple_type_equal(a: Any, b: Any) -> bool:
3993 return _wasmtime_component_tuple_type_equal(a, b) # type: ignore
3995_wasmtime_component_tuple_type_delete = dll.wasmtime_component_tuple_type_delete
3996_wasmtime_component_tuple_type_delete.restype = None
3997_wasmtime_component_tuple_type_delete.argtypes = [ctypes.POINTER(wasmtime_component_tuple_type_t)]
3998def wasmtime_component_tuple_type_delete(ptr: Any) -> None:
3999 return _wasmtime_component_tuple_type_delete(ptr) # type: ignore
4001_wasmtime_component_tuple_type_types_count = dll.wasmtime_component_tuple_type_types_count
4002_wasmtime_component_tuple_type_types_count.restype = ctypes.c_size_t
4003_wasmtime_component_tuple_type_types_count.argtypes = [ctypes.POINTER(wasmtime_component_tuple_type_t)]
4004def wasmtime_component_tuple_type_types_count(ty: Any) -> int:
4005 return _wasmtime_component_tuple_type_types_count(ty) # type: ignore
4007_wasmtime_component_tuple_type_types_nth = dll.wasmtime_component_tuple_type_types_nth
4008_wasmtime_component_tuple_type_types_nth.restype = ctypes.c_bool
4009_wasmtime_component_tuple_type_types_nth.argtypes = [ctypes.POINTER(wasmtime_component_tuple_type_t), ctypes.c_size_t, ctypes.POINTER(wasmtime_component_valtype_t)]
4010def wasmtime_component_tuple_type_types_nth(ty: Any, nth: Any, type_ret: Any) -> bool:
4011 return _wasmtime_component_tuple_type_types_nth(ty, nth, type_ret) # type: ignore
4013class wasmtime_component_variant_type(ctypes.Structure):
4014 pass
4016wasmtime_component_variant_type_t = wasmtime_component_variant_type
4018_wasmtime_component_variant_type_clone = dll.wasmtime_component_variant_type_clone
4019_wasmtime_component_variant_type_clone.restype = ctypes.POINTER(wasmtime_component_variant_type_t)
4020_wasmtime_component_variant_type_clone.argtypes = [ctypes.POINTER(wasmtime_component_variant_type_t)]
4021def wasmtime_component_variant_type_clone(ty: Any) -> ctypes._Pointer:
4022 return _wasmtime_component_variant_type_clone(ty) # type: ignore
4024_wasmtime_component_variant_type_equal = dll.wasmtime_component_variant_type_equal
4025_wasmtime_component_variant_type_equal.restype = ctypes.c_bool
4026_wasmtime_component_variant_type_equal.argtypes = [ctypes.POINTER(wasmtime_component_variant_type_t), ctypes.POINTER(wasmtime_component_variant_type_t)]
4027def wasmtime_component_variant_type_equal(a: Any, b: Any) -> bool:
4028 return _wasmtime_component_variant_type_equal(a, b) # type: ignore
4030_wasmtime_component_variant_type_delete = dll.wasmtime_component_variant_type_delete
4031_wasmtime_component_variant_type_delete.restype = None
4032_wasmtime_component_variant_type_delete.argtypes = [ctypes.POINTER(wasmtime_component_variant_type_t)]
4033def wasmtime_component_variant_type_delete(ptr: Any) -> None:
4034 return _wasmtime_component_variant_type_delete(ptr) # type: ignore
4036_wasmtime_component_variant_type_case_count = dll.wasmtime_component_variant_type_case_count
4037_wasmtime_component_variant_type_case_count.restype = ctypes.c_size_t
4038_wasmtime_component_variant_type_case_count.argtypes = [ctypes.POINTER(wasmtime_component_variant_type_t)]
4039def wasmtime_component_variant_type_case_count(ty: Any) -> int:
4040 return _wasmtime_component_variant_type_case_count(ty) # type: ignore
4042_wasmtime_component_variant_type_case_nth = dll.wasmtime_component_variant_type_case_nth
4043_wasmtime_component_variant_type_case_nth.restype = ctypes.c_bool
4044_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)]
4045def 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:
4046 return _wasmtime_component_variant_type_case_nth(ty, nth, name_ret, name_len_ret, has_payload_ret, payload_ret) # type: ignore
4048class wasmtime_component_enum_type(ctypes.Structure):
4049 pass
4051wasmtime_component_enum_type_t = wasmtime_component_enum_type
4053_wasmtime_component_enum_type_clone = dll.wasmtime_component_enum_type_clone
4054_wasmtime_component_enum_type_clone.restype = ctypes.POINTER(wasmtime_component_enum_type_t)
4055_wasmtime_component_enum_type_clone.argtypes = [ctypes.POINTER(wasmtime_component_enum_type_t)]
4056def wasmtime_component_enum_type_clone(ty: Any) -> ctypes._Pointer:
4057 return _wasmtime_component_enum_type_clone(ty) # type: ignore
4059_wasmtime_component_enum_type_equal = dll.wasmtime_component_enum_type_equal
4060_wasmtime_component_enum_type_equal.restype = ctypes.c_bool
4061_wasmtime_component_enum_type_equal.argtypes = [ctypes.POINTER(wasmtime_component_enum_type_t), ctypes.POINTER(wasmtime_component_enum_type_t)]
4062def wasmtime_component_enum_type_equal(a: Any, b: Any) -> bool:
4063 return _wasmtime_component_enum_type_equal(a, b) # type: ignore
4065_wasmtime_component_enum_type_delete = dll.wasmtime_component_enum_type_delete
4066_wasmtime_component_enum_type_delete.restype = None
4067_wasmtime_component_enum_type_delete.argtypes = [ctypes.POINTER(wasmtime_component_enum_type_t)]
4068def wasmtime_component_enum_type_delete(ptr: Any) -> None:
4069 return _wasmtime_component_enum_type_delete(ptr) # type: ignore
4071_wasmtime_component_enum_type_names_count = dll.wasmtime_component_enum_type_names_count
4072_wasmtime_component_enum_type_names_count.restype = ctypes.c_size_t
4073_wasmtime_component_enum_type_names_count.argtypes = [ctypes.POINTER(wasmtime_component_enum_type_t)]
4074def wasmtime_component_enum_type_names_count(ty: Any) -> int:
4075 return _wasmtime_component_enum_type_names_count(ty) # type: ignore
4077_wasmtime_component_enum_type_names_nth = dll.wasmtime_component_enum_type_names_nth
4078_wasmtime_component_enum_type_names_nth.restype = ctypes.c_bool
4079_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)]
4080def wasmtime_component_enum_type_names_nth(ty: Any, nth: Any, name_ret: Any, name_len_ret: Any) -> bool:
4081 return _wasmtime_component_enum_type_names_nth(ty, nth, name_ret, name_len_ret) # type: ignore
4083class wasmtime_component_option_type(ctypes.Structure):
4084 pass
4086wasmtime_component_option_type_t = wasmtime_component_option_type
4088_wasmtime_component_option_type_clone = dll.wasmtime_component_option_type_clone
4089_wasmtime_component_option_type_clone.restype = ctypes.POINTER(wasmtime_component_option_type_t)
4090_wasmtime_component_option_type_clone.argtypes = [ctypes.POINTER(wasmtime_component_option_type_t)]
4091def wasmtime_component_option_type_clone(ty: Any) -> ctypes._Pointer:
4092 return _wasmtime_component_option_type_clone(ty) # type: ignore
4094_wasmtime_component_option_type_equal = dll.wasmtime_component_option_type_equal
4095_wasmtime_component_option_type_equal.restype = ctypes.c_bool
4096_wasmtime_component_option_type_equal.argtypes = [ctypes.POINTER(wasmtime_component_option_type_t), ctypes.POINTER(wasmtime_component_option_type_t)]
4097def wasmtime_component_option_type_equal(a: Any, b: Any) -> bool:
4098 return _wasmtime_component_option_type_equal(a, b) # type: ignore
4100_wasmtime_component_option_type_delete = dll.wasmtime_component_option_type_delete
4101_wasmtime_component_option_type_delete.restype = None
4102_wasmtime_component_option_type_delete.argtypes = [ctypes.POINTER(wasmtime_component_option_type_t)]
4103def wasmtime_component_option_type_delete(ptr: Any) -> None:
4104 return _wasmtime_component_option_type_delete(ptr) # type: ignore
4106_wasmtime_component_option_type_ty = dll.wasmtime_component_option_type_ty
4107_wasmtime_component_option_type_ty.restype = None
4108_wasmtime_component_option_type_ty.argtypes = [ctypes.POINTER(wasmtime_component_option_type_t), ctypes.POINTER(wasmtime_component_valtype_t)]
4109def wasmtime_component_option_type_ty(ty: Any, type_ret: Any) -> None:
4110 return _wasmtime_component_option_type_ty(ty, type_ret) # type: ignore
4112class wasmtime_component_result_type(ctypes.Structure):
4113 pass
4115wasmtime_component_result_type_t = wasmtime_component_result_type
4117_wasmtime_component_result_type_clone = dll.wasmtime_component_result_type_clone
4118_wasmtime_component_result_type_clone.restype = ctypes.POINTER(wasmtime_component_result_type_t)
4119_wasmtime_component_result_type_clone.argtypes = [ctypes.POINTER(wasmtime_component_result_type_t)]
4120def wasmtime_component_result_type_clone(ty: Any) -> ctypes._Pointer:
4121 return _wasmtime_component_result_type_clone(ty) # type: ignore
4123_wasmtime_component_result_type_equal = dll.wasmtime_component_result_type_equal
4124_wasmtime_component_result_type_equal.restype = ctypes.c_bool
4125_wasmtime_component_result_type_equal.argtypes = [ctypes.POINTER(wasmtime_component_result_type_t), ctypes.POINTER(wasmtime_component_result_type_t)]
4126def wasmtime_component_result_type_equal(a: Any, b: Any) -> bool:
4127 return _wasmtime_component_result_type_equal(a, b) # type: ignore
4129_wasmtime_component_result_type_delete = dll.wasmtime_component_result_type_delete
4130_wasmtime_component_result_type_delete.restype = None
4131_wasmtime_component_result_type_delete.argtypes = [ctypes.POINTER(wasmtime_component_result_type_t)]
4132def wasmtime_component_result_type_delete(ptr: Any) -> None:
4133 return _wasmtime_component_result_type_delete(ptr) # type: ignore
4135_wasmtime_component_result_type_ok = dll.wasmtime_component_result_type_ok
4136_wasmtime_component_result_type_ok.restype = ctypes.c_bool
4137_wasmtime_component_result_type_ok.argtypes = [ctypes.POINTER(wasmtime_component_result_type_t), ctypes.POINTER(wasmtime_component_valtype_t)]
4138def wasmtime_component_result_type_ok(ty: Any, type_ret: Any) -> bool:
4139 return _wasmtime_component_result_type_ok(ty, type_ret) # type: ignore
4141_wasmtime_component_result_type_err = dll.wasmtime_component_result_type_err
4142_wasmtime_component_result_type_err.restype = ctypes.c_bool
4143_wasmtime_component_result_type_err.argtypes = [ctypes.POINTER(wasmtime_component_result_type_t), ctypes.POINTER(wasmtime_component_valtype_t)]
4144def wasmtime_component_result_type_err(ty: Any, type_ret: Any) -> bool:
4145 return _wasmtime_component_result_type_err(ty, type_ret) # type: ignore
4147class wasmtime_component_flags_type(ctypes.Structure):
4148 pass
4150wasmtime_component_flags_type_t = wasmtime_component_flags_type
4152_wasmtime_component_flags_type_clone = dll.wasmtime_component_flags_type_clone
4153_wasmtime_component_flags_type_clone.restype = ctypes.POINTER(wasmtime_component_flags_type_t)
4154_wasmtime_component_flags_type_clone.argtypes = [ctypes.POINTER(wasmtime_component_flags_type_t)]
4155def wasmtime_component_flags_type_clone(ty: Any) -> ctypes._Pointer:
4156 return _wasmtime_component_flags_type_clone(ty) # type: ignore
4158_wasmtime_component_flags_type_equal = dll.wasmtime_component_flags_type_equal
4159_wasmtime_component_flags_type_equal.restype = ctypes.c_bool
4160_wasmtime_component_flags_type_equal.argtypes = [ctypes.POINTER(wasmtime_component_flags_type_t), ctypes.POINTER(wasmtime_component_flags_type_t)]
4161def wasmtime_component_flags_type_equal(a: Any, b: Any) -> bool:
4162 return _wasmtime_component_flags_type_equal(a, b) # type: ignore
4164_wasmtime_component_flags_type_delete = dll.wasmtime_component_flags_type_delete
4165_wasmtime_component_flags_type_delete.restype = None
4166_wasmtime_component_flags_type_delete.argtypes = [ctypes.POINTER(wasmtime_component_flags_type_t)]
4167def wasmtime_component_flags_type_delete(ptr: Any) -> None:
4168 return _wasmtime_component_flags_type_delete(ptr) # type: ignore
4170_wasmtime_component_flags_type_names_count = dll.wasmtime_component_flags_type_names_count
4171_wasmtime_component_flags_type_names_count.restype = ctypes.c_size_t
4172_wasmtime_component_flags_type_names_count.argtypes = [ctypes.POINTER(wasmtime_component_flags_type_t)]
4173def wasmtime_component_flags_type_names_count(ty: Any) -> int:
4174 return _wasmtime_component_flags_type_names_count(ty) # type: ignore
4176_wasmtime_component_flags_type_names_nth = dll.wasmtime_component_flags_type_names_nth
4177_wasmtime_component_flags_type_names_nth.restype = ctypes.c_bool
4178_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)]
4179def wasmtime_component_flags_type_names_nth(ty: Any, nth: Any, name_ret: Any, name_len_ret: Any) -> bool:
4180 return _wasmtime_component_flags_type_names_nth(ty, nth, name_ret, name_len_ret) # type: ignore
4182class wasmtime_component_future_type(ctypes.Structure):
4183 pass
4185wasmtime_component_future_type_t = wasmtime_component_future_type
4187_wasmtime_component_future_type_clone = dll.wasmtime_component_future_type_clone
4188_wasmtime_component_future_type_clone.restype = ctypes.POINTER(wasmtime_component_future_type_t)
4189_wasmtime_component_future_type_clone.argtypes = [ctypes.POINTER(wasmtime_component_future_type_t)]
4190def wasmtime_component_future_type_clone(ty: Any) -> ctypes._Pointer:
4191 return _wasmtime_component_future_type_clone(ty) # type: ignore
4193_wasmtime_component_future_type_equal = dll.wasmtime_component_future_type_equal
4194_wasmtime_component_future_type_equal.restype = ctypes.c_bool
4195_wasmtime_component_future_type_equal.argtypes = [ctypes.POINTER(wasmtime_component_future_type_t), ctypes.POINTER(wasmtime_component_future_type_t)]
4196def wasmtime_component_future_type_equal(a: Any, b: Any) -> bool:
4197 return _wasmtime_component_future_type_equal(a, b) # type: ignore
4199_wasmtime_component_future_type_delete = dll.wasmtime_component_future_type_delete
4200_wasmtime_component_future_type_delete.restype = None
4201_wasmtime_component_future_type_delete.argtypes = [ctypes.POINTER(wasmtime_component_future_type_t)]
4202def wasmtime_component_future_type_delete(ptr: Any) -> None:
4203 return _wasmtime_component_future_type_delete(ptr) # type: ignore
4205_wasmtime_component_future_type_ty = dll.wasmtime_component_future_type_ty
4206_wasmtime_component_future_type_ty.restype = ctypes.c_bool
4207_wasmtime_component_future_type_ty.argtypes = [ctypes.POINTER(wasmtime_component_future_type_t), ctypes.POINTER(wasmtime_component_valtype_t)]
4208def wasmtime_component_future_type_ty(ty: Any, type_ret: Any) -> bool:
4209 return _wasmtime_component_future_type_ty(ty, type_ret) # type: ignore
4211class wasmtime_component_stream_type(ctypes.Structure):
4212 pass
4214wasmtime_component_stream_type_t = wasmtime_component_stream_type
4216_wasmtime_component_stream_type_clone = dll.wasmtime_component_stream_type_clone
4217_wasmtime_component_stream_type_clone.restype = ctypes.POINTER(wasmtime_component_stream_type_t)
4218_wasmtime_component_stream_type_clone.argtypes = [ctypes.POINTER(wasmtime_component_stream_type_t)]
4219def wasmtime_component_stream_type_clone(ty: Any) -> ctypes._Pointer:
4220 return _wasmtime_component_stream_type_clone(ty) # type: ignore
4222_wasmtime_component_stream_type_equal = dll.wasmtime_component_stream_type_equal
4223_wasmtime_component_stream_type_equal.restype = ctypes.c_bool
4224_wasmtime_component_stream_type_equal.argtypes = [ctypes.POINTER(wasmtime_component_stream_type_t), ctypes.POINTER(wasmtime_component_stream_type_t)]
4225def wasmtime_component_stream_type_equal(a: Any, b: Any) -> bool:
4226 return _wasmtime_component_stream_type_equal(a, b) # type: ignore
4228_wasmtime_component_stream_type_delete = dll.wasmtime_component_stream_type_delete
4229_wasmtime_component_stream_type_delete.restype = None
4230_wasmtime_component_stream_type_delete.argtypes = [ctypes.POINTER(wasmtime_component_stream_type_t)]
4231def wasmtime_component_stream_type_delete(ptr: Any) -> None:
4232 return _wasmtime_component_stream_type_delete(ptr) # type: ignore
4234_wasmtime_component_stream_type_ty = dll.wasmtime_component_stream_type_ty
4235_wasmtime_component_stream_type_ty.restype = ctypes.c_bool
4236_wasmtime_component_stream_type_ty.argtypes = [ctypes.POINTER(wasmtime_component_stream_type_t), ctypes.POINTER(wasmtime_component_valtype_t)]
4237def wasmtime_component_stream_type_ty(ty: Any, type_ret: Any) -> bool:
4238 return _wasmtime_component_stream_type_ty(ty, type_ret) # type: ignore
4240class wasmtime_component_map_type(ctypes.Structure):
4241 pass
4243wasmtime_component_map_type_t = wasmtime_component_map_type
4245_wasmtime_component_map_type_clone = dll.wasmtime_component_map_type_clone
4246_wasmtime_component_map_type_clone.restype = ctypes.POINTER(wasmtime_component_map_type_t)
4247_wasmtime_component_map_type_clone.argtypes = [ctypes.POINTER(wasmtime_component_map_type_t)]
4248def wasmtime_component_map_type_clone(ty: Any) -> ctypes._Pointer:
4249 return _wasmtime_component_map_type_clone(ty) # type: ignore
4251_wasmtime_component_map_type_equal = dll.wasmtime_component_map_type_equal
4252_wasmtime_component_map_type_equal.restype = ctypes.c_bool
4253_wasmtime_component_map_type_equal.argtypes = [ctypes.POINTER(wasmtime_component_map_type_t), ctypes.POINTER(wasmtime_component_map_type_t)]
4254def wasmtime_component_map_type_equal(a: Any, b: Any) -> bool:
4255 return _wasmtime_component_map_type_equal(a, b) # type: ignore
4257_wasmtime_component_map_type_delete = dll.wasmtime_component_map_type_delete
4258_wasmtime_component_map_type_delete.restype = None
4259_wasmtime_component_map_type_delete.argtypes = [ctypes.POINTER(wasmtime_component_map_type_t)]
4260def wasmtime_component_map_type_delete(ptr: Any) -> None:
4261 return _wasmtime_component_map_type_delete(ptr) # type: ignore
4263_wasmtime_component_map_type_key = dll.wasmtime_component_map_type_key
4264_wasmtime_component_map_type_key.restype = None
4265_wasmtime_component_map_type_key.argtypes = [ctypes.POINTER(wasmtime_component_map_type_t), ctypes.POINTER(wasmtime_component_valtype_t)]
4266def wasmtime_component_map_type_key(ty: Any, type_ret: Any) -> None:
4267 return _wasmtime_component_map_type_key(ty, type_ret) # type: ignore
4269_wasmtime_component_map_type_value = dll.wasmtime_component_map_type_value
4270_wasmtime_component_map_type_value.restype = None
4271_wasmtime_component_map_type_value.argtypes = [ctypes.POINTER(wasmtime_component_map_type_t), ctypes.POINTER(wasmtime_component_valtype_t)]
4272def wasmtime_component_map_type_value(ty: Any, type_ret: Any) -> None:
4273 return _wasmtime_component_map_type_value(ty, type_ret) # type: ignore
4275wasmtime_component_valtype_kind_t = ctypes.c_uint8
4277class wasmtime_component_valtype_union(ctypes.Union):
4278 _fields_ = [
4279 ("list", ctypes.POINTER(wasmtime_component_list_type_t)),
4280 ("record", ctypes.POINTER(wasmtime_component_record_type_t)),
4281 ("tuple", ctypes.POINTER(wasmtime_component_tuple_type_t)),
4282 ("variant", ctypes.POINTER(wasmtime_component_variant_type_t)),
4283 ("enum_", ctypes.POINTER(wasmtime_component_enum_type_t)),
4284 ("option", ctypes.POINTER(wasmtime_component_option_type_t)),
4285 ("result", ctypes.POINTER(wasmtime_component_result_type_t)),
4286 ("flags", ctypes.POINTER(wasmtime_component_flags_type_t)),
4287 ("own", ctypes.POINTER(wasmtime_component_resource_type_t)),
4288 ("borrow", ctypes.POINTER(wasmtime_component_resource_type_t)),
4289 ("future", ctypes.POINTER(wasmtime_component_future_type_t)),
4290 ("stream", ctypes.POINTER(wasmtime_component_stream_type_t)),
4291 ("map", ctypes.POINTER(wasmtime_component_map_type_t)),
4292 ]
4293 list: ctypes._Pointer
4294 record: ctypes._Pointer
4295 tuple: ctypes._Pointer
4296 variant: ctypes._Pointer
4297 enum_: ctypes._Pointer
4298 option: ctypes._Pointer
4299 result: ctypes._Pointer
4300 flags: ctypes._Pointer
4301 own: ctypes._Pointer
4302 borrow: ctypes._Pointer
4303 future: ctypes._Pointer
4304 stream: ctypes._Pointer
4305 map: ctypes._Pointer
4307wasmtime_component_valtype_union_t = wasmtime_component_valtype_union
4309wasmtime_component_valtype_t._fields_ = [
4310 ("kind", wasmtime_component_valtype_kind_t),
4311 ("of", wasmtime_component_valtype_union_t),
4312 ]
4314_wasmtime_component_valtype_clone = dll.wasmtime_component_valtype_clone
4315_wasmtime_component_valtype_clone.restype = None
4316_wasmtime_component_valtype_clone.argtypes = [ctypes.POINTER(wasmtime_component_valtype_t), ctypes.POINTER(wasmtime_component_valtype_t)]
4317def wasmtime_component_valtype_clone(ty: Any, out: Any) -> None:
4318 return _wasmtime_component_valtype_clone(ty, out) # type: ignore
4320_wasmtime_component_valtype_equal = dll.wasmtime_component_valtype_equal
4321_wasmtime_component_valtype_equal.restype = ctypes.c_bool
4322_wasmtime_component_valtype_equal.argtypes = [ctypes.POINTER(wasmtime_component_valtype_t), ctypes.POINTER(wasmtime_component_valtype_t)]
4323def wasmtime_component_valtype_equal(a: Any, b: Any) -> bool:
4324 return _wasmtime_component_valtype_equal(a, b) # type: ignore
4326_wasmtime_component_valtype_delete = dll.wasmtime_component_valtype_delete
4327_wasmtime_component_valtype_delete.restype = None
4328_wasmtime_component_valtype_delete.argtypes = [ctypes.POINTER(wasmtime_component_valtype_t)]
4329def wasmtime_component_valtype_delete(ptr: Any) -> None:
4330 return _wasmtime_component_valtype_delete(ptr) # type: ignore
4332class wasmtime_component_func_type_t(ctypes.Structure):
4333 pass
4335_wasmtime_component_func_type_clone = dll.wasmtime_component_func_type_clone
4336_wasmtime_component_func_type_clone.restype = ctypes.POINTER(wasmtime_component_func_type_t)
4337_wasmtime_component_func_type_clone.argtypes = [ctypes.POINTER(wasmtime_component_func_type_t)]
4338def wasmtime_component_func_type_clone(ty: Any) -> ctypes._Pointer:
4339 return _wasmtime_component_func_type_clone(ty) # type: ignore
4341_wasmtime_component_func_type_delete = dll.wasmtime_component_func_type_delete
4342_wasmtime_component_func_type_delete.restype = None
4343_wasmtime_component_func_type_delete.argtypes = [ctypes.POINTER(wasmtime_component_func_type_t)]
4344def wasmtime_component_func_type_delete(ty: Any) -> None:
4345 return _wasmtime_component_func_type_delete(ty) # type: ignore
4347_wasmtime_component_func_type_async = dll.wasmtime_component_func_type_async
4348_wasmtime_component_func_type_async.restype = ctypes.c_bool
4349_wasmtime_component_func_type_async.argtypes = [ctypes.POINTER(wasmtime_component_func_type_t)]
4350def wasmtime_component_func_type_async(ty: Any) -> bool:
4351 return _wasmtime_component_func_type_async(ty) # type: ignore
4353_wasmtime_component_func_type_param_count = dll.wasmtime_component_func_type_param_count
4354_wasmtime_component_func_type_param_count.restype = ctypes.c_size_t
4355_wasmtime_component_func_type_param_count.argtypes = [ctypes.POINTER(wasmtime_component_func_type_t)]
4356def wasmtime_component_func_type_param_count(ty: Any) -> int:
4357 return _wasmtime_component_func_type_param_count(ty) # type: ignore
4359_wasmtime_component_func_type_param_nth = dll.wasmtime_component_func_type_param_nth
4360_wasmtime_component_func_type_param_nth.restype = ctypes.c_bool
4361_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)]
4362def wasmtime_component_func_type_param_nth(ty: Any, nth: Any, name_ret: Any, name_len_ret: Any, type_ret: Any) -> bool:
4363 return _wasmtime_component_func_type_param_nth(ty, nth, name_ret, name_len_ret, type_ret) # type: ignore
4365_wasmtime_component_func_type_result = dll.wasmtime_component_func_type_result
4366_wasmtime_component_func_type_result.restype = ctypes.c_bool
4367_wasmtime_component_func_type_result.argtypes = [ctypes.POINTER(wasmtime_component_func_type_t), ctypes.POINTER(wasmtime_component_valtype_t)]
4368def wasmtime_component_func_type_result(ty: Any, type_ret: Any) -> bool:
4369 return _wasmtime_component_func_type_result(ty, type_ret) # type: ignore
4371class wasmtime_component_extern_t(ctypes.Structure):
4372 pass
4374class wasmtime_component_instance_type(ctypes.Structure):
4375 pass
4377wasmtime_component_instance_type_t = wasmtime_component_instance_type
4379_wasmtime_component_instance_type_clone = dll.wasmtime_component_instance_type_clone
4380_wasmtime_component_instance_type_clone.restype = ctypes.POINTER(wasmtime_component_instance_type_t)
4381_wasmtime_component_instance_type_clone.argtypes = [ctypes.POINTER(wasmtime_component_instance_type_t)]
4382def wasmtime_component_instance_type_clone(ty: Any) -> ctypes._Pointer:
4383 return _wasmtime_component_instance_type_clone(ty) # type: ignore
4385_wasmtime_component_instance_type_delete = dll.wasmtime_component_instance_type_delete
4386_wasmtime_component_instance_type_delete.restype = None
4387_wasmtime_component_instance_type_delete.argtypes = [ctypes.POINTER(wasmtime_component_instance_type_t)]
4388def wasmtime_component_instance_type_delete(ty: Any) -> None:
4389 return _wasmtime_component_instance_type_delete(ty) # type: ignore
4391_wasmtime_component_instance_type_export_count = dll.wasmtime_component_instance_type_export_count
4392_wasmtime_component_instance_type_export_count.restype = ctypes.c_size_t
4393_wasmtime_component_instance_type_export_count.argtypes = [ctypes.POINTER(wasmtime_component_instance_type_t), ctypes.POINTER(wasm_engine_t)]
4394def wasmtime_component_instance_type_export_count(ty: Any, engine: Any) -> int:
4395 return _wasmtime_component_instance_type_export_count(ty, engine) # type: ignore
4397_wasmtime_component_instance_type_export_get = dll.wasmtime_component_instance_type_export_get
4398_wasmtime_component_instance_type_export_get.restype = ctypes.c_bool
4399_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(ctypes.POINTER(wasmtime_component_extern_t))]
4400def wasmtime_component_instance_type_export_get(ty: Any, engine: Any, name: Any, name_len: Any, ret: Any) -> bool:
4401 return _wasmtime_component_instance_type_export_get(ty, engine, name, name_len, ret) # type: ignore
4403_wasmtime_component_instance_type_export_nth = dll.wasmtime_component_instance_type_export_nth
4404_wasmtime_component_instance_type_export_nth.restype = ctypes.c_bool
4405_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(ctypes.POINTER(wasmtime_component_extern_t))]
4406def wasmtime_component_instance_type_export_nth(ty: Any, engine: Any, nth: Any, name_ret: Any, name_len_ret: Any, ret: Any) -> bool:
4407 return _wasmtime_component_instance_type_export_nth(ty, engine, nth, name_ret, name_len_ret, ret) # type: ignore
4409class wasmtime_module_type(ctypes.Structure):
4410 pass
4412wasmtime_module_type_t = wasmtime_module_type
4414_wasmtime_module_type_clone = dll.wasmtime_module_type_clone
4415_wasmtime_module_type_clone.restype = ctypes.POINTER(wasmtime_module_type_t)
4416_wasmtime_module_type_clone.argtypes = [ctypes.POINTER(wasmtime_module_type_t)]
4417def wasmtime_module_type_clone(ty: Any) -> ctypes._Pointer:
4418 return _wasmtime_module_type_clone(ty) # type: ignore
4420_wasmtime_module_type_delete = dll.wasmtime_module_type_delete
4421_wasmtime_module_type_delete.restype = None
4422_wasmtime_module_type_delete.argtypes = [ctypes.POINTER(wasmtime_module_type_t)]
4423def wasmtime_module_type_delete(ty: Any) -> None:
4424 return _wasmtime_module_type_delete(ty) # type: ignore
4426_wasmtime_module_type_import_count = dll.wasmtime_module_type_import_count
4427_wasmtime_module_type_import_count.restype = ctypes.c_size_t
4428_wasmtime_module_type_import_count.argtypes = [ctypes.POINTER(wasmtime_module_type_t), ctypes.POINTER(wasm_engine_t)]
4429def wasmtime_module_type_import_count(ty: Any, engine: Any) -> int:
4430 return _wasmtime_module_type_import_count(ty, engine) # type: ignore
4432_wasmtime_module_type_import_nth = dll.wasmtime_module_type_import_nth
4433_wasmtime_module_type_import_nth.restype = ctypes.POINTER(wasm_importtype_t)
4434_wasmtime_module_type_import_nth.argtypes = [ctypes.POINTER(wasmtime_module_type_t), ctypes.POINTER(wasm_engine_t), ctypes.c_size_t]
4435def wasmtime_module_type_import_nth(ty: Any, engine: Any, nth: Any) -> ctypes._Pointer:
4436 return _wasmtime_module_type_import_nth(ty, engine, nth) # type: ignore
4438_wasmtime_module_type_export_count = dll.wasmtime_module_type_export_count
4439_wasmtime_module_type_export_count.restype = ctypes.c_size_t
4440_wasmtime_module_type_export_count.argtypes = [ctypes.POINTER(wasmtime_module_type_t), ctypes.POINTER(wasm_engine_t)]
4441def wasmtime_module_type_export_count(ty: Any, engine: Any) -> int:
4442 return _wasmtime_module_type_export_count(ty, engine) # type: ignore
4444_wasmtime_module_type_export_nth = dll.wasmtime_module_type_export_nth
4445_wasmtime_module_type_export_nth.restype = ctypes.POINTER(wasm_exporttype_t)
4446_wasmtime_module_type_export_nth.argtypes = [ctypes.POINTER(wasmtime_module_type_t), ctypes.POINTER(wasm_engine_t), ctypes.c_size_t]
4447def wasmtime_module_type_export_nth(ty: Any, engine: Any, nth: Any) -> ctypes._Pointer:
4448 return _wasmtime_module_type_export_nth(ty, engine, nth) # type: ignore
4450class wasmtime_component_type_t(ctypes.Structure):
4451 pass
4453_wasmtime_component_type_clone = dll.wasmtime_component_type_clone
4454_wasmtime_component_type_clone.restype = ctypes.POINTER(wasmtime_component_type_t)
4455_wasmtime_component_type_clone.argtypes = [ctypes.POINTER(wasmtime_component_type_t)]
4456def wasmtime_component_type_clone(ty: Any) -> ctypes._Pointer:
4457 return _wasmtime_component_type_clone(ty) # type: ignore
4459_wasmtime_component_type_delete = dll.wasmtime_component_type_delete
4460_wasmtime_component_type_delete.restype = None
4461_wasmtime_component_type_delete.argtypes = [ctypes.POINTER(wasmtime_component_type_t)]
4462def wasmtime_component_type_delete(ty: Any) -> None:
4463 return _wasmtime_component_type_delete(ty) # type: ignore
4465_wasmtime_component_type_import_count = dll.wasmtime_component_type_import_count
4466_wasmtime_component_type_import_count.restype = ctypes.c_size_t
4467_wasmtime_component_type_import_count.argtypes = [ctypes.POINTER(wasmtime_component_type_t), ctypes.POINTER(wasm_engine_t)]
4468def wasmtime_component_type_import_count(ty: Any, engine: Any) -> int:
4469 return _wasmtime_component_type_import_count(ty, engine) # type: ignore
4471_wasmtime_component_type_import_get = dll.wasmtime_component_type_import_get
4472_wasmtime_component_type_import_get.restype = ctypes.c_bool
4473_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(ctypes.POINTER(wasmtime_component_extern_t))]
4474def wasmtime_component_type_import_get(ty: Any, engine: Any, name: Any, name_len: Any, ret: Any) -> bool:
4475 return _wasmtime_component_type_import_get(ty, engine, name, name_len, ret) # type: ignore
4477_wasmtime_component_type_import_nth = dll.wasmtime_component_type_import_nth
4478_wasmtime_component_type_import_nth.restype = ctypes.c_bool
4479_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(ctypes.POINTER(wasmtime_component_extern_t))]
4480def wasmtime_component_type_import_nth(ty: Any, engine: Any, nth: Any, name_ret: Any, name_len_ret: Any, ret: Any) -> bool:
4481 return _wasmtime_component_type_import_nth(ty, engine, nth, name_ret, name_len_ret, ret) # type: ignore
4483_wasmtime_component_type_export_count = dll.wasmtime_component_type_export_count
4484_wasmtime_component_type_export_count.restype = ctypes.c_size_t
4485_wasmtime_component_type_export_count.argtypes = [ctypes.POINTER(wasmtime_component_type_t), ctypes.POINTER(wasm_engine_t)]
4486def wasmtime_component_type_export_count(ty: Any, engine: Any) -> int:
4487 return _wasmtime_component_type_export_count(ty, engine) # type: ignore
4489_wasmtime_component_type_export_get = dll.wasmtime_component_type_export_get
4490_wasmtime_component_type_export_get.restype = ctypes.c_bool
4491_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(ctypes.POINTER(wasmtime_component_extern_t))]
4492def wasmtime_component_type_export_get(ty: Any, engine: Any, name: Any, name_len: Any, ret: Any) -> bool:
4493 return _wasmtime_component_type_export_get(ty, engine, name, name_len, ret) # type: ignore
4495_wasmtime_component_type_export_nth = dll.wasmtime_component_type_export_nth
4496_wasmtime_component_type_export_nth.restype = ctypes.c_bool
4497_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(ctypes.POINTER(wasmtime_component_extern_t))]
4498def wasmtime_component_type_export_nth(ty: Any, engine: Any, nth: Any, name_ret: Any, name_len_ret: Any, ret: Any) -> bool:
4499 return _wasmtime_component_type_export_nth(ty, engine, nth, name_ret, name_len_ret, ret) # type: ignore
4501wasmtime_component_item_kind_t = ctypes.c_uint8
4503class wasmtime_component_item_union(ctypes.Union):
4504 _fields_ = [
4505 ("component", ctypes.POINTER(wasmtime_component_type_t)),
4506 ("component_instance", ctypes.POINTER(wasmtime_component_instance_type_t)),
4507 ("module", ctypes.POINTER(wasmtime_module_type_t)),
4508 ("component_func", ctypes.POINTER(wasmtime_component_func_type_t)),
4509 ("resource", ctypes.POINTER(wasmtime_component_resource_type_t)),
4510 ("core_func", ctypes.POINTER(wasm_functype_t)),
4511 ("type", wasmtime_component_valtype_t),
4512 ]
4513 component: ctypes._Pointer
4514 component_instance: ctypes._Pointer
4515 module: ctypes._Pointer
4516 component_func: ctypes._Pointer
4517 resource: ctypes._Pointer
4518 core_func: ctypes._Pointer
4519 type: wasmtime_component_valtype_t
4521wasmtime_component_item_union_t = wasmtime_component_item_union
4523class wasmtime_component_item_t(ctypes.Structure):
4524 _fields_ = [
4525 ("kind", wasmtime_component_item_kind_t),
4526 ("of", wasmtime_component_item_union_t),
4527 ]
4528 kind: wasmtime_component_item_kind_t
4529 of: wasmtime_component_item_union_t
4531_wasmtime_component_item_clone = dll.wasmtime_component_item_clone
4532_wasmtime_component_item_clone.restype = None
4533_wasmtime_component_item_clone.argtypes = [ctypes.POINTER(wasmtime_component_item_t), ctypes.POINTER(wasmtime_component_item_t)]
4534def wasmtime_component_item_clone(item: Any, out: Any) -> None:
4535 return _wasmtime_component_item_clone(item, out) # type: ignore
4537_wasmtime_component_item_delete = dll.wasmtime_component_item_delete
4538_wasmtime_component_item_delete.restype = None
4539_wasmtime_component_item_delete.argtypes = [ctypes.POINTER(wasmtime_component_item_t)]
4540def wasmtime_component_item_delete(ptr: Any) -> None:
4541 return _wasmtime_component_item_delete(ptr) # type: ignore
4544_wasmtime_component_extern_clone = dll.wasmtime_component_extern_clone
4545_wasmtime_component_extern_clone.restype = ctypes.POINTER(wasmtime_component_extern_t)
4546_wasmtime_component_extern_clone.argtypes = [ctypes.POINTER(wasmtime_component_extern_t)]
4547def wasmtime_component_extern_clone(e: Any) -> ctypes._Pointer:
4548 return _wasmtime_component_extern_clone(e) # type: ignore
4550_wasmtime_component_extern_type = dll.wasmtime_component_extern_type
4551_wasmtime_component_extern_type.restype = None
4552_wasmtime_component_extern_type.argtypes = [ctypes.POINTER(wasmtime_component_extern_t), ctypes.POINTER(wasmtime_component_item_t)]
4553def wasmtime_component_extern_type(e: Any, ret: Any) -> None:
4554 return _wasmtime_component_extern_type(e, ret) # type: ignore
4556_wasmtime_component_extern_implements = dll.wasmtime_component_extern_implements
4557_wasmtime_component_extern_implements.restype = ctypes.POINTER(ctypes.c_char)
4558_wasmtime_component_extern_implements.argtypes = [ctypes.POINTER(wasmtime_component_extern_t), ctypes.POINTER(ctypes.c_size_t)]
4559def wasmtime_component_extern_implements(e: Any, len: Any) -> ctypes._Pointer:
4560 return _wasmtime_component_extern_implements(e, len) # type: ignore
4562_wasmtime_component_extern_is_implements = dll.wasmtime_component_extern_is_implements
4563_wasmtime_component_extern_is_implements.restype = ctypes.c_bool
4564_wasmtime_component_extern_is_implements.argtypes = [ctypes.POINTER(wasmtime_component_extern_t), ctypes.POINTER(ctypes.c_char), ctypes.c_size_t]
4565def wasmtime_component_extern_is_implements(e: Any, name: Any, len: Any) -> bool:
4566 return _wasmtime_component_extern_is_implements(e, name, len) # type: ignore
4568_wasmtime_component_extern_external_id = dll.wasmtime_component_extern_external_id
4569_wasmtime_component_extern_external_id.restype = ctypes.POINTER(ctypes.c_char)
4570_wasmtime_component_extern_external_id.argtypes = [ctypes.POINTER(wasmtime_component_extern_t), ctypes.POINTER(ctypes.c_size_t)]
4571def wasmtime_component_extern_external_id(e: Any, len: Any) -> ctypes._Pointer:
4572 return _wasmtime_component_extern_external_id(e, len) # type: ignore
4574_wasmtime_component_extern_delete = dll.wasmtime_component_extern_delete
4575_wasmtime_component_extern_delete.restype = None
4576_wasmtime_component_extern_delete.argtypes = [ctypes.POINTER(wasmtime_component_extern_t)]
4577def wasmtime_component_extern_delete(ptr: Any) -> None:
4578 return _wasmtime_component_extern_delete(ptr) # type: ignore
4580class wasmtime_component_t(ctypes.Structure):
4581 pass
4583_wasmtime_component_new = dll.wasmtime_component_new
4584_wasmtime_component_new.restype = ctypes.POINTER(wasmtime_error_t)
4585_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))]
4586def wasmtime_component_new(engine: Any, buf: Any, len: Any, component_out: Any) -> ctypes._Pointer:
4587 return _wasmtime_component_new(engine, buf, len, component_out) # type: ignore
4589_wasmtime_component_serialize = dll.wasmtime_component_serialize
4590_wasmtime_component_serialize.restype = ctypes.POINTER(wasmtime_error_t)
4591_wasmtime_component_serialize.argtypes = [ctypes.POINTER(wasmtime_component_t), ctypes.POINTER(wasm_byte_vec_t)]
4592def wasmtime_component_serialize(component: Any, ret: Any) -> ctypes._Pointer:
4593 return _wasmtime_component_serialize(component, ret) # type: ignore
4595_wasmtime_component_deserialize = dll.wasmtime_component_deserialize
4596_wasmtime_component_deserialize.restype = ctypes.POINTER(wasmtime_error_t)
4597_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))]
4598def wasmtime_component_deserialize(engine: Any, buf: Any, len: Any, component_out: Any) -> ctypes._Pointer:
4599 return _wasmtime_component_deserialize(engine, buf, len, component_out) # type: ignore
4601_wasmtime_component_deserialize_file = dll.wasmtime_component_deserialize_file
4602_wasmtime_component_deserialize_file.restype = ctypes.POINTER(wasmtime_error_t)
4603_wasmtime_component_deserialize_file.argtypes = [ctypes.POINTER(wasm_engine_t), ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.POINTER(wasmtime_component_t))]
4604def wasmtime_component_deserialize_file(engine: Any, path: Any, component_out: Any) -> ctypes._Pointer:
4605 return _wasmtime_component_deserialize_file(engine, path, component_out) # type: ignore
4607_wasmtime_component_clone = dll.wasmtime_component_clone
4608_wasmtime_component_clone.restype = ctypes.POINTER(wasmtime_component_t)
4609_wasmtime_component_clone.argtypes = [ctypes.POINTER(wasmtime_component_t)]
4610def wasmtime_component_clone(component: Any) -> ctypes._Pointer:
4611 return _wasmtime_component_clone(component) # type: ignore
4613_wasmtime_component_type = dll.wasmtime_component_type
4614_wasmtime_component_type.restype = ctypes.POINTER(wasmtime_component_type_t)
4615_wasmtime_component_type.argtypes = [ctypes.POINTER(wasmtime_component_t)]
4616def wasmtime_component_type(component: Any) -> ctypes._Pointer:
4617 return _wasmtime_component_type(component) # type: ignore
4619_wasmtime_component_delete = dll.wasmtime_component_delete
4620_wasmtime_component_delete.restype = None
4621_wasmtime_component_delete.argtypes = [ctypes.POINTER(wasmtime_component_t)]
4622def wasmtime_component_delete(component: Any) -> None:
4623 return _wasmtime_component_delete(component) # type: ignore
4625class wasmtime_component_export_index_t(ctypes.Structure):
4626 pass
4628_wasmtime_component_get_export_index = dll.wasmtime_component_get_export_index
4629_wasmtime_component_get_export_index.restype = ctypes.POINTER(wasmtime_component_export_index_t)
4630_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]
4631def wasmtime_component_get_export_index(component: Any, instance_export_index: Any, name: Any, name_len: Any) -> ctypes._Pointer:
4632 return _wasmtime_component_get_export_index(component, instance_export_index, name, name_len) # type: ignore
4634_wasmtime_component_export_index_clone = dll.wasmtime_component_export_index_clone
4635_wasmtime_component_export_index_clone.restype = ctypes.POINTER(wasmtime_component_export_index_t)
4636_wasmtime_component_export_index_clone.argtypes = [ctypes.POINTER(wasmtime_component_export_index_t)]
4637def wasmtime_component_export_index_clone(index: Any) -> ctypes._Pointer:
4638 return _wasmtime_component_export_index_clone(index) # type: ignore
4640_wasmtime_component_export_index_delete = dll.wasmtime_component_export_index_delete
4641_wasmtime_component_export_index_delete.restype = None
4642_wasmtime_component_export_index_delete.argtypes = [ctypes.POINTER(wasmtime_component_export_index_t)]
4643def wasmtime_component_export_index_delete(export_index: Any) -> None:
4644 return _wasmtime_component_export_index_delete(export_index) # type: ignore
4646class wasmtime_component_resource_any(ctypes.Structure):
4647 pass
4649wasmtime_component_resource_any_t = wasmtime_component_resource_any
4651_wasmtime_component_resource_any_type = dll.wasmtime_component_resource_any_type
4652_wasmtime_component_resource_any_type.restype = ctypes.POINTER(wasmtime_component_resource_type_t)
4653_wasmtime_component_resource_any_type.argtypes = [ctypes.POINTER(wasmtime_component_resource_any_t)]
4654def wasmtime_component_resource_any_type(resource: Any) -> ctypes._Pointer:
4655 return _wasmtime_component_resource_any_type(resource) # type: ignore
4657_wasmtime_component_resource_any_clone = dll.wasmtime_component_resource_any_clone
4658_wasmtime_component_resource_any_clone.restype = ctypes.POINTER(wasmtime_component_resource_any_t)
4659_wasmtime_component_resource_any_clone.argtypes = [ctypes.POINTER(wasmtime_component_resource_any_t)]
4660def wasmtime_component_resource_any_clone(resource: Any) -> ctypes._Pointer:
4661 return _wasmtime_component_resource_any_clone(resource) # type: ignore
4663_wasmtime_component_resource_any_owned = dll.wasmtime_component_resource_any_owned
4664_wasmtime_component_resource_any_owned.restype = ctypes.c_bool
4665_wasmtime_component_resource_any_owned.argtypes = [ctypes.POINTER(wasmtime_component_resource_any_t)]
4666def wasmtime_component_resource_any_owned(resource: Any) -> bool:
4667 return _wasmtime_component_resource_any_owned(resource) # type: ignore
4669_wasmtime_component_resource_any_drop = dll.wasmtime_component_resource_any_drop
4670_wasmtime_component_resource_any_drop.restype = ctypes.POINTER(wasmtime_error_t)
4671_wasmtime_component_resource_any_drop.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_component_resource_any_t)]
4672def wasmtime_component_resource_any_drop(ctx: Any, resource: Any) -> ctypes._Pointer:
4673 return _wasmtime_component_resource_any_drop(ctx, resource) # type: ignore
4675_wasmtime_component_resource_any_delete = dll.wasmtime_component_resource_any_delete
4676_wasmtime_component_resource_any_delete.restype = None
4677_wasmtime_component_resource_any_delete.argtypes = [ctypes.POINTER(wasmtime_component_resource_any_t)]
4678def wasmtime_component_resource_any_delete(resource: Any) -> None:
4679 return _wasmtime_component_resource_any_delete(resource) # type: ignore
4681class wasmtime_component_resource_host(ctypes.Structure):
4682 pass
4684wasmtime_component_resource_host_t = wasmtime_component_resource_host
4686_wasmtime_component_resource_host_new = dll.wasmtime_component_resource_host_new
4687_wasmtime_component_resource_host_new.restype = ctypes.POINTER(wasmtime_component_resource_host_t)
4688_wasmtime_component_resource_host_new.argtypes = [ctypes.c_bool, ctypes.c_uint32, ctypes.c_uint32]
4689def wasmtime_component_resource_host_new(owned: Any, rep: Any, ty: Any) -> ctypes._Pointer:
4690 return _wasmtime_component_resource_host_new(owned, rep, ty) # type: ignore
4692_wasmtime_component_resource_host_clone = dll.wasmtime_component_resource_host_clone
4693_wasmtime_component_resource_host_clone.restype = ctypes.POINTER(wasmtime_component_resource_host_t)
4694_wasmtime_component_resource_host_clone.argtypes = [ctypes.POINTER(wasmtime_component_resource_host_t)]
4695def wasmtime_component_resource_host_clone(resource: Any) -> ctypes._Pointer:
4696 return _wasmtime_component_resource_host_clone(resource) # type: ignore
4698_wasmtime_component_resource_host_rep = dll.wasmtime_component_resource_host_rep
4699_wasmtime_component_resource_host_rep.restype = ctypes.c_uint32
4700_wasmtime_component_resource_host_rep.argtypes = [ctypes.POINTER(wasmtime_component_resource_host_t)]
4701def wasmtime_component_resource_host_rep(resource: Any) -> int:
4702 return _wasmtime_component_resource_host_rep(resource) # type: ignore
4704_wasmtime_component_resource_host_type = dll.wasmtime_component_resource_host_type
4705_wasmtime_component_resource_host_type.restype = ctypes.c_uint32
4706_wasmtime_component_resource_host_type.argtypes = [ctypes.POINTER(wasmtime_component_resource_host_t)]
4707def wasmtime_component_resource_host_type(resource: Any) -> int:
4708 return _wasmtime_component_resource_host_type(resource) # type: ignore
4710_wasmtime_component_resource_host_owned = dll.wasmtime_component_resource_host_owned
4711_wasmtime_component_resource_host_owned.restype = ctypes.c_bool
4712_wasmtime_component_resource_host_owned.argtypes = [ctypes.POINTER(wasmtime_component_resource_host_t)]
4713def wasmtime_component_resource_host_owned(resource: Any) -> bool:
4714 return _wasmtime_component_resource_host_owned(resource) # type: ignore
4716_wasmtime_component_resource_host_delete = dll.wasmtime_component_resource_host_delete
4717_wasmtime_component_resource_host_delete.restype = None
4718_wasmtime_component_resource_host_delete.argtypes = [ctypes.POINTER(wasmtime_component_resource_host_t)]
4719def wasmtime_component_resource_host_delete(resource: Any) -> None:
4720 return _wasmtime_component_resource_host_delete(resource) # type: ignore
4722_wasmtime_component_resource_any_to_host = dll.wasmtime_component_resource_any_to_host
4723_wasmtime_component_resource_any_to_host.restype = ctypes.POINTER(wasmtime_error_t)
4724_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))]
4725def wasmtime_component_resource_any_to_host(ctx: Any, resource: Any, ret: Any) -> ctypes._Pointer:
4726 return _wasmtime_component_resource_any_to_host(ctx, resource, ret) # type: ignore
4728_wasmtime_component_resource_host_to_any = dll.wasmtime_component_resource_host_to_any
4729_wasmtime_component_resource_host_to_any.restype = ctypes.POINTER(wasmtime_error_t)
4730_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))]
4731def wasmtime_component_resource_host_to_any(ctx: Any, resource: Any, ret: Any) -> ctypes._Pointer:
4732 return _wasmtime_component_resource_host_to_any(ctx, resource, ret) # type: ignore
4734wasmtime_component_valkind_t = ctypes.c_uint8
4736class wasmtime_component_val(ctypes.Structure):
4737 pass
4739class wasmtime_component_valrecord_entry(ctypes.Structure):
4740 pass
4742class wasmtime_component_valmap_entry(ctypes.Structure):
4743 pass
4745class wasmtime_component_vallist(ctypes.Structure):
4746 _fields_ = [
4747 ("size", ctypes.c_size_t),
4748 ("data", ctypes.POINTER(wasmtime_component_val)),
4749 ]
4750 size: int
4751 data: ctypes._Pointer
4753wasmtime_component_vallist_t = wasmtime_component_vallist
4755_wasmtime_component_vallist_new = dll.wasmtime_component_vallist_new
4756_wasmtime_component_vallist_new.restype = None
4757_wasmtime_component_vallist_new.argtypes = [ctypes.POINTER(wasmtime_component_vallist_t), ctypes.c_size_t, ctypes.POINTER(wasmtime_component_val)]
4758def wasmtime_component_vallist_new(out: Any, size: Any, ptr: Any) -> None:
4759 return _wasmtime_component_vallist_new(out, size, ptr) # type: ignore
4761_wasmtime_component_vallist_new_empty = dll.wasmtime_component_vallist_new_empty
4762_wasmtime_component_vallist_new_empty.restype = None
4763_wasmtime_component_vallist_new_empty.argtypes = [ctypes.POINTER(wasmtime_component_vallist_t)]
4764def wasmtime_component_vallist_new_empty(out: Any) -> None:
4765 return _wasmtime_component_vallist_new_empty(out) # type: ignore
4767_wasmtime_component_vallist_new_uninit = dll.wasmtime_component_vallist_new_uninit
4768_wasmtime_component_vallist_new_uninit.restype = None
4769_wasmtime_component_vallist_new_uninit.argtypes = [ctypes.POINTER(wasmtime_component_vallist_t), ctypes.c_size_t]
4770def wasmtime_component_vallist_new_uninit(out: Any, size: Any) -> None:
4771 return _wasmtime_component_vallist_new_uninit(out, size) # type: ignore
4773_wasmtime_component_vallist_copy = dll.wasmtime_component_vallist_copy
4774_wasmtime_component_vallist_copy.restype = None
4775_wasmtime_component_vallist_copy.argtypes = [ctypes.POINTER(wasmtime_component_vallist_t), ctypes.POINTER(wasmtime_component_vallist_t)]
4776def wasmtime_component_vallist_copy(dst: Any, src: Any) -> None:
4777 return _wasmtime_component_vallist_copy(dst, src) # type: ignore
4779_wasmtime_component_vallist_delete = dll.wasmtime_component_vallist_delete
4780_wasmtime_component_vallist_delete.restype = None
4781_wasmtime_component_vallist_delete.argtypes = [ctypes.POINTER(wasmtime_component_vallist_t)]
4782def wasmtime_component_vallist_delete(value: Any) -> None:
4783 return _wasmtime_component_vallist_delete(value) # type: ignore
4785class wasmtime_component_valrecord(ctypes.Structure):
4786 _fields_ = [
4787 ("size", ctypes.c_size_t),
4788 ("data", ctypes.POINTER(wasmtime_component_valrecord_entry)),
4789 ]
4790 size: int
4791 data: ctypes._Pointer
4793wasmtime_component_valrecord_t = wasmtime_component_valrecord
4795_wasmtime_component_valrecord_new = dll.wasmtime_component_valrecord_new
4796_wasmtime_component_valrecord_new.restype = None
4797_wasmtime_component_valrecord_new.argtypes = [ctypes.POINTER(wasmtime_component_valrecord_t), ctypes.c_size_t, ctypes.POINTER(wasmtime_component_valrecord_entry)]
4798def wasmtime_component_valrecord_new(out: Any, size: Any, ptr: Any) -> None:
4799 return _wasmtime_component_valrecord_new(out, size, ptr) # type: ignore
4801_wasmtime_component_valrecord_new_empty = dll.wasmtime_component_valrecord_new_empty
4802_wasmtime_component_valrecord_new_empty.restype = None
4803_wasmtime_component_valrecord_new_empty.argtypes = [ctypes.POINTER(wasmtime_component_valrecord_t)]
4804def wasmtime_component_valrecord_new_empty(out: Any) -> None:
4805 return _wasmtime_component_valrecord_new_empty(out) # type: ignore
4807_wasmtime_component_valrecord_new_uninit = dll.wasmtime_component_valrecord_new_uninit
4808_wasmtime_component_valrecord_new_uninit.restype = None
4809_wasmtime_component_valrecord_new_uninit.argtypes = [ctypes.POINTER(wasmtime_component_valrecord_t), ctypes.c_size_t]
4810def wasmtime_component_valrecord_new_uninit(out: Any, size: Any) -> None:
4811 return _wasmtime_component_valrecord_new_uninit(out, size) # type: ignore
4813_wasmtime_component_valrecord_copy = dll.wasmtime_component_valrecord_copy
4814_wasmtime_component_valrecord_copy.restype = None
4815_wasmtime_component_valrecord_copy.argtypes = [ctypes.POINTER(wasmtime_component_valrecord_t), ctypes.POINTER(wasmtime_component_valrecord_t)]
4816def wasmtime_component_valrecord_copy(dst: Any, src: Any) -> None:
4817 return _wasmtime_component_valrecord_copy(dst, src) # type: ignore
4819_wasmtime_component_valrecord_delete = dll.wasmtime_component_valrecord_delete
4820_wasmtime_component_valrecord_delete.restype = None
4821_wasmtime_component_valrecord_delete.argtypes = [ctypes.POINTER(wasmtime_component_valrecord_t)]
4822def wasmtime_component_valrecord_delete(value: Any) -> None:
4823 return _wasmtime_component_valrecord_delete(value) # type: ignore
4825class wasmtime_component_valtuple(ctypes.Structure):
4826 _fields_ = [
4827 ("size", ctypes.c_size_t),
4828 ("data", ctypes.POINTER(wasmtime_component_val)),
4829 ]
4830 size: int
4831 data: ctypes._Pointer
4833wasmtime_component_valtuple_t = wasmtime_component_valtuple
4835_wasmtime_component_valtuple_new = dll.wasmtime_component_valtuple_new
4836_wasmtime_component_valtuple_new.restype = None
4837_wasmtime_component_valtuple_new.argtypes = [ctypes.POINTER(wasmtime_component_valtuple_t), ctypes.c_size_t, ctypes.POINTER(wasmtime_component_val)]
4838def wasmtime_component_valtuple_new(out: Any, size: Any, ptr: Any) -> None:
4839 return _wasmtime_component_valtuple_new(out, size, ptr) # type: ignore
4841_wasmtime_component_valtuple_new_empty = dll.wasmtime_component_valtuple_new_empty
4842_wasmtime_component_valtuple_new_empty.restype = None
4843_wasmtime_component_valtuple_new_empty.argtypes = [ctypes.POINTER(wasmtime_component_valtuple_t)]
4844def wasmtime_component_valtuple_new_empty(out: Any) -> None:
4845 return _wasmtime_component_valtuple_new_empty(out) # type: ignore
4847_wasmtime_component_valtuple_new_uninit = dll.wasmtime_component_valtuple_new_uninit
4848_wasmtime_component_valtuple_new_uninit.restype = None
4849_wasmtime_component_valtuple_new_uninit.argtypes = [ctypes.POINTER(wasmtime_component_valtuple_t), ctypes.c_size_t]
4850def wasmtime_component_valtuple_new_uninit(out: Any, size: Any) -> None:
4851 return _wasmtime_component_valtuple_new_uninit(out, size) # type: ignore
4853_wasmtime_component_valtuple_copy = dll.wasmtime_component_valtuple_copy
4854_wasmtime_component_valtuple_copy.restype = None
4855_wasmtime_component_valtuple_copy.argtypes = [ctypes.POINTER(wasmtime_component_valtuple_t), ctypes.POINTER(wasmtime_component_valtuple_t)]
4856def wasmtime_component_valtuple_copy(dst: Any, src: Any) -> None:
4857 return _wasmtime_component_valtuple_copy(dst, src) # type: ignore
4859_wasmtime_component_valtuple_delete = dll.wasmtime_component_valtuple_delete
4860_wasmtime_component_valtuple_delete.restype = None
4861_wasmtime_component_valtuple_delete.argtypes = [ctypes.POINTER(wasmtime_component_valtuple_t)]
4862def wasmtime_component_valtuple_delete(value: Any) -> None:
4863 return _wasmtime_component_valtuple_delete(value) # type: ignore
4865class wasmtime_component_valflags(ctypes.Structure):
4866 _fields_ = [
4867 ("size", ctypes.c_size_t),
4868 ("data", ctypes.POINTER(wasm_name_t)),
4869 ]
4870 size: int
4871 data: ctypes._Pointer
4873wasmtime_component_valflags_t = wasmtime_component_valflags
4875_wasmtime_component_valflags_new = dll.wasmtime_component_valflags_new
4876_wasmtime_component_valflags_new.restype = None
4877_wasmtime_component_valflags_new.argtypes = [ctypes.POINTER(wasmtime_component_valflags_t), ctypes.c_size_t, ctypes.POINTER(wasm_name_t)]
4878def wasmtime_component_valflags_new(out: Any, size: Any, ptr: Any) -> None:
4879 return _wasmtime_component_valflags_new(out, size, ptr) # type: ignore
4881_wasmtime_component_valflags_new_empty = dll.wasmtime_component_valflags_new_empty
4882_wasmtime_component_valflags_new_empty.restype = None
4883_wasmtime_component_valflags_new_empty.argtypes = [ctypes.POINTER(wasmtime_component_valflags_t)]
4884def wasmtime_component_valflags_new_empty(out: Any) -> None:
4885 return _wasmtime_component_valflags_new_empty(out) # type: ignore
4887_wasmtime_component_valflags_new_uninit = dll.wasmtime_component_valflags_new_uninit
4888_wasmtime_component_valflags_new_uninit.restype = None
4889_wasmtime_component_valflags_new_uninit.argtypes = [ctypes.POINTER(wasmtime_component_valflags_t), ctypes.c_size_t]
4890def wasmtime_component_valflags_new_uninit(out: Any, size: Any) -> None:
4891 return _wasmtime_component_valflags_new_uninit(out, size) # type: ignore
4893_wasmtime_component_valflags_copy = dll.wasmtime_component_valflags_copy
4894_wasmtime_component_valflags_copy.restype = None
4895_wasmtime_component_valflags_copy.argtypes = [ctypes.POINTER(wasmtime_component_valflags_t), ctypes.POINTER(wasmtime_component_valflags_t)]
4896def wasmtime_component_valflags_copy(dst: Any, src: Any) -> None:
4897 return _wasmtime_component_valflags_copy(dst, src) # type: ignore
4899_wasmtime_component_valflags_delete = dll.wasmtime_component_valflags_delete
4900_wasmtime_component_valflags_delete.restype = None
4901_wasmtime_component_valflags_delete.argtypes = [ctypes.POINTER(wasmtime_component_valflags_t)]
4902def wasmtime_component_valflags_delete(value: Any) -> None:
4903 return _wasmtime_component_valflags_delete(value) # type: ignore
4905class wasmtime_component_valmap(ctypes.Structure):
4906 _fields_ = [
4907 ("size", ctypes.c_size_t),
4908 ("data", ctypes.POINTER(wasmtime_component_valmap_entry)),
4909 ]
4910 size: int
4911 data: ctypes._Pointer
4913wasmtime_component_valmap_t = wasmtime_component_valmap
4915_wasmtime_component_valmap_new = dll.wasmtime_component_valmap_new
4916_wasmtime_component_valmap_new.restype = None
4917_wasmtime_component_valmap_new.argtypes = [ctypes.POINTER(wasmtime_component_valmap_t), ctypes.c_size_t, ctypes.POINTER(wasmtime_component_valmap_entry)]
4918def wasmtime_component_valmap_new(out: Any, size: Any, ptr: Any) -> None:
4919 return _wasmtime_component_valmap_new(out, size, ptr) # type: ignore
4921_wasmtime_component_valmap_new_empty = dll.wasmtime_component_valmap_new_empty
4922_wasmtime_component_valmap_new_empty.restype = None
4923_wasmtime_component_valmap_new_empty.argtypes = [ctypes.POINTER(wasmtime_component_valmap_t)]
4924def wasmtime_component_valmap_new_empty(out: Any) -> None:
4925 return _wasmtime_component_valmap_new_empty(out) # type: ignore
4927_wasmtime_component_valmap_new_uninit = dll.wasmtime_component_valmap_new_uninit
4928_wasmtime_component_valmap_new_uninit.restype = None
4929_wasmtime_component_valmap_new_uninit.argtypes = [ctypes.POINTER(wasmtime_component_valmap_t), ctypes.c_size_t]
4930def wasmtime_component_valmap_new_uninit(out: Any, size: Any) -> None:
4931 return _wasmtime_component_valmap_new_uninit(out, size) # type: ignore
4933_wasmtime_component_valmap_copy = dll.wasmtime_component_valmap_copy
4934_wasmtime_component_valmap_copy.restype = None
4935_wasmtime_component_valmap_copy.argtypes = [ctypes.POINTER(wasmtime_component_valmap_t), ctypes.POINTER(wasmtime_component_valmap_t)]
4936def wasmtime_component_valmap_copy(dst: Any, src: Any) -> None:
4937 return _wasmtime_component_valmap_copy(dst, src) # type: ignore
4939_wasmtime_component_valmap_delete = dll.wasmtime_component_valmap_delete
4940_wasmtime_component_valmap_delete.restype = None
4941_wasmtime_component_valmap_delete.argtypes = [ctypes.POINTER(wasmtime_component_valmap_t)]
4942def wasmtime_component_valmap_delete(value: Any) -> None:
4943 return _wasmtime_component_valmap_delete(value) # type: ignore
4945class wasmtime_component_valvariant(ctypes.Structure):
4946 _fields_ = [
4947 ("discriminant", wasm_name_t),
4948 ("val", ctypes.POINTER(wasmtime_component_val)),
4949 ]
4950 discriminant: wasm_name_t
4951 val: ctypes._Pointer
4953wasmtime_component_valvariant_t = wasmtime_component_valvariant
4955class wasmtime_component_valresult(ctypes.Structure):
4956 _fields_ = [
4957 ("is_ok", ctypes.c_bool),
4958 ("val", ctypes.POINTER(wasmtime_component_val)),
4959 ]
4960 is_ok: bool
4961 val: ctypes._Pointer
4963wasmtime_component_valresult_t = wasmtime_component_valresult
4965class wasmtime_component_valunion(ctypes.Union):
4966 _fields_ = [
4967 ("boolean", ctypes.c_bool),
4968 ("s8", ctypes.c_int8),
4969 ("u8", ctypes.c_uint8),
4970 ("s16", ctypes.c_int16),
4971 ("u16", ctypes.c_uint16),
4972 ("s32", ctypes.c_int32),
4973 ("u32", ctypes.c_uint32),
4974 ("s64", ctypes.c_int64),
4975 ("u64", ctypes.c_uint64),
4976 ("f32", ctypes.c_float),
4977 ("f64", ctypes.c_double),
4978 ("character", ctypes.c_uint32),
4979 ("string", wasm_name_t),
4980 ("list", wasmtime_component_vallist_t),
4981 ("record", wasmtime_component_valrecord_t),
4982 ("tuple", wasmtime_component_valtuple_t),
4983 ("variant", wasmtime_component_valvariant_t),
4984 ("enumeration", wasm_name_t),
4985 ("option", ctypes.POINTER(wasmtime_component_val)),
4986 ("result", wasmtime_component_valresult_t),
4987 ("flags", wasmtime_component_valflags_t),
4988 ("map", wasmtime_component_valmap_t),
4989 ("resource", ctypes.POINTER(wasmtime_component_resource_any_t)),
4990 ]
4991 boolean: bool
4992 s8: ctypes.c_int8
4993 u8: ctypes.c_uint8
4994 s16: ctypes.c_int16
4995 u16: ctypes.c_uint16
4996 s32: int
4997 u32: int
4998 s64: int
4999 u64: int
5000 f32: float
5001 f64: float
5002 character: int
5003 string: wasm_name_t
5004 list: wasmtime_component_vallist_t
5005 record: wasmtime_component_valrecord_t
5006 tuple: wasmtime_component_valtuple_t
5007 variant: wasmtime_component_valvariant_t
5008 enumeration: wasm_name_t
5009 option: ctypes._Pointer
5010 result: wasmtime_component_valresult_t
5011 flags: wasmtime_component_valflags_t
5012 map: wasmtime_component_valmap_t
5013 resource: ctypes._Pointer
5015wasmtime_component_valunion_t = wasmtime_component_valunion
5017wasmtime_component_val._fields_ = [
5018 ("kind", wasmtime_component_valkind_t),
5019 ("of", wasmtime_component_valunion_t),
5020 ]
5022wasmtime_component_val_t = wasmtime_component_val
5024wasmtime_component_valrecord_entry._fields_ = [
5025 ("name", wasm_name_t),
5026 ("val", wasmtime_component_val_t),
5027 ]
5029wasmtime_component_valrecord_entry_t = wasmtime_component_valrecord_entry
5031wasmtime_component_valmap_entry._fields_ = [
5032 ("key", wasmtime_component_val_t),
5033 ("value", wasmtime_component_val_t),
5034 ]
5036wasmtime_component_valmap_entry_t = wasmtime_component_valmap_entry
5038_wasmtime_component_val_new = dll.wasmtime_component_val_new
5039_wasmtime_component_val_new.restype = ctypes.POINTER(wasmtime_component_val_t)
5040_wasmtime_component_val_new.argtypes = [ctypes.POINTER(wasmtime_component_val_t)]
5041def wasmtime_component_val_new(val: Any) -> ctypes._Pointer:
5042 return _wasmtime_component_val_new(val) # type: ignore
5044_wasmtime_component_val_free = dll.wasmtime_component_val_free
5045_wasmtime_component_val_free.restype = None
5046_wasmtime_component_val_free.argtypes = [ctypes.POINTER(wasmtime_component_val_t)]
5047def wasmtime_component_val_free(ptr: Any) -> None:
5048 return _wasmtime_component_val_free(ptr) # type: ignore
5050_wasmtime_component_val_clone = dll.wasmtime_component_val_clone
5051_wasmtime_component_val_clone.restype = None
5052_wasmtime_component_val_clone.argtypes = [ctypes.POINTER(wasmtime_component_val_t), ctypes.POINTER(wasmtime_component_val_t)]
5053def wasmtime_component_val_clone(src: Any, dst: Any) -> None:
5054 return _wasmtime_component_val_clone(src, dst) # type: ignore
5056_wasmtime_component_val_delete = dll.wasmtime_component_val_delete
5057_wasmtime_component_val_delete.restype = None
5058_wasmtime_component_val_delete.argtypes = [ctypes.POINTER(wasmtime_component_val_t)]
5059def wasmtime_component_val_delete(value: Any) -> None:
5060 return _wasmtime_component_val_delete(value) # type: ignore
5063class wasmtime_component_func_anon_0(ctypes.Structure):
5064 _fields_ = [
5065 ("store_id", ctypes.c_uint64),
5066 ("__private1", ctypes.c_uint32),
5067 ]
5068 store_id: int
5069 __private1: int
5070class wasmtime_component_func(ctypes.Structure):
5071 _fields_ = [
5072 ("_anon_1", wasmtime_component_func_anon_0),
5073 ("__private2", ctypes.c_uint32),
5074 ("__private3", ctypes.c_void_p),
5075 ]
5076 _anon_1: wasmtime_component_func_anon_0
5077 __private2: int
5078 __private3: ctypes._Pointer
5080wasmtime_component_func_t = wasmtime_component_func
5082_wasmtime_component_func_type = dll.wasmtime_component_func_type
5083_wasmtime_component_func_type.restype = ctypes.POINTER(wasmtime_component_func_type_t)
5084_wasmtime_component_func_type.argtypes = [ctypes.POINTER(wasmtime_component_func_t), ctypes.POINTER(wasmtime_context_t)]
5085def wasmtime_component_func_type(func: Any, context: Any) -> ctypes._Pointer:
5086 return _wasmtime_component_func_type(func, context) # type: ignore
5088_wasmtime_component_func_call = dll.wasmtime_component_func_call
5089_wasmtime_component_func_call.restype = ctypes.POINTER(wasmtime_error_t)
5090_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]
5091def wasmtime_component_func_call(func: Any, context: Any, args: Any, args_size: Any, results: Any, results_size: Any) -> ctypes._Pointer:
5092 return _wasmtime_component_func_call(func, context, args, args_size, results, results_size) # type: ignore
5094_wasmtime_component_func_post_return = dll.wasmtime_component_func_post_return
5095_wasmtime_component_func_post_return.restype = ctypes.POINTER(wasmtime_error_t)
5096_wasmtime_component_func_post_return.argtypes = [ctypes.POINTER(wasmtime_component_func_t), ctypes.POINTER(wasmtime_context_t)]
5097def wasmtime_component_func_post_return(func: Any, context: Any) -> ctypes._Pointer:
5098 return _wasmtime_component_func_post_return(func, context) # type: ignore
5100_wasmtime_component_func_call_async = dll.wasmtime_component_func_call_async
5101_wasmtime_component_func_call_async.restype = ctypes.POINTER(wasmtime_call_future_t)
5102_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))]
5103def wasmtime_component_func_call_async(func: Any, context: Any, args: Any, args_size: Any, results: Any, results_size: Any, error_ret: Any) -> ctypes._Pointer:
5104 return _wasmtime_component_func_call_async(func, context, args, args_size, results, results_size, error_ret) # type: ignore
5106class wasmtime_component_instance(ctypes.Structure):
5107 _fields_ = [
5108 ("store_id", ctypes.c_uint64),
5109 ("__private", ctypes.c_uint32),
5110 ]
5111 store_id: int
5112 __private: int
5114wasmtime_component_instance_t = wasmtime_component_instance
5116_wasmtime_component_instance_get_export_index = dll.wasmtime_component_instance_get_export_index
5117_wasmtime_component_instance_get_export_index.restype = ctypes.POINTER(wasmtime_component_export_index_t)
5118_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]
5119def wasmtime_component_instance_get_export_index(instance: Any, context: Any, instance_export_index: Any, name: Any, name_len: Any) -> ctypes._Pointer:
5120 return _wasmtime_component_instance_get_export_index(instance, context, instance_export_index, name, name_len) # type: ignore
5122_wasmtime_component_instance_get_func = dll.wasmtime_component_instance_get_func
5123_wasmtime_component_instance_get_func.restype = ctypes.c_bool
5124_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)]
5125def wasmtime_component_instance_get_func(instance: Any, context: Any, export_index: Any, func_out: Any) -> bool:
5126 return _wasmtime_component_instance_get_func(instance, context, export_index, func_out) # type: ignore
5128class wasmtime_component_linker_t(ctypes.Structure):
5129 pass
5131class wasmtime_component_linker_instance_t(ctypes.Structure):
5132 pass
5134_wasmtime_component_linker_new = dll.wasmtime_component_linker_new
5135_wasmtime_component_linker_new.restype = ctypes.POINTER(wasmtime_component_linker_t)
5136_wasmtime_component_linker_new.argtypes = [ctypes.POINTER(wasm_engine_t)]
5137def wasmtime_component_linker_new(engine: Any) -> ctypes._Pointer:
5138 return _wasmtime_component_linker_new(engine) # type: ignore
5140_wasmtime_component_linker_allow_shadowing = dll.wasmtime_component_linker_allow_shadowing
5141_wasmtime_component_linker_allow_shadowing.restype = None
5142_wasmtime_component_linker_allow_shadowing.argtypes = [ctypes.POINTER(wasmtime_component_linker_t), ctypes.c_bool]
5143def wasmtime_component_linker_allow_shadowing(linker: Any, allow: Any) -> None:
5144 return _wasmtime_component_linker_allow_shadowing(linker, allow) # type: ignore
5146_wasmtime_component_linker_root = dll.wasmtime_component_linker_root
5147_wasmtime_component_linker_root.restype = ctypes.POINTER(wasmtime_component_linker_instance_t)
5148_wasmtime_component_linker_root.argtypes = [ctypes.POINTER(wasmtime_component_linker_t)]
5149def wasmtime_component_linker_root(linker: Any) -> ctypes._Pointer:
5150 return _wasmtime_component_linker_root(linker) # type: ignore
5152_wasmtime_component_linker_instantiate = dll.wasmtime_component_linker_instantiate
5153_wasmtime_component_linker_instantiate.restype = ctypes.POINTER(wasmtime_error_t)
5154_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)]
5155def wasmtime_component_linker_instantiate(linker: Any, context: Any, component: Any, instance_out: Any) -> ctypes._Pointer:
5156 return _wasmtime_component_linker_instantiate(linker, context, component, instance_out) # type: ignore
5158_wasmtime_component_linker_define_unknown_imports_as_traps = dll.wasmtime_component_linker_define_unknown_imports_as_traps
5159_wasmtime_component_linker_define_unknown_imports_as_traps.restype = ctypes.POINTER(wasmtime_error_t)
5160_wasmtime_component_linker_define_unknown_imports_as_traps.argtypes = [ctypes.POINTER(wasmtime_component_linker_t), ctypes.POINTER(wasmtime_component_t)]
5161def wasmtime_component_linker_define_unknown_imports_as_traps(linker: Any, component: Any) -> ctypes._Pointer:
5162 return _wasmtime_component_linker_define_unknown_imports_as_traps(linker, component) # type: ignore
5164_wasmtime_component_linker_define_unknown_imports_as_default_values = dll.wasmtime_component_linker_define_unknown_imports_as_default_values
5165_wasmtime_component_linker_define_unknown_imports_as_default_values.restype = ctypes.POINTER(wasmtime_error_t)
5166_wasmtime_component_linker_define_unknown_imports_as_default_values.argtypes = [ctypes.POINTER(wasmtime_component_linker_t), ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_component_t)]
5167def wasmtime_component_linker_define_unknown_imports_as_default_values(linker: Any, store: Any, component: Any) -> ctypes._Pointer:
5168 return _wasmtime_component_linker_define_unknown_imports_as_default_values(linker, store, component) # type: ignore
5170_wasmtime_component_linker_delete = dll.wasmtime_component_linker_delete
5171_wasmtime_component_linker_delete.restype = None
5172_wasmtime_component_linker_delete.argtypes = [ctypes.POINTER(wasmtime_component_linker_t)]
5173def wasmtime_component_linker_delete(linker: Any) -> None:
5174 return _wasmtime_component_linker_delete(linker) # type: ignore
5176_wasmtime_component_linker_instance_add_instance = dll.wasmtime_component_linker_instance_add_instance
5177_wasmtime_component_linker_instance_add_instance.restype = ctypes.POINTER(wasmtime_error_t)
5178_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))]
5179def wasmtime_component_linker_instance_add_instance(linker_instance: Any, name: Any, name_len: Any, linker_instance_out: Any) -> ctypes._Pointer:
5180 return _wasmtime_component_linker_instance_add_instance(linker_instance, name, name_len, linker_instance_out) # type: ignore
5182_wasmtime_component_linker_instance_add_module = dll.wasmtime_component_linker_instance_add_module
5183_wasmtime_component_linker_instance_add_module.restype = ctypes.POINTER(wasmtime_error_t)
5184_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)]
5185def wasmtime_component_linker_instance_add_module(linker_instance: Any, name: Any, name_len: Any, module: Any) -> ctypes._Pointer:
5186 return _wasmtime_component_linker_instance_add_module(linker_instance, name, name_len, module) # type: ignore
5188wasmtime_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)
5190_wasmtime_component_linker_instance_add_func = dll.wasmtime_component_linker_instance_add_func
5191_wasmtime_component_linker_instance_add_func.restype = ctypes.POINTER(wasmtime_error_t)
5192_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)]
5193def wasmtime_component_linker_instance_add_func(linker_instance: Any, name: Any, name_len: Any, callback: Any, data: Any, finalizer: Any) -> ctypes._Pointer:
5194 return _wasmtime_component_linker_instance_add_func(linker_instance, name, name_len, callback, data, finalizer) # type: ignore
5196_wasmtime_component_linker_add_wasip2 = dll.wasmtime_component_linker_add_wasip2
5197_wasmtime_component_linker_add_wasip2.restype = ctypes.POINTER(wasmtime_error_t)
5198_wasmtime_component_linker_add_wasip2.argtypes = [ctypes.POINTER(wasmtime_component_linker_t)]
5199def wasmtime_component_linker_add_wasip2(linker: Any) -> ctypes._Pointer:
5200 return _wasmtime_component_linker_add_wasip2(linker) # type: ignore
5202_wasmtime_component_linker_add_wasi_http = dll.wasmtime_component_linker_add_wasi_http
5203_wasmtime_component_linker_add_wasi_http.restype = ctypes.POINTER(wasmtime_error_t)
5204_wasmtime_component_linker_add_wasi_http.argtypes = [ctypes.POINTER(wasmtime_component_linker_t)]
5205def wasmtime_component_linker_add_wasi_http(linker: Any) -> ctypes._Pointer:
5206 return _wasmtime_component_linker_add_wasi_http(linker) # type: ignore
5208wasmtime_component_resource_destructor_t = ctypes.CFUNCTYPE(ctypes.c_size_t, ctypes.c_void_p, ctypes.POINTER(wasmtime_context_t), ctypes.c_uint32)
5210_wasmtime_component_linker_instance_add_resource = dll.wasmtime_component_linker_instance_add_resource
5211_wasmtime_component_linker_instance_add_resource.restype = ctypes.POINTER(wasmtime_error_t)
5212_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)]
5213def wasmtime_component_linker_instance_add_resource(linker_instance: Any, name: Any, name_len: Any, resource: Any, destructor: Any, data: Any, finalizer: Any) -> ctypes._Pointer:
5214 return _wasmtime_component_linker_instance_add_resource(linker_instance, name, name_len, resource, destructor, data, finalizer) # type: ignore
5216_wasmtime_component_linker_instance_delete = dll.wasmtime_component_linker_instance_delete
5217_wasmtime_component_linker_instance_delete.restype = None
5218_wasmtime_component_linker_instance_delete.argtypes = [ctypes.POINTER(wasmtime_component_linker_instance_t)]
5219def wasmtime_component_linker_instance_delete(linker_instance: Any) -> None:
5220 return _wasmtime_component_linker_instance_delete(linker_instance) # type: ignore
5222_wasmtime_component_linker_instantiate_async = dll.wasmtime_component_linker_instantiate_async
5223_wasmtime_component_linker_instantiate_async.restype = ctypes.POINTER(wasmtime_call_future_t)
5224_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))]
5225def wasmtime_component_linker_instantiate_async(linker: Any, context: Any, component: Any, instance_out: Any, error_ret: Any) -> ctypes._Pointer:
5226 return _wasmtime_component_linker_instantiate_async(linker, context, component, instance_out, error_ret) # type: ignore
5228wasmtime_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))
5230_wasmtime_component_linker_instance_add_func_async = dll.wasmtime_component_linker_instance_add_func_async
5231_wasmtime_component_linker_instance_add_func_async.restype = ctypes.POINTER(wasmtime_error_t)
5232_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)]
5233def wasmtime_component_linker_instance_add_func_async(linker_instance: Any, name: Any, name_len: Any, callback: Any, data: Any, finalizer: Any) -> ctypes._Pointer:
5234 return _wasmtime_component_linker_instance_add_func_async(linker_instance, name, name_len, callback, data, finalizer) # type: ignore
5236_wasmtime_component_linker_add_wasip2_async = dll.wasmtime_component_linker_add_wasip2_async
5237_wasmtime_component_linker_add_wasip2_async.restype = ctypes.POINTER(wasmtime_error_t)
5238_wasmtime_component_linker_add_wasip2_async.argtypes = [ctypes.POINTER(wasmtime_component_linker_t)]
5239def wasmtime_component_linker_add_wasip2_async(linker: Any) -> ctypes._Pointer:
5240 return _wasmtime_component_linker_add_wasip2_async(linker) # type: ignore
5242_wasmtime_component_linker_add_wasi_http_async = dll.wasmtime_component_linker_add_wasi_http_async
5243_wasmtime_component_linker_add_wasi_http_async.restype = ctypes.POINTER(wasmtime_error_t)
5244_wasmtime_component_linker_add_wasi_http_async.argtypes = [ctypes.POINTER(wasmtime_component_linker_t)]
5245def wasmtime_component_linker_add_wasi_http_async(linker: Any) -> ctypes._Pointer:
5246 return _wasmtime_component_linker_add_wasi_http_async(linker) # type: ignore
5248_wasmtime_engine_clone = dll.wasmtime_engine_clone
5249_wasmtime_engine_clone.restype = ctypes.POINTER(wasm_engine_t)
5250_wasmtime_engine_clone.argtypes = [ctypes.POINTER(wasm_engine_t)]
5251def wasmtime_engine_clone(engine: Any) -> ctypes._Pointer:
5252 return _wasmtime_engine_clone(engine) # type: ignore
5254_wasmtime_engine_increment_epoch = dll.wasmtime_engine_increment_epoch
5255_wasmtime_engine_increment_epoch.restype = None
5256_wasmtime_engine_increment_epoch.argtypes = [ctypes.POINTER(wasm_engine_t)]
5257def wasmtime_engine_increment_epoch(engine: Any) -> None:
5258 return _wasmtime_engine_increment_epoch(engine) # type: ignore
5260_wasmtime_engine_is_pulley = dll.wasmtime_engine_is_pulley
5261_wasmtime_engine_is_pulley.restype = ctypes.c_bool
5262_wasmtime_engine_is_pulley.argtypes = [ctypes.POINTER(wasm_engine_t)]
5263def wasmtime_engine_is_pulley(engine: Any) -> bool:
5264 return _wasmtime_engine_is_pulley(engine) # type: ignore
5266_wasmtime_eqref_clone = dll.wasmtime_eqref_clone
5267_wasmtime_eqref_clone.restype = None
5268_wasmtime_eqref_clone.argtypes = [ctypes.POINTER(wasmtime_eqref_t), ctypes.POINTER(wasmtime_eqref_t)]
5269def wasmtime_eqref_clone(eqref: Any, out: Any) -> None:
5270 return _wasmtime_eqref_clone(eqref, out) # type: ignore
5272_wasmtime_eqref_unroot = dll.wasmtime_eqref_unroot
5273_wasmtime_eqref_unroot.restype = None
5274_wasmtime_eqref_unroot.argtypes = [ctypes.POINTER(wasmtime_eqref_t)]
5275def wasmtime_eqref_unroot(ref: Any) -> None:
5276 return _wasmtime_eqref_unroot(ref) # type: ignore
5278_wasmtime_eqref_to_anyref = dll.wasmtime_eqref_to_anyref
5279_wasmtime_eqref_to_anyref.restype = None
5280_wasmtime_eqref_to_anyref.argtypes = [ctypes.POINTER(wasmtime_eqref_t), ctypes.POINTER(wasmtime_anyref_t)]
5281def wasmtime_eqref_to_anyref(eqref: Any, out: Any) -> None:
5282 return _wasmtime_eqref_to_anyref(eqref, out) # type: ignore
5284_wasmtime_eqref_from_i31 = dll.wasmtime_eqref_from_i31
5285_wasmtime_eqref_from_i31.restype = None
5286_wasmtime_eqref_from_i31.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.c_uint32, ctypes.POINTER(wasmtime_eqref_t)]
5287def wasmtime_eqref_from_i31(context: Any, i31val: Any, out: Any) -> None:
5288 return _wasmtime_eqref_from_i31(context, i31val, out) # type: ignore
5290_wasmtime_eqref_is_i31 = dll.wasmtime_eqref_is_i31
5291_wasmtime_eqref_is_i31.restype = ctypes.c_bool
5292_wasmtime_eqref_is_i31.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_eqref_t)]
5293def wasmtime_eqref_is_i31(context: Any, eqref: Any) -> bool:
5294 return _wasmtime_eqref_is_i31(context, eqref) # type: ignore
5296_wasmtime_eqref_i31_get_u = dll.wasmtime_eqref_i31_get_u
5297_wasmtime_eqref_i31_get_u.restype = ctypes.c_bool
5298_wasmtime_eqref_i31_get_u.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_eqref_t), ctypes.POINTER(ctypes.c_uint32)]
5299def wasmtime_eqref_i31_get_u(context: Any, eqref: Any, dst: Any) -> bool:
5300 return _wasmtime_eqref_i31_get_u(context, eqref, dst) # type: ignore
5302_wasmtime_eqref_i31_get_s = dll.wasmtime_eqref_i31_get_s
5303_wasmtime_eqref_i31_get_s.restype = ctypes.c_bool
5304_wasmtime_eqref_i31_get_s.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_eqref_t), ctypes.POINTER(ctypes.c_int32)]
5305def wasmtime_eqref_i31_get_s(context: Any, eqref: Any, dst: Any) -> bool:
5306 return _wasmtime_eqref_i31_get_s(context, eqref, dst) # type: ignore
5308_wasmtime_eqref_is_array = dll.wasmtime_eqref_is_array
5309_wasmtime_eqref_is_array.restype = ctypes.c_bool
5310_wasmtime_eqref_is_array.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_eqref_t)]
5311def wasmtime_eqref_is_array(context: Any, eqref: Any) -> bool:
5312 return _wasmtime_eqref_is_array(context, eqref) # type: ignore
5314_wasmtime_eqref_as_array = dll.wasmtime_eqref_as_array
5315_wasmtime_eqref_as_array.restype = ctypes.c_bool
5316_wasmtime_eqref_as_array.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_eqref_t), ctypes.POINTER(wasmtime_arrayref_t)]
5317def wasmtime_eqref_as_array(context: Any, eqref: Any, out: Any) -> bool:
5318 return _wasmtime_eqref_as_array(context, eqref, out) # type: ignore
5320_wasmtime_eqref_is_struct = dll.wasmtime_eqref_is_struct
5321_wasmtime_eqref_is_struct.restype = ctypes.c_bool
5322_wasmtime_eqref_is_struct.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_eqref_t)]
5323def wasmtime_eqref_is_struct(context: Any, eqref: Any) -> bool:
5324 return _wasmtime_eqref_is_struct(context, eqref) # type: ignore
5326_wasmtime_eqref_as_struct = dll.wasmtime_eqref_as_struct
5327_wasmtime_eqref_as_struct.restype = ctypes.c_bool
5328_wasmtime_eqref_as_struct.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_eqref_t), ctypes.POINTER(wasmtime_structref_t)]
5329def wasmtime_eqref_as_struct(context: Any, eqref: Any, out: Any) -> bool:
5330 return _wasmtime_eqref_as_struct(context, eqref, out) # type: ignore
5332_wasmtime_eqref_type = dll.wasmtime_eqref_type
5333_wasmtime_eqref_type.restype = ctypes.c_bool
5334_wasmtime_eqref_type.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_eqref_t), ctypes.POINTER(wasmtime_heaptype_t)]
5335def wasmtime_eqref_type(context: Any, eqref: Any, out: Any) -> bool:
5336 return _wasmtime_eqref_type(context, eqref, out) # type: ignore
5338_wasmtime_exnref_new = dll.wasmtime_exnref_new
5339_wasmtime_exnref_new.restype = ctypes.POINTER(wasmtime_error_t)
5340_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)]
5341def wasmtime_exnref_new(store: Any, tag: Any, fields: Any, nfields: Any, exn_ret: Any) -> ctypes._Pointer:
5342 return _wasmtime_exnref_new(store, tag, fields, nfields, exn_ret) # type: ignore
5344_wasmtime_exnref_clone = dll.wasmtime_exnref_clone
5345_wasmtime_exnref_clone.restype = None
5346_wasmtime_exnref_clone.argtypes = [ctypes.POINTER(wasmtime_exnref_t), ctypes.POINTER(wasmtime_exnref_t)]
5347def wasmtime_exnref_clone(ref: Any, out: Any) -> None:
5348 return _wasmtime_exnref_clone(ref, out) # type: ignore
5350_wasmtime_exnref_unroot = dll.wasmtime_exnref_unroot
5351_wasmtime_exnref_unroot.restype = None
5352_wasmtime_exnref_unroot.argtypes = [ctypes.POINTER(wasmtime_exnref_t)]
5353def wasmtime_exnref_unroot(ref: Any) -> None:
5354 return _wasmtime_exnref_unroot(ref) # type: ignore
5356_wasmtime_exnref_from_raw = dll.wasmtime_exnref_from_raw
5357_wasmtime_exnref_from_raw.restype = None
5358_wasmtime_exnref_from_raw.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.c_uint32, ctypes.POINTER(wasmtime_exnref_t)]
5359def wasmtime_exnref_from_raw(context: Any, raw: Any, out: Any) -> None:
5360 return _wasmtime_exnref_from_raw(context, raw, out) # type: ignore
5362_wasmtime_exnref_to_raw = dll.wasmtime_exnref_to_raw
5363_wasmtime_exnref_to_raw.restype = ctypes.c_uint32
5364_wasmtime_exnref_to_raw.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_exnref_t)]
5365def wasmtime_exnref_to_raw(context: Any, ref: Any) -> int:
5366 return _wasmtime_exnref_to_raw(context, ref) # type: ignore
5368_wasmtime_exnref_tag = dll.wasmtime_exnref_tag
5369_wasmtime_exnref_tag.restype = ctypes.POINTER(wasmtime_error_t)
5370_wasmtime_exnref_tag.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_exnref_t), ctypes.POINTER(wasmtime_tag_t)]
5371def wasmtime_exnref_tag(store: Any, exn: Any, tag_ret: Any) -> ctypes._Pointer:
5372 return _wasmtime_exnref_tag(store, exn, tag_ret) # type: ignore
5374_wasmtime_exnref_field_count = dll.wasmtime_exnref_field_count
5375_wasmtime_exnref_field_count.restype = ctypes.c_size_t
5376_wasmtime_exnref_field_count.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_exnref_t)]
5377def wasmtime_exnref_field_count(store: Any, exn: Any) -> int:
5378 return _wasmtime_exnref_field_count(store, exn) # type: ignore
5380_wasmtime_exnref_field = dll.wasmtime_exnref_field
5381_wasmtime_exnref_field.restype = ctypes.POINTER(wasmtime_error_t)
5382_wasmtime_exnref_field.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_exnref_t), ctypes.c_size_t, ctypes.POINTER(wasmtime_val_t)]
5383def wasmtime_exnref_field(store: Any, exn: Any, index: Any, val_ret: Any) -> ctypes._Pointer:
5384 return _wasmtime_exnref_field(store, exn, index, val_ret) # type: ignore
5386_wasmtime_context_set_exception = dll.wasmtime_context_set_exception
5387_wasmtime_context_set_exception.restype = ctypes.POINTER(wasm_trap_t)
5388_wasmtime_context_set_exception.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_exnref_t)]
5389def wasmtime_context_set_exception(store: Any, exn: Any) -> ctypes._Pointer:
5390 return _wasmtime_context_set_exception(store, exn) # type: ignore
5392_wasmtime_context_take_exception = dll.wasmtime_context_take_exception
5393_wasmtime_context_take_exception.restype = ctypes.c_bool
5394_wasmtime_context_take_exception.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_exnref_t)]
5395def wasmtime_context_take_exception(store: Any, exn_ret: Any) -> bool:
5396 return _wasmtime_context_take_exception(store, exn_ret) # type: ignore
5398_wasmtime_context_has_exception = dll.wasmtime_context_has_exception
5399_wasmtime_context_has_exception.restype = ctypes.c_bool
5400_wasmtime_context_has_exception.argtypes = [ctypes.POINTER(wasmtime_context_t)]
5401def wasmtime_context_has_exception(store: Any) -> bool:
5402 return _wasmtime_context_has_exception(store) # type: ignore
5404_wasmtime_exnref_type = dll.wasmtime_exnref_type
5405_wasmtime_exnref_type.restype = ctypes.POINTER(wasmtime_exn_type_t)
5406_wasmtime_exnref_type.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_exnref_t)]
5407def wasmtime_exnref_type(context: Any, exnref: Any) -> ctypes._Pointer:
5408 return _wasmtime_exnref_type(context, exnref) # type: ignore
5410_wasmtime_externref_new = dll.wasmtime_externref_new
5411_wasmtime_externref_new.restype = ctypes.c_bool
5412_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)]
5413def wasmtime_externref_new(context: Any, data: Any, finalizer: Any, out: Any) -> bool:
5414 return _wasmtime_externref_new(context, data, finalizer, out) # type: ignore
5416_wasmtime_externref_data = dll.wasmtime_externref_data
5417_wasmtime_externref_data.restype = ctypes.c_void_p
5418_wasmtime_externref_data.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_externref_t)]
5419def wasmtime_externref_data(context: Any, data: Any) -> ctypes._Pointer:
5420 return _wasmtime_externref_data(context, data) # type: ignore
5422_wasmtime_externref_clone = dll.wasmtime_externref_clone
5423_wasmtime_externref_clone.restype = None
5424_wasmtime_externref_clone.argtypes = [ctypes.POINTER(wasmtime_externref_t), ctypes.POINTER(wasmtime_externref_t)]
5425def wasmtime_externref_clone(ref: Any, out: Any) -> None:
5426 return _wasmtime_externref_clone(ref, out) # type: ignore
5428_wasmtime_externref_unroot = dll.wasmtime_externref_unroot
5429_wasmtime_externref_unroot.restype = None
5430_wasmtime_externref_unroot.argtypes = [ctypes.POINTER(wasmtime_externref_t)]
5431def wasmtime_externref_unroot(ref: Any) -> None:
5432 return _wasmtime_externref_unroot(ref) # type: ignore
5434_wasmtime_externref_from_raw = dll.wasmtime_externref_from_raw
5435_wasmtime_externref_from_raw.restype = None
5436_wasmtime_externref_from_raw.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.c_uint32, ctypes.POINTER(wasmtime_externref_t)]
5437def wasmtime_externref_from_raw(context: Any, raw: Any, out: Any) -> None:
5438 return _wasmtime_externref_from_raw(context, raw, out) # type: ignore
5440_wasmtime_externref_to_raw = dll.wasmtime_externref_to_raw
5441_wasmtime_externref_to_raw.restype = ctypes.c_uint32
5442_wasmtime_externref_to_raw.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_externref_t)]
5443def wasmtime_externref_to_raw(context: Any, ref: Any) -> int:
5444 return _wasmtime_externref_to_raw(context, ref) # type: ignore
5446_wasmtime_global_new = dll.wasmtime_global_new
5447_wasmtime_global_new.restype = ctypes.POINTER(wasmtime_error_t)
5448_wasmtime_global_new.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasm_globaltype_t), ctypes.POINTER(wasmtime_val_t), ctypes.POINTER(wasmtime_global_t)]
5449def wasmtime_global_new(store: Any, type: Any, val: Any, ret: Any) -> ctypes._Pointer:
5450 return _wasmtime_global_new(store, type, val, ret) # type: ignore
5452_wasmtime_global_type = dll.wasmtime_global_type
5453_wasmtime_global_type.restype = ctypes.POINTER(wasm_globaltype_t)
5454_wasmtime_global_type.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_global_t)]
5455def wasmtime_global_type(store: Any, arg1: Any) -> ctypes._Pointer:
5456 return _wasmtime_global_type(store, arg1) # type: ignore
5458_wasmtime_global_get = dll.wasmtime_global_get
5459_wasmtime_global_get.restype = None
5460_wasmtime_global_get.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_global_t), ctypes.POINTER(wasmtime_val_t)]
5461def wasmtime_global_get(store: Any, arg1: Any, out: Any) -> None:
5462 return _wasmtime_global_get(store, arg1, out) # type: ignore
5464_wasmtime_global_set = dll.wasmtime_global_set
5465_wasmtime_global_set.restype = ctypes.POINTER(wasmtime_error_t)
5466_wasmtime_global_set.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_global_t), ctypes.POINTER(wasmtime_val_t)]
5467def wasmtime_global_set(store: Any, arg1: Any, val: Any) -> ctypes._Pointer:
5468 return _wasmtime_global_set(store, arg1, val) # type: ignore
5470_wasmtime_memorytype_new = dll.wasmtime_memorytype_new
5471_wasmtime_memorytype_new.restype = ctypes.POINTER(wasmtime_error_t)
5472_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))]
5473def wasmtime_memorytype_new(min: Any, max_present: Any, max: Any, is_64: Any, shared: Any, page_size_log2: Any, ret: Any) -> ctypes._Pointer:
5474 return _wasmtime_memorytype_new(min, max_present, max, is_64, shared, page_size_log2, ret) # type: ignore
5476_wasmtime_memorytype_minimum = dll.wasmtime_memorytype_minimum
5477_wasmtime_memorytype_minimum.restype = ctypes.c_uint64
5478_wasmtime_memorytype_minimum.argtypes = [ctypes.POINTER(wasm_memorytype_t)]
5479def wasmtime_memorytype_minimum(ty: Any) -> int:
5480 return _wasmtime_memorytype_minimum(ty) # type: ignore
5482_wasmtime_memorytype_maximum = dll.wasmtime_memorytype_maximum
5483_wasmtime_memorytype_maximum.restype = ctypes.c_bool
5484_wasmtime_memorytype_maximum.argtypes = [ctypes.POINTER(wasm_memorytype_t), ctypes.POINTER(ctypes.c_uint64)]
5485def wasmtime_memorytype_maximum(ty: Any, max: Any) -> bool:
5486 return _wasmtime_memorytype_maximum(ty, max) # type: ignore
5488_wasmtime_memorytype_is64 = dll.wasmtime_memorytype_is64
5489_wasmtime_memorytype_is64.restype = ctypes.c_bool
5490_wasmtime_memorytype_is64.argtypes = [ctypes.POINTER(wasm_memorytype_t)]
5491def wasmtime_memorytype_is64(ty: Any) -> bool:
5492 return _wasmtime_memorytype_is64(ty) # type: ignore
5494_wasmtime_memorytype_isshared = dll.wasmtime_memorytype_isshared
5495_wasmtime_memorytype_isshared.restype = ctypes.c_bool
5496_wasmtime_memorytype_isshared.argtypes = [ctypes.POINTER(wasm_memorytype_t)]
5497def wasmtime_memorytype_isshared(ty: Any) -> bool:
5498 return _wasmtime_memorytype_isshared(ty) # type: ignore
5500_wasmtime_memorytype_page_size = dll.wasmtime_memorytype_page_size
5501_wasmtime_memorytype_page_size.restype = ctypes.c_uint64
5502_wasmtime_memorytype_page_size.argtypes = [ctypes.POINTER(wasm_memorytype_t)]
5503def wasmtime_memorytype_page_size(ty: Any) -> int:
5504 return _wasmtime_memorytype_page_size(ty) # type: ignore
5506_wasmtime_memorytype_page_size_log2 = dll.wasmtime_memorytype_page_size_log2
5507_wasmtime_memorytype_page_size_log2.restype = ctypes.c_uint8
5508_wasmtime_memorytype_page_size_log2.argtypes = [ctypes.POINTER(wasm_memorytype_t)]
5509def wasmtime_memorytype_page_size_log2(ty: Any) -> ctypes.c_uint8:
5510 return _wasmtime_memorytype_page_size_log2(ty) # type: ignore
5512_wasmtime_memory_new = dll.wasmtime_memory_new
5513_wasmtime_memory_new.restype = ctypes.POINTER(wasmtime_error_t)
5514_wasmtime_memory_new.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasm_memorytype_t), ctypes.POINTER(wasmtime_memory_t)]
5515def wasmtime_memory_new(store: Any, ty: Any, ret: Any) -> ctypes._Pointer:
5516 return _wasmtime_memory_new(store, ty, ret) # type: ignore
5518_wasmtime_memory_type = dll.wasmtime_memory_type
5519_wasmtime_memory_type.restype = ctypes.POINTER(wasm_memorytype_t)
5520_wasmtime_memory_type.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_memory_t)]
5521def wasmtime_memory_type(store: Any, memory: Any) -> ctypes._Pointer:
5522 return _wasmtime_memory_type(store, memory) # type: ignore
5524_wasmtime_memory_data = dll.wasmtime_memory_data
5525_wasmtime_memory_data.restype = ctypes.POINTER(ctypes.c_uint8)
5526_wasmtime_memory_data.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_memory_t)]
5527def wasmtime_memory_data(store: Any, memory: Any) -> ctypes._Pointer:
5528 return _wasmtime_memory_data(store, memory) # type: ignore
5530_wasmtime_memory_data_size = dll.wasmtime_memory_data_size
5531_wasmtime_memory_data_size.restype = ctypes.c_size_t
5532_wasmtime_memory_data_size.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_memory_t)]
5533def wasmtime_memory_data_size(store: Any, memory: Any) -> int:
5534 return _wasmtime_memory_data_size(store, memory) # type: ignore
5536_wasmtime_memory_size = dll.wasmtime_memory_size
5537_wasmtime_memory_size.restype = ctypes.c_uint64
5538_wasmtime_memory_size.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_memory_t)]
5539def wasmtime_memory_size(store: Any, memory: Any) -> int:
5540 return _wasmtime_memory_size(store, memory) # type: ignore
5542_wasmtime_memory_grow = dll.wasmtime_memory_grow
5543_wasmtime_memory_grow.restype = ctypes.POINTER(wasmtime_error_t)
5544_wasmtime_memory_grow.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_memory_t), ctypes.c_uint64, ctypes.POINTER(ctypes.c_uint64)]
5545def wasmtime_memory_grow(store: Any, memory: Any, delta: Any, prev_size: Any) -> ctypes._Pointer:
5546 return _wasmtime_memory_grow(store, memory, delta, prev_size) # type: ignore
5548_wasmtime_memory_page_size = dll.wasmtime_memory_page_size
5549_wasmtime_memory_page_size.restype = ctypes.c_uint64
5550_wasmtime_memory_page_size.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_memory_t)]
5551def wasmtime_memory_page_size(store: Any, memory: Any) -> int:
5552 return _wasmtime_memory_page_size(store, memory) # type: ignore
5554_wasmtime_memory_page_size_log2 = dll.wasmtime_memory_page_size_log2
5555_wasmtime_memory_page_size_log2.restype = ctypes.c_uint8
5556_wasmtime_memory_page_size_log2.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_memory_t)]
5557def wasmtime_memory_page_size_log2(store: Any, memory: Any) -> ctypes.c_uint8:
5558 return _wasmtime_memory_page_size_log2(store, memory) # type: ignore
5560class wasmtime_guestprofiler(ctypes.Structure):
5561 pass
5563wasmtime_guestprofiler_t = wasmtime_guestprofiler
5565_wasmtime_guestprofiler_delete = dll.wasmtime_guestprofiler_delete
5566_wasmtime_guestprofiler_delete.restype = None
5567_wasmtime_guestprofiler_delete.argtypes = [ctypes.POINTER(wasmtime_guestprofiler_t)]
5568def wasmtime_guestprofiler_delete(guestprofiler: Any) -> None:
5569 return _wasmtime_guestprofiler_delete(guestprofiler) # type: ignore
5571class wasmtime_guestprofiler_modules(ctypes.Structure):
5572 _fields_ = [
5573 ("name", ctypes.POINTER(wasm_name_t)),
5574 ("mod", ctypes.POINTER(wasmtime_module_t)),
5575 ]
5576 name: ctypes._Pointer
5577 mod: ctypes._Pointer
5579wasmtime_guestprofiler_modules_t = wasmtime_guestprofiler_modules
5581_wasmtime_guestprofiler_new = dll.wasmtime_guestprofiler_new
5582_wasmtime_guestprofiler_new.restype = ctypes.POINTER(wasmtime_guestprofiler_t)
5583_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]
5584def wasmtime_guestprofiler_new(engine: Any, module_name: Any, interval_nanos: Any, modules: Any, modules_len: Any) -> ctypes._Pointer:
5585 return _wasmtime_guestprofiler_new(engine, module_name, interval_nanos, modules, modules_len) # type: ignore
5587class wasmtime_guestprofiler_module_set(ctypes.Structure):
5588 pass
5590wasmtime_guestprofiler_module_set_t = wasmtime_guestprofiler_module_set
5592_wasmtime_guestprofiler_module_set_new = dll.wasmtime_guestprofiler_module_set_new
5593_wasmtime_guestprofiler_module_set_new.restype = ctypes.POINTER(wasmtime_error_t)
5594_wasmtime_guestprofiler_module_set_new.argtypes = [ctypes.POINTER(wasm_engine_t), ctypes.POINTER(wasmtime_guestprofiler_modules_t), ctypes.c_size_t, ctypes.POINTER(ctypes.POINTER(wasmtime_guestprofiler_module_set_t))]
5595def wasmtime_guestprofiler_module_set_new(engine: Any, modules: Any, modules_len: Any, out: Any) -> ctypes._Pointer:
5596 return _wasmtime_guestprofiler_module_set_new(engine, modules, modules_len, out) # type: ignore
5598_wasmtime_guestprofiler_module_set_clone = dll.wasmtime_guestprofiler_module_set_clone
5599_wasmtime_guestprofiler_module_set_clone.restype = ctypes.POINTER(wasmtime_guestprofiler_module_set_t)
5600_wasmtime_guestprofiler_module_set_clone.argtypes = [ctypes.POINTER(wasmtime_guestprofiler_module_set_t)]
5601def wasmtime_guestprofiler_module_set_clone(set: Any) -> ctypes._Pointer:
5602 return _wasmtime_guestprofiler_module_set_clone(set) # type: ignore
5604_wasmtime_guestprofiler_module_set_delete = dll.wasmtime_guestprofiler_module_set_delete
5605_wasmtime_guestprofiler_module_set_delete.restype = None
5606_wasmtime_guestprofiler_module_set_delete.argtypes = [ctypes.POINTER(wasmtime_guestprofiler_module_set_t)]
5607def wasmtime_guestprofiler_module_set_delete(set: Any) -> None:
5608 return _wasmtime_guestprofiler_module_set_delete(set) # type: ignore
5610_wasmtime_guestprofiler_new_with_module_set = dll.wasmtime_guestprofiler_new_with_module_set
5611_wasmtime_guestprofiler_new_with_module_set.restype = ctypes.POINTER(wasmtime_guestprofiler_t)
5612_wasmtime_guestprofiler_new_with_module_set.argtypes = [ctypes.POINTER(wasm_name_t), ctypes.c_uint64, ctypes.POINTER(wasmtime_guestprofiler_module_set_t)]
5613def wasmtime_guestprofiler_new_with_module_set(module_name: Any, interval_nanos: Any, modules: Any) -> ctypes._Pointer:
5614 return _wasmtime_guestprofiler_new_with_module_set(module_name, interval_nanos, modules) # type: ignore
5616_wasmtime_guestprofiler_sample = dll.wasmtime_guestprofiler_sample
5617_wasmtime_guestprofiler_sample.restype = None
5618_wasmtime_guestprofiler_sample.argtypes = [ctypes.POINTER(wasmtime_guestprofiler_t), ctypes.POINTER(wasmtime_store_t), ctypes.c_uint64]
5619def wasmtime_guestprofiler_sample(guestprofiler: Any, store: Any, delta_nanos: Any) -> None:
5620 return _wasmtime_guestprofiler_sample(guestprofiler, store, delta_nanos) # type: ignore
5622_wasmtime_guestprofiler_finish = dll.wasmtime_guestprofiler_finish
5623_wasmtime_guestprofiler_finish.restype = ctypes.POINTER(wasmtime_error_t)
5624_wasmtime_guestprofiler_finish.argtypes = [ctypes.POINTER(wasmtime_guestprofiler_t), ctypes.POINTER(wasm_byte_vec_t)]
5625def wasmtime_guestprofiler_finish(guestprofiler: Any, out: Any) -> ctypes._Pointer:
5626 return _wasmtime_guestprofiler_finish(guestprofiler, out) # type: ignore
5628class wasmtime_struct_ref_pre(ctypes.Structure):
5629 pass
5631wasmtime_struct_ref_pre_t = wasmtime_struct_ref_pre
5633_wasmtime_struct_ref_pre_new = dll.wasmtime_struct_ref_pre_new
5634_wasmtime_struct_ref_pre_new.restype = ctypes.POINTER(wasmtime_struct_ref_pre_t)
5635_wasmtime_struct_ref_pre_new.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_struct_type_t)]
5636def wasmtime_struct_ref_pre_new(context: Any, ty: Any) -> ctypes._Pointer:
5637 return _wasmtime_struct_ref_pre_new(context, ty) # type: ignore
5639_wasmtime_struct_ref_pre_delete = dll.wasmtime_struct_ref_pre_delete
5640_wasmtime_struct_ref_pre_delete.restype = None
5641_wasmtime_struct_ref_pre_delete.argtypes = [ctypes.POINTER(wasmtime_struct_ref_pre_t)]
5642def wasmtime_struct_ref_pre_delete(pre: Any) -> None:
5643 return _wasmtime_struct_ref_pre_delete(pre) # type: ignore
5645_wasmtime_structref_new = dll.wasmtime_structref_new
5646_wasmtime_structref_new.restype = ctypes.POINTER(wasmtime_error_t)
5647_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)]
5648def wasmtime_structref_new(context: Any, pre: Any, fields: Any, nfields: Any, out: Any) -> ctypes._Pointer:
5649 return _wasmtime_structref_new(context, pre, fields, nfields, out) # type: ignore
5651_wasmtime_structref_clone = dll.wasmtime_structref_clone
5652_wasmtime_structref_clone.restype = None
5653_wasmtime_structref_clone.argtypes = [ctypes.POINTER(wasmtime_structref_t), ctypes.POINTER(wasmtime_structref_t)]
5654def wasmtime_structref_clone(structref: Any, out: Any) -> None:
5655 return _wasmtime_structref_clone(structref, out) # type: ignore
5657_wasmtime_structref_unroot = dll.wasmtime_structref_unroot
5658_wasmtime_structref_unroot.restype = None
5659_wasmtime_structref_unroot.argtypes = [ctypes.POINTER(wasmtime_structref_t)]
5660def wasmtime_structref_unroot(ref: Any) -> None:
5661 return _wasmtime_structref_unroot(ref) # type: ignore
5663_wasmtime_structref_to_anyref = dll.wasmtime_structref_to_anyref
5664_wasmtime_structref_to_anyref.restype = None
5665_wasmtime_structref_to_anyref.argtypes = [ctypes.POINTER(wasmtime_structref_t), ctypes.POINTER(wasmtime_anyref_t)]
5666def wasmtime_structref_to_anyref(structref: Any, out: Any) -> None:
5667 return _wasmtime_structref_to_anyref(structref, out) # type: ignore
5669_wasmtime_structref_to_eqref = dll.wasmtime_structref_to_eqref
5670_wasmtime_structref_to_eqref.restype = None
5671_wasmtime_structref_to_eqref.argtypes = [ctypes.POINTER(wasmtime_structref_t), ctypes.POINTER(wasmtime_eqref_t)]
5672def wasmtime_structref_to_eqref(structref: Any, out: Any) -> None:
5673 return _wasmtime_structref_to_eqref(structref, out) # type: ignore
5675_wasmtime_structref_field = dll.wasmtime_structref_field
5676_wasmtime_structref_field.restype = ctypes.POINTER(wasmtime_error_t)
5677_wasmtime_structref_field.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_structref_t), ctypes.c_size_t, ctypes.POINTER(wasmtime_val_t)]
5678def wasmtime_structref_field(context: Any, structref: Any, index: Any, out: Any) -> ctypes._Pointer:
5679 return _wasmtime_structref_field(context, structref, index, out) # type: ignore
5681_wasmtime_structref_set_field = dll.wasmtime_structref_set_field
5682_wasmtime_structref_set_field.restype = ctypes.POINTER(wasmtime_error_t)
5683_wasmtime_structref_set_field.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_structref_t), ctypes.c_size_t, ctypes.POINTER(wasmtime_val_t)]
5684def wasmtime_structref_set_field(context: Any, structref: Any, index: Any, val: Any) -> ctypes._Pointer:
5685 return _wasmtime_structref_set_field(context, structref, index, val) # type: ignore
5687_wasmtime_structref_type = dll.wasmtime_structref_type
5688_wasmtime_structref_type.restype = ctypes.POINTER(wasmtime_struct_type_t)
5689_wasmtime_structref_type.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_structref_t)]
5690def wasmtime_structref_type(context: Any, structref: Any) -> ctypes._Pointer:
5691 return _wasmtime_structref_type(context, structref) # type: ignore
5693_wasmtime_tabletype_minimum = dll.wasmtime_tabletype_minimum
5694_wasmtime_tabletype_minimum.restype = ctypes.c_uint64
5695_wasmtime_tabletype_minimum.argtypes = [ctypes.POINTER(wasm_tabletype_t)]
5696def wasmtime_tabletype_minimum(ty: Any) -> int:
5697 return _wasmtime_tabletype_minimum(ty) # type: ignore
5699_wasmtime_tabletype_maximum = dll.wasmtime_tabletype_maximum
5700_wasmtime_tabletype_maximum.restype = ctypes.c_bool
5701_wasmtime_tabletype_maximum.argtypes = [ctypes.POINTER(wasm_tabletype_t), ctypes.POINTER(ctypes.c_uint64)]
5702def wasmtime_tabletype_maximum(ty: Any, max: Any) -> bool:
5703 return _wasmtime_tabletype_maximum(ty, max) # type: ignore
5705_wasmtime_tabletype_is64 = dll.wasmtime_tabletype_is64
5706_wasmtime_tabletype_is64.restype = ctypes.c_bool
5707_wasmtime_tabletype_is64.argtypes = [ctypes.POINTER(wasm_tabletype_t)]
5708def wasmtime_tabletype_is64(ty: Any) -> bool:
5709 return _wasmtime_tabletype_is64(ty) # type: ignore
5711_wasmtime_table_new = dll.wasmtime_table_new
5712_wasmtime_table_new.restype = ctypes.POINTER(wasmtime_error_t)
5713_wasmtime_table_new.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasm_tabletype_t), ctypes.POINTER(wasmtime_val_t), ctypes.POINTER(wasmtime_table_t)]
5714def wasmtime_table_new(store: Any, ty: Any, init: Any, table: Any) -> ctypes._Pointer:
5715 return _wasmtime_table_new(store, ty, init, table) # type: ignore
5717_wasmtime_table_type = dll.wasmtime_table_type
5718_wasmtime_table_type.restype = ctypes.POINTER(wasm_tabletype_t)
5719_wasmtime_table_type.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_table_t)]
5720def wasmtime_table_type(store: Any, table: Any) -> ctypes._Pointer:
5721 return _wasmtime_table_type(store, table) # type: ignore
5723_wasmtime_table_get = dll.wasmtime_table_get
5724_wasmtime_table_get.restype = ctypes.c_bool
5725_wasmtime_table_get.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_table_t), ctypes.c_uint64, ctypes.POINTER(wasmtime_val_t)]
5726def wasmtime_table_get(store: Any, table: Any, index: Any, val: Any) -> bool:
5727 return _wasmtime_table_get(store, table, index, val) # type: ignore
5729_wasmtime_table_set = dll.wasmtime_table_set
5730_wasmtime_table_set.restype = ctypes.POINTER(wasmtime_error_t)
5731_wasmtime_table_set.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_table_t), ctypes.c_uint64, ctypes.POINTER(wasmtime_val_t)]
5732def wasmtime_table_set(store: Any, table: Any, index: Any, value: Any) -> ctypes._Pointer:
5733 return _wasmtime_table_set(store, table, index, value) # type: ignore
5735_wasmtime_table_size = dll.wasmtime_table_size
5736_wasmtime_table_size.restype = ctypes.c_uint64
5737_wasmtime_table_size.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_table_t)]
5738def wasmtime_table_size(store: Any, table: Any) -> int:
5739 return _wasmtime_table_size(store, table) # type: ignore
5741_wasmtime_table_grow = dll.wasmtime_table_grow
5742_wasmtime_table_grow.restype = ctypes.POINTER(wasmtime_error_t)
5743_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)]
5744def wasmtime_table_grow(store: Any, table: Any, delta: Any, init: Any, prev_size: Any) -> ctypes._Pointer:
5745 return _wasmtime_table_grow(store, table, delta, init, prev_size) # type: ignore
5747wasmtime_trap_code_t = ctypes.c_uint8
5749class wasmtime_trap_code_enum(Enum):
5750 WASMTIME_TRAP_CODE_STACK_OVERFLOW = 0
5751 WASMTIME_TRAP_CODE_MEMORY_OUT_OF_BOUNDS = 1
5752 WASMTIME_TRAP_CODE_HEAP_MISALIGNED = 2
5753 WASMTIME_TRAP_CODE_TABLE_OUT_OF_BOUNDS = 3
5754 WASMTIME_TRAP_CODE_INDIRECT_CALL_TO_NULL = 4
5755 WASMTIME_TRAP_CODE_BAD_SIGNATURE = 5
5756 WASMTIME_TRAP_CODE_INTEGER_OVERFLOW = 6
5757 WASMTIME_TRAP_CODE_INTEGER_DIVISION_BY_ZERO = 7
5758 WASMTIME_TRAP_CODE_BAD_CONVERSION_TO_INTEGER = 8
5759 WASMTIME_TRAP_CODE_UNREACHABLE_CODE_REACHED = 9
5760 WASMTIME_TRAP_CODE_INTERRUPT = 10
5761 WASMTIME_TRAP_CODE_OUT_OF_FUEL = 11
5762 WASMTIME_TRAP_CODE_ATOMIC_WAIT_NON_SHARED_MEMORY = 12
5763 WASMTIME_TRAP_CODE_NULL_REFERENCE = 13
5764 WASMTIME_TRAP_CODE_ARRAY_OUT_OF_BOUNDS = 14
5765 WASMTIME_TRAP_CODE_ALLOCATION_TOO_LARGE = 15
5766 WASMTIME_TRAP_CODE_CAST_FAILURE = 16
5767 WASMTIME_TRAP_CODE_CANNOT_ENTER_COMPONENT = 17
5768 WASMTIME_TRAP_CODE_NO_ASYNC_RESULT = 18
5769 WASMTIME_TRAP_CODE_UNHANDLED_TAG = 19
5770 WASMTIME_TRAP_CODE_CONTINUATION_ALREADY_CONSUMED = 20
5771 WASMTIME_TRAP_CODE_DISABLED_OPCODE = 21
5772 WASMTIME_TRAP_CODE_ASYNC_DEADLOCK = 22
5773 WASMTIME_TRAP_CODE_CANNOT_LEAVE_COMPONENT = 23
5774 WASMTIME_TRAP_CODE_CANNOT_BLOCK_SYNC_TASK = 24
5775 WASMTIME_TRAP_CODE_INVALID_CHAR = 25
5776 WASMTIME_TRAP_CODE_DEBUG_ASSERT_STRING_ENCODING_FINISHED = 26
5777 WASMTIME_TRAP_CODE_DEBUG_ASSERT_EQUAL_CODE_UNITS = 27
5778 WASMTIME_TRAP_CODE_DEBUG_ASSERT_POINTER_ALIGNED = 28
5779 WASMTIME_TRAP_CODE_DEBUG_ASSERT_UPPER_BITS_UNSET = 29
5780 WASMTIME_TRAP_CODE_STRING_OUT_OF_BOUNDS = 30
5781 WASMTIME_TRAP_CODE_LIST_OUT_OF_BOUNDS = 31
5782 WASMTIME_TRAP_CODE_INVALID_DISCRIMINANT = 32
5783 WASMTIME_TRAP_CODE_UNALIGNED_POINTER = 33
5784 WASMTIME_TRAP_CODE_TASK_CANCEL_NOT_CANCELLED = 34
5785 WASMTIME_TRAP_CODE_TASK_CANCEL_OR_RETURN_TWICE = 35
5786 WASMTIME_TRAP_CODE_SUBTASK_CANCEL_AFTER_TERMINAL = 36
5787 WASMTIME_TRAP_CODE_TASK_RETURN_INVALID = 37
5788 WASMTIME_TRAP_CODE_WAITABLE_SET_DROP_HAS_WAITERS = 38
5789 WASMTIME_TRAP_CODE_SUBTASK_DROP_NOT_RESOLVED = 39
5790 WASMTIME_TRAP_CODE_THREAD_NEW_INDIRECT_INVALID_TYPE = 40
5791 WASMTIME_TRAP_CODE_THREAD_NEW_INDIRECT_UNINITIALIZED = 41
5792 WASMTIME_TRAP_CODE_BACKPRESSURE_OVERFLOW = 42
5793 WASMTIME_TRAP_CODE_UNSUPPORTED_CALLBACK_CODE = 43
5794 WASMTIME_TRAP_CODE_CANNOT_RESUME_THREAD = 44
5795 WASMTIME_TRAP_CODE_CONCURRENT_FUTURE_STREAM_OP = 45
5796 WASMTIME_TRAP_CODE_REFERENCE_COUNT_OVERFLOW = 46
5797 WASMTIME_TRAP_CODE_STREAM_OP_TOO_BIG = 47
5798 WASMTIME_TRAP_CODE_WAITABLE_SYNC_AND_ASYNC = 48
5799 WASMTIME_TRAP_CODE_UNCAUGHT_EXCEPTION = 49
5800 WASMTIME_TRAP_READ_FROM_DROPPED_STREAM = 50
5801 WASMTIME_TRAP_WRITE_TO_DROPPED_STREAM = 51
5802 WASMTIME_TRAP_WRITE_TO_DROPPED_FUTURE = 52
5803 WASMTIME_TRAP_LIFT_DROPPED_STREAM = 53
5804 WASMTIME_TRAP_CODE_TASK_RETURN_OR_CANCEL_SYNC_LIFTED = 54
5805 WASMTIME_TRAP_CODE_HOSTCALL_FUEL_EXHAUSTED = 55
5807_wasmtime_trap_new = dll.wasmtime_trap_new
5808_wasmtime_trap_new.restype = ctypes.POINTER(wasm_trap_t)
5809_wasmtime_trap_new.argtypes = [ctypes.POINTER(ctypes.c_char), ctypes.c_size_t]
5810def wasmtime_trap_new(msg: Any, msg_len: Any) -> ctypes._Pointer:
5811 return _wasmtime_trap_new(msg, msg_len) # type: ignore
5813_wasmtime_trap_new_code = dll.wasmtime_trap_new_code
5814_wasmtime_trap_new_code.restype = ctypes.POINTER(wasm_trap_t)
5815_wasmtime_trap_new_code.argtypes = [wasmtime_trap_code_t]
5816def wasmtime_trap_new_code(code: Any) -> ctypes._Pointer:
5817 return _wasmtime_trap_new_code(code) # type: ignore
5819_wasmtime_trap_code = dll.wasmtime_trap_code
5820_wasmtime_trap_code.restype = ctypes.c_bool
5821_wasmtime_trap_code.argtypes = [ctypes.POINTER(wasm_trap_t), ctypes.POINTER(wasmtime_trap_code_t)]
5822def wasmtime_trap_code(arg0: Any, code: Any) -> bool:
5823 return _wasmtime_trap_code(arg0, code) # type: ignore
5825_wasmtime_frame_func_name = dll.wasmtime_frame_func_name
5826_wasmtime_frame_func_name.restype = ctypes.POINTER(wasm_name_t)
5827_wasmtime_frame_func_name.argtypes = [ctypes.POINTER(wasm_frame_t)]
5828def wasmtime_frame_func_name(arg0: Any) -> ctypes._Pointer:
5829 return _wasmtime_frame_func_name(arg0) # type: ignore
5831_wasmtime_frame_module_name = dll.wasmtime_frame_module_name
5832_wasmtime_frame_module_name.restype = ctypes.POINTER(wasm_name_t)
5833_wasmtime_frame_module_name.argtypes = [ctypes.POINTER(wasm_frame_t)]
5834def wasmtime_frame_module_name(arg0: Any) -> ctypes._Pointer:
5835 return _wasmtime_frame_module_name(arg0) # type: ignore
5837_wasmtime_wat2wasm = dll.wasmtime_wat2wasm
5838_wasmtime_wat2wasm.restype = ctypes.POINTER(wasmtime_error_t)
5839_wasmtime_wat2wasm.argtypes = [ctypes.POINTER(ctypes.c_char), ctypes.c_size_t, ctypes.POINTER(wasm_byte_vec_t)]
5840def wasmtime_wat2wasm(wat: Any, wat_len: Any, ret: Any) -> ctypes._Pointer:
5841 return _wasmtime_wat2wasm(wat, wat_len, ret) # type: ignore