Coverage for wasmtime/_bindings.py: 89%
3535 statements
« prev ^ index » next coverage.py v7.11.3, created at 2025-12-22 16:28 +0000
« prev ^ index » next coverage.py v7.11.3, created at 2025-12-22 16:28 +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_externtype_t(ctypes.Structure):
472 pass
474_wasm_externtype_delete = dll.wasm_externtype_delete
475_wasm_externtype_delete.restype = None
476_wasm_externtype_delete.argtypes = [ctypes.POINTER(wasm_externtype_t)]
477def wasm_externtype_delete(arg0: Any) -> None:
478 return _wasm_externtype_delete(arg0) # type: ignore
480class wasm_externtype_vec_t(ctypes.Structure):
481 _fields_ = [
482 ("size", ctypes.c_size_t),
483 ("data", ctypes.POINTER(ctypes.POINTER(wasm_externtype_t))),
484 ]
485 size: int
486 data: ctypes._Pointer
488_wasm_externtype_vec_new_empty = dll.wasm_externtype_vec_new_empty
489_wasm_externtype_vec_new_empty.restype = None
490_wasm_externtype_vec_new_empty.argtypes = [ctypes.POINTER(wasm_externtype_vec_t)]
491def wasm_externtype_vec_new_empty(out: Any) -> None:
492 return _wasm_externtype_vec_new_empty(out) # type: ignore
494_wasm_externtype_vec_new_uninitialized = dll.wasm_externtype_vec_new_uninitialized
495_wasm_externtype_vec_new_uninitialized.restype = None
496_wasm_externtype_vec_new_uninitialized.argtypes = [ctypes.POINTER(wasm_externtype_vec_t), ctypes.c_size_t]
497def wasm_externtype_vec_new_uninitialized(out: Any, arg1: Any) -> None:
498 return _wasm_externtype_vec_new_uninitialized(out, arg1) # type: ignore
500_wasm_externtype_vec_new = dll.wasm_externtype_vec_new
501_wasm_externtype_vec_new.restype = None
502_wasm_externtype_vec_new.argtypes = [ctypes.POINTER(wasm_externtype_vec_t), ctypes.c_size_t, ctypes.POINTER(ctypes.POINTER(wasm_externtype_t))]
503def wasm_externtype_vec_new(out: Any, arg1: Any, arg2: Any) -> None:
504 return _wasm_externtype_vec_new(out, arg1, arg2) # type: ignore
506_wasm_externtype_vec_copy = dll.wasm_externtype_vec_copy
507_wasm_externtype_vec_copy.restype = None
508_wasm_externtype_vec_copy.argtypes = [ctypes.POINTER(wasm_externtype_vec_t), ctypes.POINTER(wasm_externtype_vec_t)]
509def wasm_externtype_vec_copy(out: Any, arg1: Any) -> None:
510 return _wasm_externtype_vec_copy(out, arg1) # type: ignore
512_wasm_externtype_vec_delete = dll.wasm_externtype_vec_delete
513_wasm_externtype_vec_delete.restype = None
514_wasm_externtype_vec_delete.argtypes = [ctypes.POINTER(wasm_externtype_vec_t)]
515def wasm_externtype_vec_delete(arg0: Any) -> None:
516 return _wasm_externtype_vec_delete(arg0) # type: ignore
518_wasm_externtype_copy = dll.wasm_externtype_copy
519_wasm_externtype_copy.restype = ctypes.POINTER(wasm_externtype_t)
520_wasm_externtype_copy.argtypes = [ctypes.POINTER(wasm_externtype_t)]
521def wasm_externtype_copy(arg0: Any) -> ctypes._Pointer:
522 return _wasm_externtype_copy(arg0) # type: ignore
524wasm_externkind_t = ctypes.c_uint8
526class wasm_externkind_enum(Enum):
527 WASM_EXTERN_FUNC = auto()
528 WASM_EXTERN_GLOBAL = auto()
529 WASM_EXTERN_TABLE = auto()
530 WASM_EXTERN_MEMORY = auto()
532_wasm_externtype_kind = dll.wasm_externtype_kind
533_wasm_externtype_kind.restype = wasm_externkind_t
534_wasm_externtype_kind.argtypes = [ctypes.POINTER(wasm_externtype_t)]
535def wasm_externtype_kind(arg0: Any) -> wasm_externkind_t:
536 return _wasm_externtype_kind(arg0) # type: ignore
538_wasm_functype_as_externtype = dll.wasm_functype_as_externtype
539_wasm_functype_as_externtype.restype = ctypes.POINTER(wasm_externtype_t)
540_wasm_functype_as_externtype.argtypes = [ctypes.POINTER(wasm_functype_t)]
541def wasm_functype_as_externtype(arg0: Any) -> ctypes._Pointer:
542 return _wasm_functype_as_externtype(arg0) # type: ignore
544_wasm_globaltype_as_externtype = dll.wasm_globaltype_as_externtype
545_wasm_globaltype_as_externtype.restype = ctypes.POINTER(wasm_externtype_t)
546_wasm_globaltype_as_externtype.argtypes = [ctypes.POINTER(wasm_globaltype_t)]
547def wasm_globaltype_as_externtype(arg0: Any) -> ctypes._Pointer:
548 return _wasm_globaltype_as_externtype(arg0) # type: ignore
550_wasm_tabletype_as_externtype = dll.wasm_tabletype_as_externtype
551_wasm_tabletype_as_externtype.restype = ctypes.POINTER(wasm_externtype_t)
552_wasm_tabletype_as_externtype.argtypes = [ctypes.POINTER(wasm_tabletype_t)]
553def wasm_tabletype_as_externtype(arg0: Any) -> ctypes._Pointer:
554 return _wasm_tabletype_as_externtype(arg0) # type: ignore
556_wasm_memorytype_as_externtype = dll.wasm_memorytype_as_externtype
557_wasm_memorytype_as_externtype.restype = ctypes.POINTER(wasm_externtype_t)
558_wasm_memorytype_as_externtype.argtypes = [ctypes.POINTER(wasm_memorytype_t)]
559def wasm_memorytype_as_externtype(arg0: Any) -> ctypes._Pointer:
560 return _wasm_memorytype_as_externtype(arg0) # type: ignore
562_wasm_externtype_as_functype = dll.wasm_externtype_as_functype
563_wasm_externtype_as_functype.restype = ctypes.POINTER(wasm_functype_t)
564_wasm_externtype_as_functype.argtypes = [ctypes.POINTER(wasm_externtype_t)]
565def wasm_externtype_as_functype(arg0: Any) -> ctypes._Pointer:
566 return _wasm_externtype_as_functype(arg0) # type: ignore
568_wasm_externtype_as_globaltype = dll.wasm_externtype_as_globaltype
569_wasm_externtype_as_globaltype.restype = ctypes.POINTER(wasm_globaltype_t)
570_wasm_externtype_as_globaltype.argtypes = [ctypes.POINTER(wasm_externtype_t)]
571def wasm_externtype_as_globaltype(arg0: Any) -> ctypes._Pointer:
572 return _wasm_externtype_as_globaltype(arg0) # type: ignore
574_wasm_externtype_as_tabletype = dll.wasm_externtype_as_tabletype
575_wasm_externtype_as_tabletype.restype = ctypes.POINTER(wasm_tabletype_t)
576_wasm_externtype_as_tabletype.argtypes = [ctypes.POINTER(wasm_externtype_t)]
577def wasm_externtype_as_tabletype(arg0: Any) -> ctypes._Pointer:
578 return _wasm_externtype_as_tabletype(arg0) # type: ignore
580_wasm_externtype_as_memorytype = dll.wasm_externtype_as_memorytype
581_wasm_externtype_as_memorytype.restype = ctypes.POINTER(wasm_memorytype_t)
582_wasm_externtype_as_memorytype.argtypes = [ctypes.POINTER(wasm_externtype_t)]
583def wasm_externtype_as_memorytype(arg0: Any) -> ctypes._Pointer:
584 return _wasm_externtype_as_memorytype(arg0) # type: ignore
586_wasm_functype_as_externtype_const = dll.wasm_functype_as_externtype_const
587_wasm_functype_as_externtype_const.restype = ctypes.POINTER(wasm_externtype_t)
588_wasm_functype_as_externtype_const.argtypes = [ctypes.POINTER(wasm_functype_t)]
589def wasm_functype_as_externtype_const(arg0: Any) -> ctypes._Pointer:
590 return _wasm_functype_as_externtype_const(arg0) # type: ignore
592_wasm_globaltype_as_externtype_const = dll.wasm_globaltype_as_externtype_const
593_wasm_globaltype_as_externtype_const.restype = ctypes.POINTER(wasm_externtype_t)
594_wasm_globaltype_as_externtype_const.argtypes = [ctypes.POINTER(wasm_globaltype_t)]
595def wasm_globaltype_as_externtype_const(arg0: Any) -> ctypes._Pointer:
596 return _wasm_globaltype_as_externtype_const(arg0) # type: ignore
598_wasm_tabletype_as_externtype_const = dll.wasm_tabletype_as_externtype_const
599_wasm_tabletype_as_externtype_const.restype = ctypes.POINTER(wasm_externtype_t)
600_wasm_tabletype_as_externtype_const.argtypes = [ctypes.POINTER(wasm_tabletype_t)]
601def wasm_tabletype_as_externtype_const(arg0: Any) -> ctypes._Pointer:
602 return _wasm_tabletype_as_externtype_const(arg0) # type: ignore
604_wasm_memorytype_as_externtype_const = dll.wasm_memorytype_as_externtype_const
605_wasm_memorytype_as_externtype_const.restype = ctypes.POINTER(wasm_externtype_t)
606_wasm_memorytype_as_externtype_const.argtypes = [ctypes.POINTER(wasm_memorytype_t)]
607def wasm_memorytype_as_externtype_const(arg0: Any) -> ctypes._Pointer:
608 return _wasm_memorytype_as_externtype_const(arg0) # type: ignore
610_wasm_externtype_as_functype_const = dll.wasm_externtype_as_functype_const
611_wasm_externtype_as_functype_const.restype = ctypes.POINTER(wasm_functype_t)
612_wasm_externtype_as_functype_const.argtypes = [ctypes.POINTER(wasm_externtype_t)]
613def wasm_externtype_as_functype_const(arg0: Any) -> ctypes._Pointer:
614 return _wasm_externtype_as_functype_const(arg0) # type: ignore
616_wasm_externtype_as_globaltype_const = dll.wasm_externtype_as_globaltype_const
617_wasm_externtype_as_globaltype_const.restype = ctypes.POINTER(wasm_globaltype_t)
618_wasm_externtype_as_globaltype_const.argtypes = [ctypes.POINTER(wasm_externtype_t)]
619def wasm_externtype_as_globaltype_const(arg0: Any) -> ctypes._Pointer:
620 return _wasm_externtype_as_globaltype_const(arg0) # type: ignore
622_wasm_externtype_as_tabletype_const = dll.wasm_externtype_as_tabletype_const
623_wasm_externtype_as_tabletype_const.restype = ctypes.POINTER(wasm_tabletype_t)
624_wasm_externtype_as_tabletype_const.argtypes = [ctypes.POINTER(wasm_externtype_t)]
625def wasm_externtype_as_tabletype_const(arg0: Any) -> ctypes._Pointer:
626 return _wasm_externtype_as_tabletype_const(arg0) # type: ignore
628_wasm_externtype_as_memorytype_const = dll.wasm_externtype_as_memorytype_const
629_wasm_externtype_as_memorytype_const.restype = ctypes.POINTER(wasm_memorytype_t)
630_wasm_externtype_as_memorytype_const.argtypes = [ctypes.POINTER(wasm_externtype_t)]
631def wasm_externtype_as_memorytype_const(arg0: Any) -> ctypes._Pointer:
632 return _wasm_externtype_as_memorytype_const(arg0) # type: ignore
634class wasm_importtype_t(ctypes.Structure):
635 pass
637_wasm_importtype_delete = dll.wasm_importtype_delete
638_wasm_importtype_delete.restype = None
639_wasm_importtype_delete.argtypes = [ctypes.POINTER(wasm_importtype_t)]
640def wasm_importtype_delete(arg0: Any) -> None:
641 return _wasm_importtype_delete(arg0) # type: ignore
643class wasm_importtype_vec_t(ctypes.Structure):
644 _fields_ = [
645 ("size", ctypes.c_size_t),
646 ("data", ctypes.POINTER(ctypes.POINTER(wasm_importtype_t))),
647 ]
648 size: int
649 data: ctypes._Pointer
651_wasm_importtype_vec_new_empty = dll.wasm_importtype_vec_new_empty
652_wasm_importtype_vec_new_empty.restype = None
653_wasm_importtype_vec_new_empty.argtypes = [ctypes.POINTER(wasm_importtype_vec_t)]
654def wasm_importtype_vec_new_empty(out: Any) -> None:
655 return _wasm_importtype_vec_new_empty(out) # type: ignore
657_wasm_importtype_vec_new_uninitialized = dll.wasm_importtype_vec_new_uninitialized
658_wasm_importtype_vec_new_uninitialized.restype = None
659_wasm_importtype_vec_new_uninitialized.argtypes = [ctypes.POINTER(wasm_importtype_vec_t), ctypes.c_size_t]
660def wasm_importtype_vec_new_uninitialized(out: Any, arg1: Any) -> None:
661 return _wasm_importtype_vec_new_uninitialized(out, arg1) # type: ignore
663_wasm_importtype_vec_new = dll.wasm_importtype_vec_new
664_wasm_importtype_vec_new.restype = None
665_wasm_importtype_vec_new.argtypes = [ctypes.POINTER(wasm_importtype_vec_t), ctypes.c_size_t, ctypes.POINTER(ctypes.POINTER(wasm_importtype_t))]
666def wasm_importtype_vec_new(out: Any, arg1: Any, arg2: Any) -> None:
667 return _wasm_importtype_vec_new(out, arg1, arg2) # type: ignore
669_wasm_importtype_vec_copy = dll.wasm_importtype_vec_copy
670_wasm_importtype_vec_copy.restype = None
671_wasm_importtype_vec_copy.argtypes = [ctypes.POINTER(wasm_importtype_vec_t), ctypes.POINTER(wasm_importtype_vec_t)]
672def wasm_importtype_vec_copy(out: Any, arg1: Any) -> None:
673 return _wasm_importtype_vec_copy(out, arg1) # type: ignore
675_wasm_importtype_vec_delete = dll.wasm_importtype_vec_delete
676_wasm_importtype_vec_delete.restype = None
677_wasm_importtype_vec_delete.argtypes = [ctypes.POINTER(wasm_importtype_vec_t)]
678def wasm_importtype_vec_delete(arg0: Any) -> None:
679 return _wasm_importtype_vec_delete(arg0) # type: ignore
681_wasm_importtype_copy = dll.wasm_importtype_copy
682_wasm_importtype_copy.restype = ctypes.POINTER(wasm_importtype_t)
683_wasm_importtype_copy.argtypes = [ctypes.POINTER(wasm_importtype_t)]
684def wasm_importtype_copy(arg0: Any) -> ctypes._Pointer:
685 return _wasm_importtype_copy(arg0) # type: ignore
687_wasm_importtype_new = dll.wasm_importtype_new
688_wasm_importtype_new.restype = ctypes.POINTER(wasm_importtype_t)
689_wasm_importtype_new.argtypes = [ctypes.POINTER(wasm_name_t), ctypes.POINTER(wasm_name_t), ctypes.POINTER(wasm_externtype_t)]
690def wasm_importtype_new(module: Any, name: Any, arg2: Any) -> ctypes._Pointer:
691 return _wasm_importtype_new(module, name, arg2) # type: ignore
693_wasm_importtype_module = dll.wasm_importtype_module
694_wasm_importtype_module.restype = ctypes.POINTER(wasm_name_t)
695_wasm_importtype_module.argtypes = [ctypes.POINTER(wasm_importtype_t)]
696def wasm_importtype_module(arg0: Any) -> ctypes._Pointer:
697 return _wasm_importtype_module(arg0) # type: ignore
699_wasm_importtype_name = dll.wasm_importtype_name
700_wasm_importtype_name.restype = ctypes.POINTER(wasm_name_t)
701_wasm_importtype_name.argtypes = [ctypes.POINTER(wasm_importtype_t)]
702def wasm_importtype_name(arg0: Any) -> ctypes._Pointer:
703 return _wasm_importtype_name(arg0) # type: ignore
705_wasm_importtype_type = dll.wasm_importtype_type
706_wasm_importtype_type.restype = ctypes.POINTER(wasm_externtype_t)
707_wasm_importtype_type.argtypes = [ctypes.POINTER(wasm_importtype_t)]
708def wasm_importtype_type(arg0: Any) -> ctypes._Pointer:
709 return _wasm_importtype_type(arg0) # type: ignore
711class wasm_exporttype_t(ctypes.Structure):
712 pass
714_wasm_exporttype_delete = dll.wasm_exporttype_delete
715_wasm_exporttype_delete.restype = None
716_wasm_exporttype_delete.argtypes = [ctypes.POINTER(wasm_exporttype_t)]
717def wasm_exporttype_delete(arg0: Any) -> None:
718 return _wasm_exporttype_delete(arg0) # type: ignore
720class wasm_exporttype_vec_t(ctypes.Structure):
721 _fields_ = [
722 ("size", ctypes.c_size_t),
723 ("data", ctypes.POINTER(ctypes.POINTER(wasm_exporttype_t))),
724 ]
725 size: int
726 data: ctypes._Pointer
728_wasm_exporttype_vec_new_empty = dll.wasm_exporttype_vec_new_empty
729_wasm_exporttype_vec_new_empty.restype = None
730_wasm_exporttype_vec_new_empty.argtypes = [ctypes.POINTER(wasm_exporttype_vec_t)]
731def wasm_exporttype_vec_new_empty(out: Any) -> None:
732 return _wasm_exporttype_vec_new_empty(out) # type: ignore
734_wasm_exporttype_vec_new_uninitialized = dll.wasm_exporttype_vec_new_uninitialized
735_wasm_exporttype_vec_new_uninitialized.restype = None
736_wasm_exporttype_vec_new_uninitialized.argtypes = [ctypes.POINTER(wasm_exporttype_vec_t), ctypes.c_size_t]
737def wasm_exporttype_vec_new_uninitialized(out: Any, arg1: Any) -> None:
738 return _wasm_exporttype_vec_new_uninitialized(out, arg1) # type: ignore
740_wasm_exporttype_vec_new = dll.wasm_exporttype_vec_new
741_wasm_exporttype_vec_new.restype = None
742_wasm_exporttype_vec_new.argtypes = [ctypes.POINTER(wasm_exporttype_vec_t), ctypes.c_size_t, ctypes.POINTER(ctypes.POINTER(wasm_exporttype_t))]
743def wasm_exporttype_vec_new(out: Any, arg1: Any, arg2: Any) -> None:
744 return _wasm_exporttype_vec_new(out, arg1, arg2) # type: ignore
746_wasm_exporttype_vec_copy = dll.wasm_exporttype_vec_copy
747_wasm_exporttype_vec_copy.restype = None
748_wasm_exporttype_vec_copy.argtypes = [ctypes.POINTER(wasm_exporttype_vec_t), ctypes.POINTER(wasm_exporttype_vec_t)]
749def wasm_exporttype_vec_copy(out: Any, arg1: Any) -> None:
750 return _wasm_exporttype_vec_copy(out, arg1) # type: ignore
752_wasm_exporttype_vec_delete = dll.wasm_exporttype_vec_delete
753_wasm_exporttype_vec_delete.restype = None
754_wasm_exporttype_vec_delete.argtypes = [ctypes.POINTER(wasm_exporttype_vec_t)]
755def wasm_exporttype_vec_delete(arg0: Any) -> None:
756 return _wasm_exporttype_vec_delete(arg0) # type: ignore
758_wasm_exporttype_copy = dll.wasm_exporttype_copy
759_wasm_exporttype_copy.restype = ctypes.POINTER(wasm_exporttype_t)
760_wasm_exporttype_copy.argtypes = [ctypes.POINTER(wasm_exporttype_t)]
761def wasm_exporttype_copy(arg0: Any) -> ctypes._Pointer:
762 return _wasm_exporttype_copy(arg0) # type: ignore
764_wasm_exporttype_new = dll.wasm_exporttype_new
765_wasm_exporttype_new.restype = ctypes.POINTER(wasm_exporttype_t)
766_wasm_exporttype_new.argtypes = [ctypes.POINTER(wasm_name_t), ctypes.POINTER(wasm_externtype_t)]
767def wasm_exporttype_new(arg0: Any, arg1: Any) -> ctypes._Pointer:
768 return _wasm_exporttype_new(arg0, arg1) # type: ignore
770_wasm_exporttype_name = dll.wasm_exporttype_name
771_wasm_exporttype_name.restype = ctypes.POINTER(wasm_name_t)
772_wasm_exporttype_name.argtypes = [ctypes.POINTER(wasm_exporttype_t)]
773def wasm_exporttype_name(arg0: Any) -> ctypes._Pointer:
774 return _wasm_exporttype_name(arg0) # type: ignore
776_wasm_exporttype_type = dll.wasm_exporttype_type
777_wasm_exporttype_type.restype = ctypes.POINTER(wasm_externtype_t)
778_wasm_exporttype_type.argtypes = [ctypes.POINTER(wasm_exporttype_t)]
779def wasm_exporttype_type(arg0: Any) -> ctypes._Pointer:
780 return _wasm_exporttype_type(arg0) # type: ignore
782_wasm_val_delete = dll.wasm_val_delete
783_wasm_val_delete.restype = None
784_wasm_val_delete.argtypes = [ctypes.POINTER(wasm_val_t)]
785def wasm_val_delete(v: Any) -> None:
786 return _wasm_val_delete(v) # type: ignore
788_wasm_val_copy = dll.wasm_val_copy
789_wasm_val_copy.restype = None
790_wasm_val_copy.argtypes = [ctypes.POINTER(wasm_val_t), ctypes.POINTER(wasm_val_t)]
791def wasm_val_copy(out: Any, arg1: Any) -> None:
792 return _wasm_val_copy(out, arg1) # type: ignore
794class wasm_val_vec_t(ctypes.Structure):
795 _fields_ = [
796 ("size", ctypes.c_size_t),
797 ("data", ctypes.POINTER(wasm_val_t)),
798 ]
799 size: int
800 data: ctypes._Pointer
802_wasm_val_vec_new_empty = dll.wasm_val_vec_new_empty
803_wasm_val_vec_new_empty.restype = None
804_wasm_val_vec_new_empty.argtypes = [ctypes.POINTER(wasm_val_vec_t)]
805def wasm_val_vec_new_empty(out: Any) -> None:
806 return _wasm_val_vec_new_empty(out) # type: ignore
808_wasm_val_vec_new_uninitialized = dll.wasm_val_vec_new_uninitialized
809_wasm_val_vec_new_uninitialized.restype = None
810_wasm_val_vec_new_uninitialized.argtypes = [ctypes.POINTER(wasm_val_vec_t), ctypes.c_size_t]
811def wasm_val_vec_new_uninitialized(out: Any, arg1: Any) -> None:
812 return _wasm_val_vec_new_uninitialized(out, arg1) # type: ignore
814_wasm_val_vec_new = dll.wasm_val_vec_new
815_wasm_val_vec_new.restype = None
816_wasm_val_vec_new.argtypes = [ctypes.POINTER(wasm_val_vec_t), ctypes.c_size_t, ctypes.POINTER(wasm_val_t)]
817def wasm_val_vec_new(out: Any, arg1: Any, arg2: Any) -> None:
818 return _wasm_val_vec_new(out, arg1, arg2) # type: ignore
820_wasm_val_vec_copy = dll.wasm_val_vec_copy
821_wasm_val_vec_copy.restype = None
822_wasm_val_vec_copy.argtypes = [ctypes.POINTER(wasm_val_vec_t), ctypes.POINTER(wasm_val_vec_t)]
823def wasm_val_vec_copy(out: Any, arg1: Any) -> None:
824 return _wasm_val_vec_copy(out, arg1) # type: ignore
826_wasm_val_vec_delete = dll.wasm_val_vec_delete
827_wasm_val_vec_delete.restype = None
828_wasm_val_vec_delete.argtypes = [ctypes.POINTER(wasm_val_vec_t)]
829def wasm_val_vec_delete(arg0: Any) -> None:
830 return _wasm_val_vec_delete(arg0) # type: ignore
832_wasm_ref_delete = dll.wasm_ref_delete
833_wasm_ref_delete.restype = None
834_wasm_ref_delete.argtypes = [ctypes.POINTER(wasm_ref_t)]
835def wasm_ref_delete(arg0: Any) -> None:
836 return _wasm_ref_delete(arg0) # type: ignore
838_wasm_ref_copy = dll.wasm_ref_copy
839_wasm_ref_copy.restype = ctypes.POINTER(wasm_ref_t)
840_wasm_ref_copy.argtypes = [ctypes.POINTER(wasm_ref_t)]
841def wasm_ref_copy(arg0: Any) -> ctypes._Pointer:
842 return _wasm_ref_copy(arg0) # type: ignore
844_wasm_ref_same = dll.wasm_ref_same
845_wasm_ref_same.restype = ctypes.c_bool
846_wasm_ref_same.argtypes = [ctypes.POINTER(wasm_ref_t), ctypes.POINTER(wasm_ref_t)]
847def wasm_ref_same(arg0: Any, arg1: Any) -> bool:
848 return _wasm_ref_same(arg0, arg1) # type: ignore
850_wasm_ref_get_host_info = dll.wasm_ref_get_host_info
851_wasm_ref_get_host_info.restype = ctypes.c_void_p
852_wasm_ref_get_host_info.argtypes = [ctypes.POINTER(wasm_ref_t)]
853def wasm_ref_get_host_info(arg0: Any) -> ctypes._Pointer:
854 return _wasm_ref_get_host_info(arg0) # type: ignore
856_wasm_ref_set_host_info = dll.wasm_ref_set_host_info
857_wasm_ref_set_host_info.restype = None
858_wasm_ref_set_host_info.argtypes = [ctypes.POINTER(wasm_ref_t), ctypes.c_void_p]
859def wasm_ref_set_host_info(arg0: Any, arg1: Any) -> None:
860 return _wasm_ref_set_host_info(arg0, arg1) # type: ignore
862_wasm_ref_set_host_info_with_finalizer = dll.wasm_ref_set_host_info_with_finalizer
863_wasm_ref_set_host_info_with_finalizer.restype = None
864_wasm_ref_set_host_info_with_finalizer.argtypes = [ctypes.POINTER(wasm_ref_t), ctypes.c_void_p, ctypes.CFUNCTYPE(None, ctypes.c_void_p)]
865def wasm_ref_set_host_info_with_finalizer(arg0: Any, arg1: Any, arg2: Any) -> None:
866 return _wasm_ref_set_host_info_with_finalizer(arg0, arg1, arg2) # type: ignore
868class wasm_frame_t(ctypes.Structure):
869 pass
871_wasm_frame_delete = dll.wasm_frame_delete
872_wasm_frame_delete.restype = None
873_wasm_frame_delete.argtypes = [ctypes.POINTER(wasm_frame_t)]
874def wasm_frame_delete(arg0: Any) -> None:
875 return _wasm_frame_delete(arg0) # type: ignore
877class wasm_frame_vec_t(ctypes.Structure):
878 _fields_ = [
879 ("size", ctypes.c_size_t),
880 ("data", ctypes.POINTER(ctypes.POINTER(wasm_frame_t))),
881 ]
882 size: int
883 data: ctypes._Pointer
885_wasm_frame_vec_new_empty = dll.wasm_frame_vec_new_empty
886_wasm_frame_vec_new_empty.restype = None
887_wasm_frame_vec_new_empty.argtypes = [ctypes.POINTER(wasm_frame_vec_t)]
888def wasm_frame_vec_new_empty(out: Any) -> None:
889 return _wasm_frame_vec_new_empty(out) # type: ignore
891_wasm_frame_vec_new_uninitialized = dll.wasm_frame_vec_new_uninitialized
892_wasm_frame_vec_new_uninitialized.restype = None
893_wasm_frame_vec_new_uninitialized.argtypes = [ctypes.POINTER(wasm_frame_vec_t), ctypes.c_size_t]
894def wasm_frame_vec_new_uninitialized(out: Any, arg1: Any) -> None:
895 return _wasm_frame_vec_new_uninitialized(out, arg1) # type: ignore
897_wasm_frame_vec_new = dll.wasm_frame_vec_new
898_wasm_frame_vec_new.restype = None
899_wasm_frame_vec_new.argtypes = [ctypes.POINTER(wasm_frame_vec_t), ctypes.c_size_t, ctypes.POINTER(ctypes.POINTER(wasm_frame_t))]
900def wasm_frame_vec_new(out: Any, arg1: Any, arg2: Any) -> None:
901 return _wasm_frame_vec_new(out, arg1, arg2) # type: ignore
903_wasm_frame_vec_copy = dll.wasm_frame_vec_copy
904_wasm_frame_vec_copy.restype = None
905_wasm_frame_vec_copy.argtypes = [ctypes.POINTER(wasm_frame_vec_t), ctypes.POINTER(wasm_frame_vec_t)]
906def wasm_frame_vec_copy(out: Any, arg1: Any) -> None:
907 return _wasm_frame_vec_copy(out, arg1) # type: ignore
909_wasm_frame_vec_delete = dll.wasm_frame_vec_delete
910_wasm_frame_vec_delete.restype = None
911_wasm_frame_vec_delete.argtypes = [ctypes.POINTER(wasm_frame_vec_t)]
912def wasm_frame_vec_delete(arg0: Any) -> None:
913 return _wasm_frame_vec_delete(arg0) # type: ignore
915_wasm_frame_copy = dll.wasm_frame_copy
916_wasm_frame_copy.restype = ctypes.POINTER(wasm_frame_t)
917_wasm_frame_copy.argtypes = [ctypes.POINTER(wasm_frame_t)]
918def wasm_frame_copy(arg0: Any) -> ctypes._Pointer:
919 return _wasm_frame_copy(arg0) # type: ignore
921_wasm_frame_func_index = dll.wasm_frame_func_index
922_wasm_frame_func_index.restype = ctypes.c_uint32
923_wasm_frame_func_index.argtypes = [ctypes.POINTER(wasm_frame_t)]
924def wasm_frame_func_index(arg0: Any) -> int:
925 return _wasm_frame_func_index(arg0) # type: ignore
927_wasm_frame_func_offset = dll.wasm_frame_func_offset
928_wasm_frame_func_offset.restype = ctypes.c_size_t
929_wasm_frame_func_offset.argtypes = [ctypes.POINTER(wasm_frame_t)]
930def wasm_frame_func_offset(arg0: Any) -> int:
931 return _wasm_frame_func_offset(arg0) # type: ignore
933_wasm_frame_module_offset = dll.wasm_frame_module_offset
934_wasm_frame_module_offset.restype = ctypes.c_size_t
935_wasm_frame_module_offset.argtypes = [ctypes.POINTER(wasm_frame_t)]
936def wasm_frame_module_offset(arg0: Any) -> int:
937 return _wasm_frame_module_offset(arg0) # type: ignore
939wasm_message_t = wasm_name_t
941class wasm_trap_t(ctypes.Structure):
942 pass
944_wasm_trap_delete = dll.wasm_trap_delete
945_wasm_trap_delete.restype = None
946_wasm_trap_delete.argtypes = [ctypes.POINTER(wasm_trap_t)]
947def wasm_trap_delete(arg0: Any) -> None:
948 return _wasm_trap_delete(arg0) # type: ignore
950_wasm_trap_copy = dll.wasm_trap_copy
951_wasm_trap_copy.restype = ctypes.POINTER(wasm_trap_t)
952_wasm_trap_copy.argtypes = [ctypes.POINTER(wasm_trap_t)]
953def wasm_trap_copy(arg0: Any) -> ctypes._Pointer:
954 return _wasm_trap_copy(arg0) # type: ignore
956_wasm_trap_same = dll.wasm_trap_same
957_wasm_trap_same.restype = ctypes.c_bool
958_wasm_trap_same.argtypes = [ctypes.POINTER(wasm_trap_t), ctypes.POINTER(wasm_trap_t)]
959def wasm_trap_same(arg0: Any, arg1: Any) -> bool:
960 return _wasm_trap_same(arg0, arg1) # type: ignore
962_wasm_trap_get_host_info = dll.wasm_trap_get_host_info
963_wasm_trap_get_host_info.restype = ctypes.c_void_p
964_wasm_trap_get_host_info.argtypes = [ctypes.POINTER(wasm_trap_t)]
965def wasm_trap_get_host_info(arg0: Any) -> ctypes._Pointer:
966 return _wasm_trap_get_host_info(arg0) # type: ignore
968_wasm_trap_set_host_info = dll.wasm_trap_set_host_info
969_wasm_trap_set_host_info.restype = None
970_wasm_trap_set_host_info.argtypes = [ctypes.POINTER(wasm_trap_t), ctypes.c_void_p]
971def wasm_trap_set_host_info(arg0: Any, arg1: Any) -> None:
972 return _wasm_trap_set_host_info(arg0, arg1) # type: ignore
974_wasm_trap_set_host_info_with_finalizer = dll.wasm_trap_set_host_info_with_finalizer
975_wasm_trap_set_host_info_with_finalizer.restype = None
976_wasm_trap_set_host_info_with_finalizer.argtypes = [ctypes.POINTER(wasm_trap_t), ctypes.c_void_p, ctypes.CFUNCTYPE(None, ctypes.c_void_p)]
977def wasm_trap_set_host_info_with_finalizer(arg0: Any, arg1: Any, arg2: Any) -> None:
978 return _wasm_trap_set_host_info_with_finalizer(arg0, arg1, arg2) # type: ignore
980_wasm_trap_as_ref = dll.wasm_trap_as_ref
981_wasm_trap_as_ref.restype = ctypes.POINTER(wasm_ref_t)
982_wasm_trap_as_ref.argtypes = [ctypes.POINTER(wasm_trap_t)]
983def wasm_trap_as_ref(arg0: Any) -> ctypes._Pointer:
984 return _wasm_trap_as_ref(arg0) # type: ignore
986_wasm_ref_as_trap = dll.wasm_ref_as_trap
987_wasm_ref_as_trap.restype = ctypes.POINTER(wasm_trap_t)
988_wasm_ref_as_trap.argtypes = [ctypes.POINTER(wasm_ref_t)]
989def wasm_ref_as_trap(arg0: Any) -> ctypes._Pointer:
990 return _wasm_ref_as_trap(arg0) # type: ignore
992_wasm_trap_as_ref_const = dll.wasm_trap_as_ref_const
993_wasm_trap_as_ref_const.restype = ctypes.POINTER(wasm_ref_t)
994_wasm_trap_as_ref_const.argtypes = [ctypes.POINTER(wasm_trap_t)]
995def wasm_trap_as_ref_const(arg0: Any) -> ctypes._Pointer:
996 return _wasm_trap_as_ref_const(arg0) # type: ignore
998_wasm_ref_as_trap_const = dll.wasm_ref_as_trap_const
999_wasm_ref_as_trap_const.restype = ctypes.POINTER(wasm_trap_t)
1000_wasm_ref_as_trap_const.argtypes = [ctypes.POINTER(wasm_ref_t)]
1001def wasm_ref_as_trap_const(arg0: Any) -> ctypes._Pointer:
1002 return _wasm_ref_as_trap_const(arg0) # type: ignore
1004_wasm_trap_new = dll.wasm_trap_new
1005_wasm_trap_new.restype = ctypes.POINTER(wasm_trap_t)
1006_wasm_trap_new.argtypes = [ctypes.POINTER(wasm_store_t), ctypes.POINTER(wasm_message_t)]
1007def wasm_trap_new(store: Any, arg1: Any) -> ctypes._Pointer:
1008 return _wasm_trap_new(store, arg1) # type: ignore
1010_wasm_trap_message = dll.wasm_trap_message
1011_wasm_trap_message.restype = None
1012_wasm_trap_message.argtypes = [ctypes.POINTER(wasm_trap_t), ctypes.POINTER(wasm_message_t)]
1013def wasm_trap_message(arg0: Any, out: Any) -> None:
1014 return _wasm_trap_message(arg0, out) # type: ignore
1016_wasm_trap_origin = dll.wasm_trap_origin
1017_wasm_trap_origin.restype = ctypes.POINTER(wasm_frame_t)
1018_wasm_trap_origin.argtypes = [ctypes.POINTER(wasm_trap_t)]
1019def wasm_trap_origin(arg0: Any) -> ctypes._Pointer:
1020 return _wasm_trap_origin(arg0) # type: ignore
1022_wasm_trap_trace = dll.wasm_trap_trace
1023_wasm_trap_trace.restype = None
1024_wasm_trap_trace.argtypes = [ctypes.POINTER(wasm_trap_t), ctypes.POINTER(wasm_frame_vec_t)]
1025def wasm_trap_trace(arg0: Any, out: Any) -> None:
1026 return _wasm_trap_trace(arg0, out) # type: ignore
1028class wasm_foreign_t(ctypes.Structure):
1029 pass
1031_wasm_foreign_delete = dll.wasm_foreign_delete
1032_wasm_foreign_delete.restype = None
1033_wasm_foreign_delete.argtypes = [ctypes.POINTER(wasm_foreign_t)]
1034def wasm_foreign_delete(arg0: Any) -> None:
1035 return _wasm_foreign_delete(arg0) # type: ignore
1037_wasm_foreign_copy = dll.wasm_foreign_copy
1038_wasm_foreign_copy.restype = ctypes.POINTER(wasm_foreign_t)
1039_wasm_foreign_copy.argtypes = [ctypes.POINTER(wasm_foreign_t)]
1040def wasm_foreign_copy(arg0: Any) -> ctypes._Pointer:
1041 return _wasm_foreign_copy(arg0) # type: ignore
1043_wasm_foreign_same = dll.wasm_foreign_same
1044_wasm_foreign_same.restype = ctypes.c_bool
1045_wasm_foreign_same.argtypes = [ctypes.POINTER(wasm_foreign_t), ctypes.POINTER(wasm_foreign_t)]
1046def wasm_foreign_same(arg0: Any, arg1: Any) -> bool:
1047 return _wasm_foreign_same(arg0, arg1) # type: ignore
1049_wasm_foreign_get_host_info = dll.wasm_foreign_get_host_info
1050_wasm_foreign_get_host_info.restype = ctypes.c_void_p
1051_wasm_foreign_get_host_info.argtypes = [ctypes.POINTER(wasm_foreign_t)]
1052def wasm_foreign_get_host_info(arg0: Any) -> ctypes._Pointer:
1053 return _wasm_foreign_get_host_info(arg0) # type: ignore
1055_wasm_foreign_set_host_info = dll.wasm_foreign_set_host_info
1056_wasm_foreign_set_host_info.restype = None
1057_wasm_foreign_set_host_info.argtypes = [ctypes.POINTER(wasm_foreign_t), ctypes.c_void_p]
1058def wasm_foreign_set_host_info(arg0: Any, arg1: Any) -> None:
1059 return _wasm_foreign_set_host_info(arg0, arg1) # type: ignore
1061_wasm_foreign_set_host_info_with_finalizer = dll.wasm_foreign_set_host_info_with_finalizer
1062_wasm_foreign_set_host_info_with_finalizer.restype = None
1063_wasm_foreign_set_host_info_with_finalizer.argtypes = [ctypes.POINTER(wasm_foreign_t), ctypes.c_void_p, ctypes.CFUNCTYPE(None, ctypes.c_void_p)]
1064def wasm_foreign_set_host_info_with_finalizer(arg0: Any, arg1: Any, arg2: Any) -> None:
1065 return _wasm_foreign_set_host_info_with_finalizer(arg0, arg1, arg2) # type: ignore
1067_wasm_foreign_as_ref = dll.wasm_foreign_as_ref
1068_wasm_foreign_as_ref.restype = ctypes.POINTER(wasm_ref_t)
1069_wasm_foreign_as_ref.argtypes = [ctypes.POINTER(wasm_foreign_t)]
1070def wasm_foreign_as_ref(arg0: Any) -> ctypes._Pointer:
1071 return _wasm_foreign_as_ref(arg0) # type: ignore
1073_wasm_ref_as_foreign = dll.wasm_ref_as_foreign
1074_wasm_ref_as_foreign.restype = ctypes.POINTER(wasm_foreign_t)
1075_wasm_ref_as_foreign.argtypes = [ctypes.POINTER(wasm_ref_t)]
1076def wasm_ref_as_foreign(arg0: Any) -> ctypes._Pointer:
1077 return _wasm_ref_as_foreign(arg0) # type: ignore
1079_wasm_foreign_as_ref_const = dll.wasm_foreign_as_ref_const
1080_wasm_foreign_as_ref_const.restype = ctypes.POINTER(wasm_ref_t)
1081_wasm_foreign_as_ref_const.argtypes = [ctypes.POINTER(wasm_foreign_t)]
1082def wasm_foreign_as_ref_const(arg0: Any) -> ctypes._Pointer:
1083 return _wasm_foreign_as_ref_const(arg0) # type: ignore
1085_wasm_ref_as_foreign_const = dll.wasm_ref_as_foreign_const
1086_wasm_ref_as_foreign_const.restype = ctypes.POINTER(wasm_foreign_t)
1087_wasm_ref_as_foreign_const.argtypes = [ctypes.POINTER(wasm_ref_t)]
1088def wasm_ref_as_foreign_const(arg0: Any) -> ctypes._Pointer:
1089 return _wasm_ref_as_foreign_const(arg0) # type: ignore
1091_wasm_foreign_new = dll.wasm_foreign_new
1092_wasm_foreign_new.restype = ctypes.POINTER(wasm_foreign_t)
1093_wasm_foreign_new.argtypes = [ctypes.POINTER(wasm_store_t)]
1094def wasm_foreign_new(arg0: Any) -> ctypes._Pointer:
1095 return _wasm_foreign_new(arg0) # type: ignore
1097class wasm_module_t(ctypes.Structure):
1098 pass
1100_wasm_module_delete = dll.wasm_module_delete
1101_wasm_module_delete.restype = None
1102_wasm_module_delete.argtypes = [ctypes.POINTER(wasm_module_t)]
1103def wasm_module_delete(arg0: Any) -> None:
1104 return _wasm_module_delete(arg0) # type: ignore
1106_wasm_module_copy = dll.wasm_module_copy
1107_wasm_module_copy.restype = ctypes.POINTER(wasm_module_t)
1108_wasm_module_copy.argtypes = [ctypes.POINTER(wasm_module_t)]
1109def wasm_module_copy(arg0: Any) -> ctypes._Pointer:
1110 return _wasm_module_copy(arg0) # type: ignore
1112_wasm_module_same = dll.wasm_module_same
1113_wasm_module_same.restype = ctypes.c_bool
1114_wasm_module_same.argtypes = [ctypes.POINTER(wasm_module_t), ctypes.POINTER(wasm_module_t)]
1115def wasm_module_same(arg0: Any, arg1: Any) -> bool:
1116 return _wasm_module_same(arg0, arg1) # type: ignore
1118_wasm_module_get_host_info = dll.wasm_module_get_host_info
1119_wasm_module_get_host_info.restype = ctypes.c_void_p
1120_wasm_module_get_host_info.argtypes = [ctypes.POINTER(wasm_module_t)]
1121def wasm_module_get_host_info(arg0: Any) -> ctypes._Pointer:
1122 return _wasm_module_get_host_info(arg0) # type: ignore
1124_wasm_module_set_host_info = dll.wasm_module_set_host_info
1125_wasm_module_set_host_info.restype = None
1126_wasm_module_set_host_info.argtypes = [ctypes.POINTER(wasm_module_t), ctypes.c_void_p]
1127def wasm_module_set_host_info(arg0: Any, arg1: Any) -> None:
1128 return _wasm_module_set_host_info(arg0, arg1) # type: ignore
1130_wasm_module_set_host_info_with_finalizer = dll.wasm_module_set_host_info_with_finalizer
1131_wasm_module_set_host_info_with_finalizer.restype = None
1132_wasm_module_set_host_info_with_finalizer.argtypes = [ctypes.POINTER(wasm_module_t), ctypes.c_void_p, ctypes.CFUNCTYPE(None, ctypes.c_void_p)]
1133def wasm_module_set_host_info_with_finalizer(arg0: Any, arg1: Any, arg2: Any) -> None:
1134 return _wasm_module_set_host_info_with_finalizer(arg0, arg1, arg2) # type: ignore
1136_wasm_module_as_ref = dll.wasm_module_as_ref
1137_wasm_module_as_ref.restype = ctypes.POINTER(wasm_ref_t)
1138_wasm_module_as_ref.argtypes = [ctypes.POINTER(wasm_module_t)]
1139def wasm_module_as_ref(arg0: Any) -> ctypes._Pointer:
1140 return _wasm_module_as_ref(arg0) # type: ignore
1142_wasm_ref_as_module = dll.wasm_ref_as_module
1143_wasm_ref_as_module.restype = ctypes.POINTER(wasm_module_t)
1144_wasm_ref_as_module.argtypes = [ctypes.POINTER(wasm_ref_t)]
1145def wasm_ref_as_module(arg0: Any) -> ctypes._Pointer:
1146 return _wasm_ref_as_module(arg0) # type: ignore
1148_wasm_module_as_ref_const = dll.wasm_module_as_ref_const
1149_wasm_module_as_ref_const.restype = ctypes.POINTER(wasm_ref_t)
1150_wasm_module_as_ref_const.argtypes = [ctypes.POINTER(wasm_module_t)]
1151def wasm_module_as_ref_const(arg0: Any) -> ctypes._Pointer:
1152 return _wasm_module_as_ref_const(arg0) # type: ignore
1154_wasm_ref_as_module_const = dll.wasm_ref_as_module_const
1155_wasm_ref_as_module_const.restype = ctypes.POINTER(wasm_module_t)
1156_wasm_ref_as_module_const.argtypes = [ctypes.POINTER(wasm_ref_t)]
1157def wasm_ref_as_module_const(arg0: Any) -> ctypes._Pointer:
1158 return _wasm_ref_as_module_const(arg0) # type: ignore
1160class wasm_shared_module_t(ctypes.Structure):
1161 pass
1163_wasm_shared_module_delete = dll.wasm_shared_module_delete
1164_wasm_shared_module_delete.restype = None
1165_wasm_shared_module_delete.argtypes = [ctypes.POINTER(wasm_shared_module_t)]
1166def wasm_shared_module_delete(arg0: Any) -> None:
1167 return _wasm_shared_module_delete(arg0) # type: ignore
1169_wasm_module_share = dll.wasm_module_share
1170_wasm_module_share.restype = ctypes.POINTER(wasm_shared_module_t)
1171_wasm_module_share.argtypes = [ctypes.POINTER(wasm_module_t)]
1172def wasm_module_share(arg0: Any) -> ctypes._Pointer:
1173 return _wasm_module_share(arg0) # type: ignore
1175_wasm_module_obtain = dll.wasm_module_obtain
1176_wasm_module_obtain.restype = ctypes.POINTER(wasm_module_t)
1177_wasm_module_obtain.argtypes = [ctypes.POINTER(wasm_store_t), ctypes.POINTER(wasm_shared_module_t)]
1178def wasm_module_obtain(arg0: Any, arg1: Any) -> ctypes._Pointer:
1179 return _wasm_module_obtain(arg0, arg1) # type: ignore
1181_wasm_module_new = dll.wasm_module_new
1182_wasm_module_new.restype = ctypes.POINTER(wasm_module_t)
1183_wasm_module_new.argtypes = [ctypes.POINTER(wasm_store_t), ctypes.POINTER(wasm_byte_vec_t)]
1184def wasm_module_new(arg0: Any, binary: Any) -> ctypes._Pointer:
1185 return _wasm_module_new(arg0, binary) # type: ignore
1187_wasm_module_validate = dll.wasm_module_validate
1188_wasm_module_validate.restype = ctypes.c_bool
1189_wasm_module_validate.argtypes = [ctypes.POINTER(wasm_store_t), ctypes.POINTER(wasm_byte_vec_t)]
1190def wasm_module_validate(arg0: Any, binary: Any) -> bool:
1191 return _wasm_module_validate(arg0, binary) # type: ignore
1193_wasm_module_imports = dll.wasm_module_imports
1194_wasm_module_imports.restype = None
1195_wasm_module_imports.argtypes = [ctypes.POINTER(wasm_module_t), ctypes.POINTER(wasm_importtype_vec_t)]
1196def wasm_module_imports(arg0: Any, out: Any) -> None:
1197 return _wasm_module_imports(arg0, out) # type: ignore
1199_wasm_module_exports = dll.wasm_module_exports
1200_wasm_module_exports.restype = None
1201_wasm_module_exports.argtypes = [ctypes.POINTER(wasm_module_t), ctypes.POINTER(wasm_exporttype_vec_t)]
1202def wasm_module_exports(arg0: Any, out: Any) -> None:
1203 return _wasm_module_exports(arg0, out) # type: ignore
1205_wasm_module_serialize = dll.wasm_module_serialize
1206_wasm_module_serialize.restype = None
1207_wasm_module_serialize.argtypes = [ctypes.POINTER(wasm_module_t), ctypes.POINTER(wasm_byte_vec_t)]
1208def wasm_module_serialize(arg0: Any, out: Any) -> None:
1209 return _wasm_module_serialize(arg0, out) # type: ignore
1211_wasm_module_deserialize = dll.wasm_module_deserialize
1212_wasm_module_deserialize.restype = ctypes.POINTER(wasm_module_t)
1213_wasm_module_deserialize.argtypes = [ctypes.POINTER(wasm_store_t), ctypes.POINTER(wasm_byte_vec_t)]
1214def wasm_module_deserialize(arg0: Any, arg1: Any) -> ctypes._Pointer:
1215 return _wasm_module_deserialize(arg0, arg1) # type: ignore
1217class wasm_func_t(ctypes.Structure):
1218 pass
1220_wasm_func_delete = dll.wasm_func_delete
1221_wasm_func_delete.restype = None
1222_wasm_func_delete.argtypes = [ctypes.POINTER(wasm_func_t)]
1223def wasm_func_delete(arg0: Any) -> None:
1224 return _wasm_func_delete(arg0) # type: ignore
1226_wasm_func_copy = dll.wasm_func_copy
1227_wasm_func_copy.restype = ctypes.POINTER(wasm_func_t)
1228_wasm_func_copy.argtypes = [ctypes.POINTER(wasm_func_t)]
1229def wasm_func_copy(arg0: Any) -> ctypes._Pointer:
1230 return _wasm_func_copy(arg0) # type: ignore
1232_wasm_func_same = dll.wasm_func_same
1233_wasm_func_same.restype = ctypes.c_bool
1234_wasm_func_same.argtypes = [ctypes.POINTER(wasm_func_t), ctypes.POINTER(wasm_func_t)]
1235def wasm_func_same(arg0: Any, arg1: Any) -> bool:
1236 return _wasm_func_same(arg0, arg1) # type: ignore
1238_wasm_func_get_host_info = dll.wasm_func_get_host_info
1239_wasm_func_get_host_info.restype = ctypes.c_void_p
1240_wasm_func_get_host_info.argtypes = [ctypes.POINTER(wasm_func_t)]
1241def wasm_func_get_host_info(arg0: Any) -> ctypes._Pointer:
1242 return _wasm_func_get_host_info(arg0) # type: ignore
1244_wasm_func_set_host_info = dll.wasm_func_set_host_info
1245_wasm_func_set_host_info.restype = None
1246_wasm_func_set_host_info.argtypes = [ctypes.POINTER(wasm_func_t), ctypes.c_void_p]
1247def wasm_func_set_host_info(arg0: Any, arg1: Any) -> None:
1248 return _wasm_func_set_host_info(arg0, arg1) # type: ignore
1250_wasm_func_set_host_info_with_finalizer = dll.wasm_func_set_host_info_with_finalizer
1251_wasm_func_set_host_info_with_finalizer.restype = None
1252_wasm_func_set_host_info_with_finalizer.argtypes = [ctypes.POINTER(wasm_func_t), ctypes.c_void_p, ctypes.CFUNCTYPE(None, ctypes.c_void_p)]
1253def wasm_func_set_host_info_with_finalizer(arg0: Any, arg1: Any, arg2: Any) -> None:
1254 return _wasm_func_set_host_info_with_finalizer(arg0, arg1, arg2) # type: ignore
1256_wasm_func_as_ref = dll.wasm_func_as_ref
1257_wasm_func_as_ref.restype = ctypes.POINTER(wasm_ref_t)
1258_wasm_func_as_ref.argtypes = [ctypes.POINTER(wasm_func_t)]
1259def wasm_func_as_ref(arg0: Any) -> ctypes._Pointer:
1260 return _wasm_func_as_ref(arg0) # type: ignore
1262_wasm_ref_as_func = dll.wasm_ref_as_func
1263_wasm_ref_as_func.restype = ctypes.POINTER(wasm_func_t)
1264_wasm_ref_as_func.argtypes = [ctypes.POINTER(wasm_ref_t)]
1265def wasm_ref_as_func(arg0: Any) -> ctypes._Pointer:
1266 return _wasm_ref_as_func(arg0) # type: ignore
1268_wasm_func_as_ref_const = dll.wasm_func_as_ref_const
1269_wasm_func_as_ref_const.restype = ctypes.POINTER(wasm_ref_t)
1270_wasm_func_as_ref_const.argtypes = [ctypes.POINTER(wasm_func_t)]
1271def wasm_func_as_ref_const(arg0: Any) -> ctypes._Pointer:
1272 return _wasm_func_as_ref_const(arg0) # type: ignore
1274_wasm_ref_as_func_const = dll.wasm_ref_as_func_const
1275_wasm_ref_as_func_const.restype = ctypes.POINTER(wasm_func_t)
1276_wasm_ref_as_func_const.argtypes = [ctypes.POINTER(wasm_ref_t)]
1277def wasm_ref_as_func_const(arg0: Any) -> ctypes._Pointer:
1278 return _wasm_ref_as_func_const(arg0) # type: ignore
1280wasm_func_callback_t = ctypes.CFUNCTYPE(ctypes.c_size_t, ctypes.POINTER(wasm_val_vec_t), ctypes.POINTER(wasm_val_vec_t))
1282wasm_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))
1284_wasm_func_new = dll.wasm_func_new
1285_wasm_func_new.restype = ctypes.POINTER(wasm_func_t)
1286_wasm_func_new.argtypes = [ctypes.POINTER(wasm_store_t), ctypes.POINTER(wasm_functype_t), wasm_func_callback_t]
1287def wasm_func_new(arg0: Any, arg1: Any, arg2: Any) -> ctypes._Pointer:
1288 return _wasm_func_new(arg0, arg1, arg2) # type: ignore
1290_wasm_func_new_with_env = dll.wasm_func_new_with_env
1291_wasm_func_new_with_env.restype = ctypes.POINTER(wasm_func_t)
1292_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)]
1293def wasm_func_new_with_env(arg0: Any, type: Any, arg2: Any, env: Any, finalizer: Any) -> ctypes._Pointer:
1294 return _wasm_func_new_with_env(arg0, type, arg2, env, finalizer) # type: ignore
1296_wasm_func_type = dll.wasm_func_type
1297_wasm_func_type.restype = ctypes.POINTER(wasm_functype_t)
1298_wasm_func_type.argtypes = [ctypes.POINTER(wasm_func_t)]
1299def wasm_func_type(arg0: Any) -> ctypes._Pointer:
1300 return _wasm_func_type(arg0) # type: ignore
1302_wasm_func_param_arity = dll.wasm_func_param_arity
1303_wasm_func_param_arity.restype = ctypes.c_size_t
1304_wasm_func_param_arity.argtypes = [ctypes.POINTER(wasm_func_t)]
1305def wasm_func_param_arity(arg0: Any) -> int:
1306 return _wasm_func_param_arity(arg0) # type: ignore
1308_wasm_func_result_arity = dll.wasm_func_result_arity
1309_wasm_func_result_arity.restype = ctypes.c_size_t
1310_wasm_func_result_arity.argtypes = [ctypes.POINTER(wasm_func_t)]
1311def wasm_func_result_arity(arg0: Any) -> int:
1312 return _wasm_func_result_arity(arg0) # type: ignore
1314_wasm_func_call = dll.wasm_func_call
1315_wasm_func_call.restype = ctypes.POINTER(wasm_trap_t)
1316_wasm_func_call.argtypes = [ctypes.POINTER(wasm_func_t), ctypes.POINTER(wasm_val_vec_t), ctypes.POINTER(wasm_val_vec_t)]
1317def wasm_func_call(arg0: Any, args: Any, results: Any) -> ctypes._Pointer:
1318 return _wasm_func_call(arg0, args, results) # type: ignore
1320class wasm_global_t(ctypes.Structure):
1321 pass
1323_wasm_global_delete = dll.wasm_global_delete
1324_wasm_global_delete.restype = None
1325_wasm_global_delete.argtypes = [ctypes.POINTER(wasm_global_t)]
1326def wasm_global_delete(arg0: Any) -> None:
1327 return _wasm_global_delete(arg0) # type: ignore
1329_wasm_global_copy = dll.wasm_global_copy
1330_wasm_global_copy.restype = ctypes.POINTER(wasm_global_t)
1331_wasm_global_copy.argtypes = [ctypes.POINTER(wasm_global_t)]
1332def wasm_global_copy(arg0: Any) -> ctypes._Pointer:
1333 return _wasm_global_copy(arg0) # type: ignore
1335_wasm_global_same = dll.wasm_global_same
1336_wasm_global_same.restype = ctypes.c_bool
1337_wasm_global_same.argtypes = [ctypes.POINTER(wasm_global_t), ctypes.POINTER(wasm_global_t)]
1338def wasm_global_same(arg0: Any, arg1: Any) -> bool:
1339 return _wasm_global_same(arg0, arg1) # type: ignore
1341_wasm_global_get_host_info = dll.wasm_global_get_host_info
1342_wasm_global_get_host_info.restype = ctypes.c_void_p
1343_wasm_global_get_host_info.argtypes = [ctypes.POINTER(wasm_global_t)]
1344def wasm_global_get_host_info(arg0: Any) -> ctypes._Pointer:
1345 return _wasm_global_get_host_info(arg0) # type: ignore
1347_wasm_global_set_host_info = dll.wasm_global_set_host_info
1348_wasm_global_set_host_info.restype = None
1349_wasm_global_set_host_info.argtypes = [ctypes.POINTER(wasm_global_t), ctypes.c_void_p]
1350def wasm_global_set_host_info(arg0: Any, arg1: Any) -> None:
1351 return _wasm_global_set_host_info(arg0, arg1) # type: ignore
1353_wasm_global_set_host_info_with_finalizer = dll.wasm_global_set_host_info_with_finalizer
1354_wasm_global_set_host_info_with_finalizer.restype = None
1355_wasm_global_set_host_info_with_finalizer.argtypes = [ctypes.POINTER(wasm_global_t), ctypes.c_void_p, ctypes.CFUNCTYPE(None, ctypes.c_void_p)]
1356def wasm_global_set_host_info_with_finalizer(arg0: Any, arg1: Any, arg2: Any) -> None:
1357 return _wasm_global_set_host_info_with_finalizer(arg0, arg1, arg2) # type: ignore
1359_wasm_global_as_ref = dll.wasm_global_as_ref
1360_wasm_global_as_ref.restype = ctypes.POINTER(wasm_ref_t)
1361_wasm_global_as_ref.argtypes = [ctypes.POINTER(wasm_global_t)]
1362def wasm_global_as_ref(arg0: Any) -> ctypes._Pointer:
1363 return _wasm_global_as_ref(arg0) # type: ignore
1365_wasm_ref_as_global = dll.wasm_ref_as_global
1366_wasm_ref_as_global.restype = ctypes.POINTER(wasm_global_t)
1367_wasm_ref_as_global.argtypes = [ctypes.POINTER(wasm_ref_t)]
1368def wasm_ref_as_global(arg0: Any) -> ctypes._Pointer:
1369 return _wasm_ref_as_global(arg0) # type: ignore
1371_wasm_global_as_ref_const = dll.wasm_global_as_ref_const
1372_wasm_global_as_ref_const.restype = ctypes.POINTER(wasm_ref_t)
1373_wasm_global_as_ref_const.argtypes = [ctypes.POINTER(wasm_global_t)]
1374def wasm_global_as_ref_const(arg0: Any) -> ctypes._Pointer:
1375 return _wasm_global_as_ref_const(arg0) # type: ignore
1377_wasm_ref_as_global_const = dll.wasm_ref_as_global_const
1378_wasm_ref_as_global_const.restype = ctypes.POINTER(wasm_global_t)
1379_wasm_ref_as_global_const.argtypes = [ctypes.POINTER(wasm_ref_t)]
1380def wasm_ref_as_global_const(arg0: Any) -> ctypes._Pointer:
1381 return _wasm_ref_as_global_const(arg0) # type: ignore
1383_wasm_global_new = dll.wasm_global_new
1384_wasm_global_new.restype = ctypes.POINTER(wasm_global_t)
1385_wasm_global_new.argtypes = [ctypes.POINTER(wasm_store_t), ctypes.POINTER(wasm_globaltype_t), ctypes.POINTER(wasm_val_t)]
1386def wasm_global_new(arg0: Any, arg1: Any, arg2: Any) -> ctypes._Pointer:
1387 return _wasm_global_new(arg0, arg1, arg2) # type: ignore
1389_wasm_global_type = dll.wasm_global_type
1390_wasm_global_type.restype = ctypes.POINTER(wasm_globaltype_t)
1391_wasm_global_type.argtypes = [ctypes.POINTER(wasm_global_t)]
1392def wasm_global_type(arg0: Any) -> ctypes._Pointer:
1393 return _wasm_global_type(arg0) # type: ignore
1395_wasm_global_get = dll.wasm_global_get
1396_wasm_global_get.restype = None
1397_wasm_global_get.argtypes = [ctypes.POINTER(wasm_global_t), ctypes.POINTER(wasm_val_t)]
1398def wasm_global_get(arg0: Any, out: Any) -> None:
1399 return _wasm_global_get(arg0, out) # type: ignore
1401_wasm_global_set = dll.wasm_global_set
1402_wasm_global_set.restype = None
1403_wasm_global_set.argtypes = [ctypes.POINTER(wasm_global_t), ctypes.POINTER(wasm_val_t)]
1404def wasm_global_set(arg0: Any, arg1: Any) -> None:
1405 return _wasm_global_set(arg0, arg1) # type: ignore
1407class wasm_table_t(ctypes.Structure):
1408 pass
1410_wasm_table_delete = dll.wasm_table_delete
1411_wasm_table_delete.restype = None
1412_wasm_table_delete.argtypes = [ctypes.POINTER(wasm_table_t)]
1413def wasm_table_delete(arg0: Any) -> None:
1414 return _wasm_table_delete(arg0) # type: ignore
1416_wasm_table_copy = dll.wasm_table_copy
1417_wasm_table_copy.restype = ctypes.POINTER(wasm_table_t)
1418_wasm_table_copy.argtypes = [ctypes.POINTER(wasm_table_t)]
1419def wasm_table_copy(arg0: Any) -> ctypes._Pointer:
1420 return _wasm_table_copy(arg0) # type: ignore
1422_wasm_table_same = dll.wasm_table_same
1423_wasm_table_same.restype = ctypes.c_bool
1424_wasm_table_same.argtypes = [ctypes.POINTER(wasm_table_t), ctypes.POINTER(wasm_table_t)]
1425def wasm_table_same(arg0: Any, arg1: Any) -> bool:
1426 return _wasm_table_same(arg0, arg1) # type: ignore
1428_wasm_table_get_host_info = dll.wasm_table_get_host_info
1429_wasm_table_get_host_info.restype = ctypes.c_void_p
1430_wasm_table_get_host_info.argtypes = [ctypes.POINTER(wasm_table_t)]
1431def wasm_table_get_host_info(arg0: Any) -> ctypes._Pointer:
1432 return _wasm_table_get_host_info(arg0) # type: ignore
1434_wasm_table_set_host_info = dll.wasm_table_set_host_info
1435_wasm_table_set_host_info.restype = None
1436_wasm_table_set_host_info.argtypes = [ctypes.POINTER(wasm_table_t), ctypes.c_void_p]
1437def wasm_table_set_host_info(arg0: Any, arg1: Any) -> None:
1438 return _wasm_table_set_host_info(arg0, arg1) # type: ignore
1440_wasm_table_set_host_info_with_finalizer = dll.wasm_table_set_host_info_with_finalizer
1441_wasm_table_set_host_info_with_finalizer.restype = None
1442_wasm_table_set_host_info_with_finalizer.argtypes = [ctypes.POINTER(wasm_table_t), ctypes.c_void_p, ctypes.CFUNCTYPE(None, ctypes.c_void_p)]
1443def wasm_table_set_host_info_with_finalizer(arg0: Any, arg1: Any, arg2: Any) -> None:
1444 return _wasm_table_set_host_info_with_finalizer(arg0, arg1, arg2) # type: ignore
1446_wasm_table_as_ref = dll.wasm_table_as_ref
1447_wasm_table_as_ref.restype = ctypes.POINTER(wasm_ref_t)
1448_wasm_table_as_ref.argtypes = [ctypes.POINTER(wasm_table_t)]
1449def wasm_table_as_ref(arg0: Any) -> ctypes._Pointer:
1450 return _wasm_table_as_ref(arg0) # type: ignore
1452_wasm_ref_as_table = dll.wasm_ref_as_table
1453_wasm_ref_as_table.restype = ctypes.POINTER(wasm_table_t)
1454_wasm_ref_as_table.argtypes = [ctypes.POINTER(wasm_ref_t)]
1455def wasm_ref_as_table(arg0: Any) -> ctypes._Pointer:
1456 return _wasm_ref_as_table(arg0) # type: ignore
1458_wasm_table_as_ref_const = dll.wasm_table_as_ref_const
1459_wasm_table_as_ref_const.restype = ctypes.POINTER(wasm_ref_t)
1460_wasm_table_as_ref_const.argtypes = [ctypes.POINTER(wasm_table_t)]
1461def wasm_table_as_ref_const(arg0: Any) -> ctypes._Pointer:
1462 return _wasm_table_as_ref_const(arg0) # type: ignore
1464_wasm_ref_as_table_const = dll.wasm_ref_as_table_const
1465_wasm_ref_as_table_const.restype = ctypes.POINTER(wasm_table_t)
1466_wasm_ref_as_table_const.argtypes = [ctypes.POINTER(wasm_ref_t)]
1467def wasm_ref_as_table_const(arg0: Any) -> ctypes._Pointer:
1468 return _wasm_ref_as_table_const(arg0) # type: ignore
1470wasm_table_size_t = ctypes.c_uint32
1472_wasm_table_new = dll.wasm_table_new
1473_wasm_table_new.restype = ctypes.POINTER(wasm_table_t)
1474_wasm_table_new.argtypes = [ctypes.POINTER(wasm_store_t), ctypes.POINTER(wasm_tabletype_t), ctypes.POINTER(wasm_ref_t)]
1475def wasm_table_new(arg0: Any, arg1: Any, init: Any) -> ctypes._Pointer:
1476 return _wasm_table_new(arg0, arg1, init) # type: ignore
1478_wasm_table_type = dll.wasm_table_type
1479_wasm_table_type.restype = ctypes.POINTER(wasm_tabletype_t)
1480_wasm_table_type.argtypes = [ctypes.POINTER(wasm_table_t)]
1481def wasm_table_type(arg0: Any) -> ctypes._Pointer:
1482 return _wasm_table_type(arg0) # type: ignore
1484_wasm_table_get = dll.wasm_table_get
1485_wasm_table_get.restype = ctypes.POINTER(wasm_ref_t)
1486_wasm_table_get.argtypes = [ctypes.POINTER(wasm_table_t), wasm_table_size_t]
1487def wasm_table_get(arg0: Any, index: Any) -> ctypes._Pointer:
1488 return _wasm_table_get(arg0, index) # type: ignore
1490_wasm_table_set = dll.wasm_table_set
1491_wasm_table_set.restype = ctypes.c_bool
1492_wasm_table_set.argtypes = [ctypes.POINTER(wasm_table_t), wasm_table_size_t, ctypes.POINTER(wasm_ref_t)]
1493def wasm_table_set(arg0: Any, index: Any, arg2: Any) -> bool:
1494 return _wasm_table_set(arg0, index, arg2) # type: ignore
1496_wasm_table_size = dll.wasm_table_size
1497_wasm_table_size.restype = wasm_table_size_t
1498_wasm_table_size.argtypes = [ctypes.POINTER(wasm_table_t)]
1499def wasm_table_size(arg0: Any) -> int:
1500 return _wasm_table_size(arg0) # type: ignore
1502_wasm_table_grow = dll.wasm_table_grow
1503_wasm_table_grow.restype = ctypes.c_bool
1504_wasm_table_grow.argtypes = [ctypes.POINTER(wasm_table_t), wasm_table_size_t, ctypes.POINTER(wasm_ref_t)]
1505def wasm_table_grow(arg0: Any, delta: Any, init: Any) -> bool:
1506 return _wasm_table_grow(arg0, delta, init) # type: ignore
1508class wasm_memory_t(ctypes.Structure):
1509 pass
1511_wasm_memory_delete = dll.wasm_memory_delete
1512_wasm_memory_delete.restype = None
1513_wasm_memory_delete.argtypes = [ctypes.POINTER(wasm_memory_t)]
1514def wasm_memory_delete(arg0: Any) -> None:
1515 return _wasm_memory_delete(arg0) # type: ignore
1517_wasm_memory_copy = dll.wasm_memory_copy
1518_wasm_memory_copy.restype = ctypes.POINTER(wasm_memory_t)
1519_wasm_memory_copy.argtypes = [ctypes.POINTER(wasm_memory_t)]
1520def wasm_memory_copy(arg0: Any) -> ctypes._Pointer:
1521 return _wasm_memory_copy(arg0) # type: ignore
1523_wasm_memory_same = dll.wasm_memory_same
1524_wasm_memory_same.restype = ctypes.c_bool
1525_wasm_memory_same.argtypes = [ctypes.POINTER(wasm_memory_t), ctypes.POINTER(wasm_memory_t)]
1526def wasm_memory_same(arg0: Any, arg1: Any) -> bool:
1527 return _wasm_memory_same(arg0, arg1) # type: ignore
1529_wasm_memory_get_host_info = dll.wasm_memory_get_host_info
1530_wasm_memory_get_host_info.restype = ctypes.c_void_p
1531_wasm_memory_get_host_info.argtypes = [ctypes.POINTER(wasm_memory_t)]
1532def wasm_memory_get_host_info(arg0: Any) -> ctypes._Pointer:
1533 return _wasm_memory_get_host_info(arg0) # type: ignore
1535_wasm_memory_set_host_info = dll.wasm_memory_set_host_info
1536_wasm_memory_set_host_info.restype = None
1537_wasm_memory_set_host_info.argtypes = [ctypes.POINTER(wasm_memory_t), ctypes.c_void_p]
1538def wasm_memory_set_host_info(arg0: Any, arg1: Any) -> None:
1539 return _wasm_memory_set_host_info(arg0, arg1) # type: ignore
1541_wasm_memory_set_host_info_with_finalizer = dll.wasm_memory_set_host_info_with_finalizer
1542_wasm_memory_set_host_info_with_finalizer.restype = None
1543_wasm_memory_set_host_info_with_finalizer.argtypes = [ctypes.POINTER(wasm_memory_t), ctypes.c_void_p, ctypes.CFUNCTYPE(None, ctypes.c_void_p)]
1544def wasm_memory_set_host_info_with_finalizer(arg0: Any, arg1: Any, arg2: Any) -> None:
1545 return _wasm_memory_set_host_info_with_finalizer(arg0, arg1, arg2) # type: ignore
1547_wasm_memory_as_ref = dll.wasm_memory_as_ref
1548_wasm_memory_as_ref.restype = ctypes.POINTER(wasm_ref_t)
1549_wasm_memory_as_ref.argtypes = [ctypes.POINTER(wasm_memory_t)]
1550def wasm_memory_as_ref(arg0: Any) -> ctypes._Pointer:
1551 return _wasm_memory_as_ref(arg0) # type: ignore
1553_wasm_ref_as_memory = dll.wasm_ref_as_memory
1554_wasm_ref_as_memory.restype = ctypes.POINTER(wasm_memory_t)
1555_wasm_ref_as_memory.argtypes = [ctypes.POINTER(wasm_ref_t)]
1556def wasm_ref_as_memory(arg0: Any) -> ctypes._Pointer:
1557 return _wasm_ref_as_memory(arg0) # type: ignore
1559_wasm_memory_as_ref_const = dll.wasm_memory_as_ref_const
1560_wasm_memory_as_ref_const.restype = ctypes.POINTER(wasm_ref_t)
1561_wasm_memory_as_ref_const.argtypes = [ctypes.POINTER(wasm_memory_t)]
1562def wasm_memory_as_ref_const(arg0: Any) -> ctypes._Pointer:
1563 return _wasm_memory_as_ref_const(arg0) # type: ignore
1565_wasm_ref_as_memory_const = dll.wasm_ref_as_memory_const
1566_wasm_ref_as_memory_const.restype = ctypes.POINTER(wasm_memory_t)
1567_wasm_ref_as_memory_const.argtypes = [ctypes.POINTER(wasm_ref_t)]
1568def wasm_ref_as_memory_const(arg0: Any) -> ctypes._Pointer:
1569 return _wasm_ref_as_memory_const(arg0) # type: ignore
1571wasm_memory_pages_t = ctypes.c_uint32
1573_wasm_memory_new = dll.wasm_memory_new
1574_wasm_memory_new.restype = ctypes.POINTER(wasm_memory_t)
1575_wasm_memory_new.argtypes = [ctypes.POINTER(wasm_store_t), ctypes.POINTER(wasm_memorytype_t)]
1576def wasm_memory_new(arg0: Any, arg1: Any) -> ctypes._Pointer:
1577 return _wasm_memory_new(arg0, arg1) # type: ignore
1579_wasm_memory_type = dll.wasm_memory_type
1580_wasm_memory_type.restype = ctypes.POINTER(wasm_memorytype_t)
1581_wasm_memory_type.argtypes = [ctypes.POINTER(wasm_memory_t)]
1582def wasm_memory_type(arg0: Any) -> ctypes._Pointer:
1583 return _wasm_memory_type(arg0) # type: ignore
1585_wasm_memory_data = dll.wasm_memory_data
1586_wasm_memory_data.restype = ctypes.POINTER(ctypes.c_ubyte)
1587_wasm_memory_data.argtypes = [ctypes.POINTER(wasm_memory_t)]
1588def wasm_memory_data(arg0: Any) -> ctypes._Pointer:
1589 return _wasm_memory_data(arg0) # type: ignore
1591_wasm_memory_data_size = dll.wasm_memory_data_size
1592_wasm_memory_data_size.restype = ctypes.c_size_t
1593_wasm_memory_data_size.argtypes = [ctypes.POINTER(wasm_memory_t)]
1594def wasm_memory_data_size(arg0: Any) -> int:
1595 return _wasm_memory_data_size(arg0) # type: ignore
1597_wasm_memory_size = dll.wasm_memory_size
1598_wasm_memory_size.restype = wasm_memory_pages_t
1599_wasm_memory_size.argtypes = [ctypes.POINTER(wasm_memory_t)]
1600def wasm_memory_size(arg0: Any) -> int:
1601 return _wasm_memory_size(arg0) # type: ignore
1603_wasm_memory_grow = dll.wasm_memory_grow
1604_wasm_memory_grow.restype = ctypes.c_bool
1605_wasm_memory_grow.argtypes = [ctypes.POINTER(wasm_memory_t), wasm_memory_pages_t]
1606def wasm_memory_grow(arg0: Any, delta: Any) -> bool:
1607 return _wasm_memory_grow(arg0, delta) # type: ignore
1609class wasm_extern_t(ctypes.Structure):
1610 pass
1612_wasm_extern_delete = dll.wasm_extern_delete
1613_wasm_extern_delete.restype = None
1614_wasm_extern_delete.argtypes = [ctypes.POINTER(wasm_extern_t)]
1615def wasm_extern_delete(arg0: Any) -> None:
1616 return _wasm_extern_delete(arg0) # type: ignore
1618_wasm_extern_copy = dll.wasm_extern_copy
1619_wasm_extern_copy.restype = ctypes.POINTER(wasm_extern_t)
1620_wasm_extern_copy.argtypes = [ctypes.POINTER(wasm_extern_t)]
1621def wasm_extern_copy(arg0: Any) -> ctypes._Pointer:
1622 return _wasm_extern_copy(arg0) # type: ignore
1624_wasm_extern_same = dll.wasm_extern_same
1625_wasm_extern_same.restype = ctypes.c_bool
1626_wasm_extern_same.argtypes = [ctypes.POINTER(wasm_extern_t), ctypes.POINTER(wasm_extern_t)]
1627def wasm_extern_same(arg0: Any, arg1: Any) -> bool:
1628 return _wasm_extern_same(arg0, arg1) # type: ignore
1630_wasm_extern_get_host_info = dll.wasm_extern_get_host_info
1631_wasm_extern_get_host_info.restype = ctypes.c_void_p
1632_wasm_extern_get_host_info.argtypes = [ctypes.POINTER(wasm_extern_t)]
1633def wasm_extern_get_host_info(arg0: Any) -> ctypes._Pointer:
1634 return _wasm_extern_get_host_info(arg0) # type: ignore
1636_wasm_extern_set_host_info = dll.wasm_extern_set_host_info
1637_wasm_extern_set_host_info.restype = None
1638_wasm_extern_set_host_info.argtypes = [ctypes.POINTER(wasm_extern_t), ctypes.c_void_p]
1639def wasm_extern_set_host_info(arg0: Any, arg1: Any) -> None:
1640 return _wasm_extern_set_host_info(arg0, arg1) # type: ignore
1642_wasm_extern_set_host_info_with_finalizer = dll.wasm_extern_set_host_info_with_finalizer
1643_wasm_extern_set_host_info_with_finalizer.restype = None
1644_wasm_extern_set_host_info_with_finalizer.argtypes = [ctypes.POINTER(wasm_extern_t), ctypes.c_void_p, ctypes.CFUNCTYPE(None, ctypes.c_void_p)]
1645def wasm_extern_set_host_info_with_finalizer(arg0: Any, arg1: Any, arg2: Any) -> None:
1646 return _wasm_extern_set_host_info_with_finalizer(arg0, arg1, arg2) # type: ignore
1648_wasm_extern_as_ref = dll.wasm_extern_as_ref
1649_wasm_extern_as_ref.restype = ctypes.POINTER(wasm_ref_t)
1650_wasm_extern_as_ref.argtypes = [ctypes.POINTER(wasm_extern_t)]
1651def wasm_extern_as_ref(arg0: Any) -> ctypes._Pointer:
1652 return _wasm_extern_as_ref(arg0) # type: ignore
1654_wasm_ref_as_extern = dll.wasm_ref_as_extern
1655_wasm_ref_as_extern.restype = ctypes.POINTER(wasm_extern_t)
1656_wasm_ref_as_extern.argtypes = [ctypes.POINTER(wasm_ref_t)]
1657def wasm_ref_as_extern(arg0: Any) -> ctypes._Pointer:
1658 return _wasm_ref_as_extern(arg0) # type: ignore
1660_wasm_extern_as_ref_const = dll.wasm_extern_as_ref_const
1661_wasm_extern_as_ref_const.restype = ctypes.POINTER(wasm_ref_t)
1662_wasm_extern_as_ref_const.argtypes = [ctypes.POINTER(wasm_extern_t)]
1663def wasm_extern_as_ref_const(arg0: Any) -> ctypes._Pointer:
1664 return _wasm_extern_as_ref_const(arg0) # type: ignore
1666_wasm_ref_as_extern_const = dll.wasm_ref_as_extern_const
1667_wasm_ref_as_extern_const.restype = ctypes.POINTER(wasm_extern_t)
1668_wasm_ref_as_extern_const.argtypes = [ctypes.POINTER(wasm_ref_t)]
1669def wasm_ref_as_extern_const(arg0: Any) -> ctypes._Pointer:
1670 return _wasm_ref_as_extern_const(arg0) # type: ignore
1672class wasm_extern_vec_t(ctypes.Structure):
1673 _fields_ = [
1674 ("size", ctypes.c_size_t),
1675 ("data", ctypes.POINTER(ctypes.POINTER(wasm_extern_t))),
1676 ]
1677 size: int
1678 data: ctypes._Pointer
1680_wasm_extern_vec_new_empty = dll.wasm_extern_vec_new_empty
1681_wasm_extern_vec_new_empty.restype = None
1682_wasm_extern_vec_new_empty.argtypes = [ctypes.POINTER(wasm_extern_vec_t)]
1683def wasm_extern_vec_new_empty(out: Any) -> None:
1684 return _wasm_extern_vec_new_empty(out) # type: ignore
1686_wasm_extern_vec_new_uninitialized = dll.wasm_extern_vec_new_uninitialized
1687_wasm_extern_vec_new_uninitialized.restype = None
1688_wasm_extern_vec_new_uninitialized.argtypes = [ctypes.POINTER(wasm_extern_vec_t), ctypes.c_size_t]
1689def wasm_extern_vec_new_uninitialized(out: Any, arg1: Any) -> None:
1690 return _wasm_extern_vec_new_uninitialized(out, arg1) # type: ignore
1692_wasm_extern_vec_new = dll.wasm_extern_vec_new
1693_wasm_extern_vec_new.restype = None
1694_wasm_extern_vec_new.argtypes = [ctypes.POINTER(wasm_extern_vec_t), ctypes.c_size_t, ctypes.POINTER(ctypes.POINTER(wasm_extern_t))]
1695def wasm_extern_vec_new(out: Any, arg1: Any, arg2: Any) -> None:
1696 return _wasm_extern_vec_new(out, arg1, arg2) # type: ignore
1698_wasm_extern_vec_copy = dll.wasm_extern_vec_copy
1699_wasm_extern_vec_copy.restype = None
1700_wasm_extern_vec_copy.argtypes = [ctypes.POINTER(wasm_extern_vec_t), ctypes.POINTER(wasm_extern_vec_t)]
1701def wasm_extern_vec_copy(out: Any, arg1: Any) -> None:
1702 return _wasm_extern_vec_copy(out, arg1) # type: ignore
1704_wasm_extern_vec_delete = dll.wasm_extern_vec_delete
1705_wasm_extern_vec_delete.restype = None
1706_wasm_extern_vec_delete.argtypes = [ctypes.POINTER(wasm_extern_vec_t)]
1707def wasm_extern_vec_delete(arg0: Any) -> None:
1708 return _wasm_extern_vec_delete(arg0) # type: ignore
1710_wasm_extern_kind = dll.wasm_extern_kind
1711_wasm_extern_kind.restype = wasm_externkind_t
1712_wasm_extern_kind.argtypes = [ctypes.POINTER(wasm_extern_t)]
1713def wasm_extern_kind(arg0: Any) -> wasm_externkind_t:
1714 return _wasm_extern_kind(arg0) # type: ignore
1716_wasm_extern_type = dll.wasm_extern_type
1717_wasm_extern_type.restype = ctypes.POINTER(wasm_externtype_t)
1718_wasm_extern_type.argtypes = [ctypes.POINTER(wasm_extern_t)]
1719def wasm_extern_type(arg0: Any) -> ctypes._Pointer:
1720 return _wasm_extern_type(arg0) # type: ignore
1722_wasm_func_as_extern = dll.wasm_func_as_extern
1723_wasm_func_as_extern.restype = ctypes.POINTER(wasm_extern_t)
1724_wasm_func_as_extern.argtypes = [ctypes.POINTER(wasm_func_t)]
1725def wasm_func_as_extern(arg0: Any) -> ctypes._Pointer:
1726 return _wasm_func_as_extern(arg0) # type: ignore
1728_wasm_global_as_extern = dll.wasm_global_as_extern
1729_wasm_global_as_extern.restype = ctypes.POINTER(wasm_extern_t)
1730_wasm_global_as_extern.argtypes = [ctypes.POINTER(wasm_global_t)]
1731def wasm_global_as_extern(arg0: Any) -> ctypes._Pointer:
1732 return _wasm_global_as_extern(arg0) # type: ignore
1734_wasm_table_as_extern = dll.wasm_table_as_extern
1735_wasm_table_as_extern.restype = ctypes.POINTER(wasm_extern_t)
1736_wasm_table_as_extern.argtypes = [ctypes.POINTER(wasm_table_t)]
1737def wasm_table_as_extern(arg0: Any) -> ctypes._Pointer:
1738 return _wasm_table_as_extern(arg0) # type: ignore
1740_wasm_memory_as_extern = dll.wasm_memory_as_extern
1741_wasm_memory_as_extern.restype = ctypes.POINTER(wasm_extern_t)
1742_wasm_memory_as_extern.argtypes = [ctypes.POINTER(wasm_memory_t)]
1743def wasm_memory_as_extern(arg0: Any) -> ctypes._Pointer:
1744 return _wasm_memory_as_extern(arg0) # type: ignore
1746_wasm_extern_as_func = dll.wasm_extern_as_func
1747_wasm_extern_as_func.restype = ctypes.POINTER(wasm_func_t)
1748_wasm_extern_as_func.argtypes = [ctypes.POINTER(wasm_extern_t)]
1749def wasm_extern_as_func(arg0: Any) -> ctypes._Pointer:
1750 return _wasm_extern_as_func(arg0) # type: ignore
1752_wasm_extern_as_global = dll.wasm_extern_as_global
1753_wasm_extern_as_global.restype = ctypes.POINTER(wasm_global_t)
1754_wasm_extern_as_global.argtypes = [ctypes.POINTER(wasm_extern_t)]
1755def wasm_extern_as_global(arg0: Any) -> ctypes._Pointer:
1756 return _wasm_extern_as_global(arg0) # type: ignore
1758_wasm_extern_as_table = dll.wasm_extern_as_table
1759_wasm_extern_as_table.restype = ctypes.POINTER(wasm_table_t)
1760_wasm_extern_as_table.argtypes = [ctypes.POINTER(wasm_extern_t)]
1761def wasm_extern_as_table(arg0: Any) -> ctypes._Pointer:
1762 return _wasm_extern_as_table(arg0) # type: ignore
1764_wasm_extern_as_memory = dll.wasm_extern_as_memory
1765_wasm_extern_as_memory.restype = ctypes.POINTER(wasm_memory_t)
1766_wasm_extern_as_memory.argtypes = [ctypes.POINTER(wasm_extern_t)]
1767def wasm_extern_as_memory(arg0: Any) -> ctypes._Pointer:
1768 return _wasm_extern_as_memory(arg0) # type: ignore
1770_wasm_func_as_extern_const = dll.wasm_func_as_extern_const
1771_wasm_func_as_extern_const.restype = ctypes.POINTER(wasm_extern_t)
1772_wasm_func_as_extern_const.argtypes = [ctypes.POINTER(wasm_func_t)]
1773def wasm_func_as_extern_const(arg0: Any) -> ctypes._Pointer:
1774 return _wasm_func_as_extern_const(arg0) # type: ignore
1776_wasm_global_as_extern_const = dll.wasm_global_as_extern_const
1777_wasm_global_as_extern_const.restype = ctypes.POINTER(wasm_extern_t)
1778_wasm_global_as_extern_const.argtypes = [ctypes.POINTER(wasm_global_t)]
1779def wasm_global_as_extern_const(arg0: Any) -> ctypes._Pointer:
1780 return _wasm_global_as_extern_const(arg0) # type: ignore
1782_wasm_table_as_extern_const = dll.wasm_table_as_extern_const
1783_wasm_table_as_extern_const.restype = ctypes.POINTER(wasm_extern_t)
1784_wasm_table_as_extern_const.argtypes = [ctypes.POINTER(wasm_table_t)]
1785def wasm_table_as_extern_const(arg0: Any) -> ctypes._Pointer:
1786 return _wasm_table_as_extern_const(arg0) # type: ignore
1788_wasm_memory_as_extern_const = dll.wasm_memory_as_extern_const
1789_wasm_memory_as_extern_const.restype = ctypes.POINTER(wasm_extern_t)
1790_wasm_memory_as_extern_const.argtypes = [ctypes.POINTER(wasm_memory_t)]
1791def wasm_memory_as_extern_const(arg0: Any) -> ctypes._Pointer:
1792 return _wasm_memory_as_extern_const(arg0) # type: ignore
1794_wasm_extern_as_func_const = dll.wasm_extern_as_func_const
1795_wasm_extern_as_func_const.restype = ctypes.POINTER(wasm_func_t)
1796_wasm_extern_as_func_const.argtypes = [ctypes.POINTER(wasm_extern_t)]
1797def wasm_extern_as_func_const(arg0: Any) -> ctypes._Pointer:
1798 return _wasm_extern_as_func_const(arg0) # type: ignore
1800_wasm_extern_as_global_const = dll.wasm_extern_as_global_const
1801_wasm_extern_as_global_const.restype = ctypes.POINTER(wasm_global_t)
1802_wasm_extern_as_global_const.argtypes = [ctypes.POINTER(wasm_extern_t)]
1803def wasm_extern_as_global_const(arg0: Any) -> ctypes._Pointer:
1804 return _wasm_extern_as_global_const(arg0) # type: ignore
1806_wasm_extern_as_table_const = dll.wasm_extern_as_table_const
1807_wasm_extern_as_table_const.restype = ctypes.POINTER(wasm_table_t)
1808_wasm_extern_as_table_const.argtypes = [ctypes.POINTER(wasm_extern_t)]
1809def wasm_extern_as_table_const(arg0: Any) -> ctypes._Pointer:
1810 return _wasm_extern_as_table_const(arg0) # type: ignore
1812_wasm_extern_as_memory_const = dll.wasm_extern_as_memory_const
1813_wasm_extern_as_memory_const.restype = ctypes.POINTER(wasm_memory_t)
1814_wasm_extern_as_memory_const.argtypes = [ctypes.POINTER(wasm_extern_t)]
1815def wasm_extern_as_memory_const(arg0: Any) -> ctypes._Pointer:
1816 return _wasm_extern_as_memory_const(arg0) # type: ignore
1818class wasm_instance_t(ctypes.Structure):
1819 pass
1821_wasm_instance_delete = dll.wasm_instance_delete
1822_wasm_instance_delete.restype = None
1823_wasm_instance_delete.argtypes = [ctypes.POINTER(wasm_instance_t)]
1824def wasm_instance_delete(arg0: Any) -> None:
1825 return _wasm_instance_delete(arg0) # type: ignore
1827_wasm_instance_copy = dll.wasm_instance_copy
1828_wasm_instance_copy.restype = ctypes.POINTER(wasm_instance_t)
1829_wasm_instance_copy.argtypes = [ctypes.POINTER(wasm_instance_t)]
1830def wasm_instance_copy(arg0: Any) -> ctypes._Pointer:
1831 return _wasm_instance_copy(arg0) # type: ignore
1833_wasm_instance_same = dll.wasm_instance_same
1834_wasm_instance_same.restype = ctypes.c_bool
1835_wasm_instance_same.argtypes = [ctypes.POINTER(wasm_instance_t), ctypes.POINTER(wasm_instance_t)]
1836def wasm_instance_same(arg0: Any, arg1: Any) -> bool:
1837 return _wasm_instance_same(arg0, arg1) # type: ignore
1839_wasm_instance_get_host_info = dll.wasm_instance_get_host_info
1840_wasm_instance_get_host_info.restype = ctypes.c_void_p
1841_wasm_instance_get_host_info.argtypes = [ctypes.POINTER(wasm_instance_t)]
1842def wasm_instance_get_host_info(arg0: Any) -> ctypes._Pointer:
1843 return _wasm_instance_get_host_info(arg0) # type: ignore
1845_wasm_instance_set_host_info = dll.wasm_instance_set_host_info
1846_wasm_instance_set_host_info.restype = None
1847_wasm_instance_set_host_info.argtypes = [ctypes.POINTER(wasm_instance_t), ctypes.c_void_p]
1848def wasm_instance_set_host_info(arg0: Any, arg1: Any) -> None:
1849 return _wasm_instance_set_host_info(arg0, arg1) # type: ignore
1851_wasm_instance_set_host_info_with_finalizer = dll.wasm_instance_set_host_info_with_finalizer
1852_wasm_instance_set_host_info_with_finalizer.restype = None
1853_wasm_instance_set_host_info_with_finalizer.argtypes = [ctypes.POINTER(wasm_instance_t), ctypes.c_void_p, ctypes.CFUNCTYPE(None, ctypes.c_void_p)]
1854def wasm_instance_set_host_info_with_finalizer(arg0: Any, arg1: Any, arg2: Any) -> None:
1855 return _wasm_instance_set_host_info_with_finalizer(arg0, arg1, arg2) # type: ignore
1857_wasm_instance_as_ref = dll.wasm_instance_as_ref
1858_wasm_instance_as_ref.restype = ctypes.POINTER(wasm_ref_t)
1859_wasm_instance_as_ref.argtypes = [ctypes.POINTER(wasm_instance_t)]
1860def wasm_instance_as_ref(arg0: Any) -> ctypes._Pointer:
1861 return _wasm_instance_as_ref(arg0) # type: ignore
1863_wasm_ref_as_instance = dll.wasm_ref_as_instance
1864_wasm_ref_as_instance.restype = ctypes.POINTER(wasm_instance_t)
1865_wasm_ref_as_instance.argtypes = [ctypes.POINTER(wasm_ref_t)]
1866def wasm_ref_as_instance(arg0: Any) -> ctypes._Pointer:
1867 return _wasm_ref_as_instance(arg0) # type: ignore
1869_wasm_instance_as_ref_const = dll.wasm_instance_as_ref_const
1870_wasm_instance_as_ref_const.restype = ctypes.POINTER(wasm_ref_t)
1871_wasm_instance_as_ref_const.argtypes = [ctypes.POINTER(wasm_instance_t)]
1872def wasm_instance_as_ref_const(arg0: Any) -> ctypes._Pointer:
1873 return _wasm_instance_as_ref_const(arg0) # type: ignore
1875_wasm_ref_as_instance_const = dll.wasm_ref_as_instance_const
1876_wasm_ref_as_instance_const.restype = ctypes.POINTER(wasm_instance_t)
1877_wasm_ref_as_instance_const.argtypes = [ctypes.POINTER(wasm_ref_t)]
1878def wasm_ref_as_instance_const(arg0: Any) -> ctypes._Pointer:
1879 return _wasm_ref_as_instance_const(arg0) # type: ignore
1881_wasm_instance_new = dll.wasm_instance_new
1882_wasm_instance_new.restype = ctypes.POINTER(wasm_instance_t)
1883_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))]
1884def wasm_instance_new(arg0: Any, arg1: Any, imports: Any, arg3: Any) -> ctypes._Pointer:
1885 return _wasm_instance_new(arg0, arg1, imports, arg3) # type: ignore
1887_wasm_instance_exports = dll.wasm_instance_exports
1888_wasm_instance_exports.restype = None
1889_wasm_instance_exports.argtypes = [ctypes.POINTER(wasm_instance_t), ctypes.POINTER(wasm_extern_vec_t)]
1890def wasm_instance_exports(arg0: Any, out: Any) -> None:
1891 return _wasm_instance_exports(arg0, out) # type: ignore
1893class wasi_config_t(ctypes.Structure):
1894 pass
1896_wasi_config_delete = dll.wasi_config_delete
1897_wasi_config_delete.restype = None
1898_wasi_config_delete.argtypes = [ctypes.POINTER(wasi_config_t)]
1899def wasi_config_delete(arg0: Any) -> None:
1900 return _wasi_config_delete(arg0) # type: ignore
1902_wasi_config_new = dll.wasi_config_new
1903_wasi_config_new.restype = ctypes.POINTER(wasi_config_t)
1904_wasi_config_new.argtypes = []
1905def wasi_config_new() -> ctypes._Pointer:
1906 return _wasi_config_new() # type: ignore
1908_wasi_config_set_argv = dll.wasi_config_set_argv
1909_wasi_config_set_argv.restype = ctypes.c_bool
1910_wasi_config_set_argv.argtypes = [ctypes.POINTER(wasi_config_t), ctypes.c_size_t, ctypes.POINTER(ctypes.POINTER(ctypes.c_char))]
1911def wasi_config_set_argv(config: Any, argc: Any, argv: Any) -> bool:
1912 return _wasi_config_set_argv(config, argc, argv) # type: ignore
1914_wasi_config_inherit_argv = dll.wasi_config_inherit_argv
1915_wasi_config_inherit_argv.restype = None
1916_wasi_config_inherit_argv.argtypes = [ctypes.POINTER(wasi_config_t)]
1917def wasi_config_inherit_argv(config: Any) -> None:
1918 return _wasi_config_inherit_argv(config) # type: ignore
1920_wasi_config_set_env = dll.wasi_config_set_env
1921_wasi_config_set_env.restype = ctypes.c_bool
1922_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))]
1923def wasi_config_set_env(config: Any, envc: Any, names: Any, values: Any) -> bool:
1924 return _wasi_config_set_env(config, envc, names, values) # type: ignore
1926_wasi_config_inherit_env = dll.wasi_config_inherit_env
1927_wasi_config_inherit_env.restype = None
1928_wasi_config_inherit_env.argtypes = [ctypes.POINTER(wasi_config_t)]
1929def wasi_config_inherit_env(config: Any) -> None:
1930 return _wasi_config_inherit_env(config) # type: ignore
1932_wasi_config_set_stdin_file = dll.wasi_config_set_stdin_file
1933_wasi_config_set_stdin_file.restype = ctypes.c_bool
1934_wasi_config_set_stdin_file.argtypes = [ctypes.POINTER(wasi_config_t), ctypes.POINTER(ctypes.c_char)]
1935def wasi_config_set_stdin_file(config: Any, path: Any) -> bool:
1936 return _wasi_config_set_stdin_file(config, path) # type: ignore
1938_wasi_config_set_stdin_bytes = dll.wasi_config_set_stdin_bytes
1939_wasi_config_set_stdin_bytes.restype = None
1940_wasi_config_set_stdin_bytes.argtypes = [ctypes.POINTER(wasi_config_t), ctypes.POINTER(wasm_byte_vec_t)]
1941def wasi_config_set_stdin_bytes(config: Any, binary: Any) -> None:
1942 return _wasi_config_set_stdin_bytes(config, binary) # type: ignore
1944_wasi_config_inherit_stdin = dll.wasi_config_inherit_stdin
1945_wasi_config_inherit_stdin.restype = None
1946_wasi_config_inherit_stdin.argtypes = [ctypes.POINTER(wasi_config_t)]
1947def wasi_config_inherit_stdin(config: Any) -> None:
1948 return _wasi_config_inherit_stdin(config) # type: ignore
1950_wasi_config_set_stdout_file = dll.wasi_config_set_stdout_file
1951_wasi_config_set_stdout_file.restype = ctypes.c_bool
1952_wasi_config_set_stdout_file.argtypes = [ctypes.POINTER(wasi_config_t), ctypes.POINTER(ctypes.c_char)]
1953def wasi_config_set_stdout_file(config: Any, path: Any) -> bool:
1954 return _wasi_config_set_stdout_file(config, path) # type: ignore
1956_wasi_config_inherit_stdout = dll.wasi_config_inherit_stdout
1957_wasi_config_inherit_stdout.restype = None
1958_wasi_config_inherit_stdout.argtypes = [ctypes.POINTER(wasi_config_t)]
1959def wasi_config_inherit_stdout(config: Any) -> None:
1960 return _wasi_config_inherit_stdout(config) # type: ignore
1962_wasi_config_set_stdout_custom = dll.wasi_config_set_stdout_custom
1963_wasi_config_set_stdout_custom.restype = None
1964_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)]
1965def wasi_config_set_stdout_custom(config: Any, callback: Any, data: Any, finalizer: Any) -> None:
1966 return _wasi_config_set_stdout_custom(config, callback, data, finalizer) # type: ignore
1968_wasi_config_set_stderr_file = dll.wasi_config_set_stderr_file
1969_wasi_config_set_stderr_file.restype = ctypes.c_bool
1970_wasi_config_set_stderr_file.argtypes = [ctypes.POINTER(wasi_config_t), ctypes.POINTER(ctypes.c_char)]
1971def wasi_config_set_stderr_file(config: Any, path: Any) -> bool:
1972 return _wasi_config_set_stderr_file(config, path) # type: ignore
1974_wasi_config_inherit_stderr = dll.wasi_config_inherit_stderr
1975_wasi_config_inherit_stderr.restype = None
1976_wasi_config_inherit_stderr.argtypes = [ctypes.POINTER(wasi_config_t)]
1977def wasi_config_inherit_stderr(config: Any) -> None:
1978 return _wasi_config_inherit_stderr(config) # type: ignore
1980_wasi_config_set_stderr_custom = dll.wasi_config_set_stderr_custom
1981_wasi_config_set_stderr_custom.restype = None
1982_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)]
1983def wasi_config_set_stderr_custom(config: Any, callback: Any, data: Any, finalizer: Any) -> None:
1984 return _wasi_config_set_stderr_custom(config, callback, data, finalizer) # type: ignore
1986class wasi_dir_perms_flags(Enum):
1987 WASMTIME_WASI_DIR_PERMS_READ = 1
1988 WASMTIME_WASI_DIR_PERMS_WRITE = 2
1990wasi_dir_perms = ctypes.c_size_t
1992class wasi_file_perms_flags(Enum):
1993 WASMTIME_WASI_FILE_PERMS_READ = 1
1994 WASMTIME_WASI_FILE_PERMS_WRITE = 2
1996wasi_file_perms = ctypes.c_size_t
1998_wasi_config_preopen_dir = dll.wasi_config_preopen_dir
1999_wasi_config_preopen_dir.restype = ctypes.c_bool
2000_wasi_config_preopen_dir.argtypes = [ctypes.POINTER(wasi_config_t), ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_char), wasi_dir_perms, wasi_file_perms]
2001def wasi_config_preopen_dir(config: Any, host_path: Any, guest_path: Any, dir_perms: Any, file_perms: Any) -> bool:
2002 return _wasi_config_preopen_dir(config, host_path, guest_path, dir_perms, file_perms) # type: ignore
2004class wasmtime_error(ctypes.Structure):
2005 pass
2007wasmtime_error_t = wasmtime_error
2009_wasmtime_error_new = dll.wasmtime_error_new
2010_wasmtime_error_new.restype = ctypes.POINTER(wasmtime_error_t)
2011_wasmtime_error_new.argtypes = [ctypes.POINTER(ctypes.c_char)]
2012def wasmtime_error_new(arg0: Any) -> ctypes._Pointer:
2013 return _wasmtime_error_new(arg0) # type: ignore
2015_wasmtime_error_delete = dll.wasmtime_error_delete
2016_wasmtime_error_delete.restype = None
2017_wasmtime_error_delete.argtypes = [ctypes.POINTER(wasmtime_error_t)]
2018def wasmtime_error_delete(error: Any) -> None:
2019 return _wasmtime_error_delete(error) # type: ignore
2021_wasmtime_error_message = dll.wasmtime_error_message
2022_wasmtime_error_message.restype = None
2023_wasmtime_error_message.argtypes = [ctypes.POINTER(wasmtime_error_t), ctypes.POINTER(wasm_name_t)]
2024def wasmtime_error_message(error: Any, message: Any) -> None:
2025 return _wasmtime_error_message(error, message) # type: ignore
2027_wasmtime_error_exit_status = dll.wasmtime_error_exit_status
2028_wasmtime_error_exit_status.restype = ctypes.c_bool
2029_wasmtime_error_exit_status.argtypes = [ctypes.POINTER(wasmtime_error_t), ctypes.POINTER(ctypes.c_int)]
2030def wasmtime_error_exit_status(arg0: Any, status: Any) -> bool:
2031 return _wasmtime_error_exit_status(arg0, status) # type: ignore
2033_wasmtime_error_wasm_trace = dll.wasmtime_error_wasm_trace
2034_wasmtime_error_wasm_trace.restype = None
2035_wasmtime_error_wasm_trace.argtypes = [ctypes.POINTER(wasmtime_error_t), ctypes.POINTER(wasm_frame_vec_t)]
2036def wasmtime_error_wasm_trace(arg0: Any, out: Any) -> None:
2037 return _wasmtime_error_wasm_trace(arg0, out) # type: ignore
2039wasmtime_strategy_t = ctypes.c_uint8
2041class wasmtime_strategy_enum(Enum):
2042 WASMTIME_STRATEGY_AUTO = auto()
2043 WASMTIME_STRATEGY_CRANELIFT = auto()
2045wasmtime_opt_level_t = ctypes.c_uint8
2047class wasmtime_opt_level_enum(Enum):
2048 WASMTIME_OPT_LEVEL_NONE = auto()
2049 WASMTIME_OPT_LEVEL_SPEED = auto()
2050 WASMTIME_OPT_LEVEL_SPEED_AND_SIZE = auto()
2052wasmtime_profiling_strategy_t = ctypes.c_uint8
2054class wasmtime_profiling_strategy_enum(Enum):
2055 WASMTIME_PROFILING_STRATEGY_NONE = auto()
2056 WASMTIME_PROFILING_STRATEGY_JITDUMP = auto()
2057 WASMTIME_PROFILING_STRATEGY_VTUNE = auto()
2058 WASMTIME_PROFILING_STRATEGY_PERFMAP = auto()
2060_wasmtime_config_debug_info_set = dll.wasmtime_config_debug_info_set
2061_wasmtime_config_debug_info_set.restype = None
2062_wasmtime_config_debug_info_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2063def wasmtime_config_debug_info_set(arg0: Any, arg1: Any) -> None:
2064 return _wasmtime_config_debug_info_set(arg0, arg1) # type: ignore
2066_wasmtime_config_consume_fuel_set = dll.wasmtime_config_consume_fuel_set
2067_wasmtime_config_consume_fuel_set.restype = None
2068_wasmtime_config_consume_fuel_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2069def wasmtime_config_consume_fuel_set(arg0: Any, arg1: Any) -> None:
2070 return _wasmtime_config_consume_fuel_set(arg0, arg1) # type: ignore
2072_wasmtime_config_epoch_interruption_set = dll.wasmtime_config_epoch_interruption_set
2073_wasmtime_config_epoch_interruption_set.restype = None
2074_wasmtime_config_epoch_interruption_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2075def wasmtime_config_epoch_interruption_set(arg0: Any, arg1: Any) -> None:
2076 return _wasmtime_config_epoch_interruption_set(arg0, arg1) # type: ignore
2078_wasmtime_config_max_wasm_stack_set = dll.wasmtime_config_max_wasm_stack_set
2079_wasmtime_config_max_wasm_stack_set.restype = None
2080_wasmtime_config_max_wasm_stack_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_size_t]
2081def wasmtime_config_max_wasm_stack_set(arg0: Any, arg1: Any) -> None:
2082 return _wasmtime_config_max_wasm_stack_set(arg0, arg1) # type: ignore
2084_wasmtime_config_wasm_threads_set = dll.wasmtime_config_wasm_threads_set
2085_wasmtime_config_wasm_threads_set.restype = None
2086_wasmtime_config_wasm_threads_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2087def wasmtime_config_wasm_threads_set(arg0: Any, arg1: Any) -> None:
2088 return _wasmtime_config_wasm_threads_set(arg0, arg1) # type: ignore
2090_wasmtime_config_shared_memory_set = dll.wasmtime_config_shared_memory_set
2091_wasmtime_config_shared_memory_set.restype = None
2092_wasmtime_config_shared_memory_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2093def wasmtime_config_shared_memory_set(arg0: Any, arg1: Any) -> None:
2094 return _wasmtime_config_shared_memory_set(arg0, arg1) # type: ignore
2096_wasmtime_config_wasm_tail_call_set = dll.wasmtime_config_wasm_tail_call_set
2097_wasmtime_config_wasm_tail_call_set.restype = None
2098_wasmtime_config_wasm_tail_call_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2099def wasmtime_config_wasm_tail_call_set(arg0: Any, arg1: Any) -> None:
2100 return _wasmtime_config_wasm_tail_call_set(arg0, arg1) # type: ignore
2102_wasmtime_config_wasm_reference_types_set = dll.wasmtime_config_wasm_reference_types_set
2103_wasmtime_config_wasm_reference_types_set.restype = None
2104_wasmtime_config_wasm_reference_types_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2105def wasmtime_config_wasm_reference_types_set(arg0: Any, arg1: Any) -> None:
2106 return _wasmtime_config_wasm_reference_types_set(arg0, arg1) # type: ignore
2108_wasmtime_config_wasm_function_references_set = dll.wasmtime_config_wasm_function_references_set
2109_wasmtime_config_wasm_function_references_set.restype = None
2110_wasmtime_config_wasm_function_references_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2111def wasmtime_config_wasm_function_references_set(arg0: Any, arg1: Any) -> None:
2112 return _wasmtime_config_wasm_function_references_set(arg0, arg1) # type: ignore
2114_wasmtime_config_wasm_gc_set = dll.wasmtime_config_wasm_gc_set
2115_wasmtime_config_wasm_gc_set.restype = None
2116_wasmtime_config_wasm_gc_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2117def wasmtime_config_wasm_gc_set(arg0: Any, arg1: Any) -> None:
2118 return _wasmtime_config_wasm_gc_set(arg0, arg1) # type: ignore
2120_wasmtime_config_wasm_simd_set = dll.wasmtime_config_wasm_simd_set
2121_wasmtime_config_wasm_simd_set.restype = None
2122_wasmtime_config_wasm_simd_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2123def wasmtime_config_wasm_simd_set(arg0: Any, arg1: Any) -> None:
2124 return _wasmtime_config_wasm_simd_set(arg0, arg1) # type: ignore
2126_wasmtime_config_wasm_relaxed_simd_set = dll.wasmtime_config_wasm_relaxed_simd_set
2127_wasmtime_config_wasm_relaxed_simd_set.restype = None
2128_wasmtime_config_wasm_relaxed_simd_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2129def wasmtime_config_wasm_relaxed_simd_set(arg0: Any, arg1: Any) -> None:
2130 return _wasmtime_config_wasm_relaxed_simd_set(arg0, arg1) # type: ignore
2132_wasmtime_config_wasm_relaxed_simd_deterministic_set = dll.wasmtime_config_wasm_relaxed_simd_deterministic_set
2133_wasmtime_config_wasm_relaxed_simd_deterministic_set.restype = None
2134_wasmtime_config_wasm_relaxed_simd_deterministic_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2135def wasmtime_config_wasm_relaxed_simd_deterministic_set(arg0: Any, arg1: Any) -> None:
2136 return _wasmtime_config_wasm_relaxed_simd_deterministic_set(arg0, arg1) # type: ignore
2138_wasmtime_config_wasm_bulk_memory_set = dll.wasmtime_config_wasm_bulk_memory_set
2139_wasmtime_config_wasm_bulk_memory_set.restype = None
2140_wasmtime_config_wasm_bulk_memory_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2141def wasmtime_config_wasm_bulk_memory_set(arg0: Any, arg1: Any) -> None:
2142 return _wasmtime_config_wasm_bulk_memory_set(arg0, arg1) # type: ignore
2144_wasmtime_config_wasm_multi_value_set = dll.wasmtime_config_wasm_multi_value_set
2145_wasmtime_config_wasm_multi_value_set.restype = None
2146_wasmtime_config_wasm_multi_value_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2147def wasmtime_config_wasm_multi_value_set(arg0: Any, arg1: Any) -> None:
2148 return _wasmtime_config_wasm_multi_value_set(arg0, arg1) # type: ignore
2150_wasmtime_config_wasm_multi_memory_set = dll.wasmtime_config_wasm_multi_memory_set
2151_wasmtime_config_wasm_multi_memory_set.restype = None
2152_wasmtime_config_wasm_multi_memory_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2153def wasmtime_config_wasm_multi_memory_set(arg0: Any, arg1: Any) -> None:
2154 return _wasmtime_config_wasm_multi_memory_set(arg0, arg1) # type: ignore
2156_wasmtime_config_wasm_memory64_set = dll.wasmtime_config_wasm_memory64_set
2157_wasmtime_config_wasm_memory64_set.restype = None
2158_wasmtime_config_wasm_memory64_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2159def wasmtime_config_wasm_memory64_set(arg0: Any, arg1: Any) -> None:
2160 return _wasmtime_config_wasm_memory64_set(arg0, arg1) # type: ignore
2162_wasmtime_config_wasm_wide_arithmetic_set = dll.wasmtime_config_wasm_wide_arithmetic_set
2163_wasmtime_config_wasm_wide_arithmetic_set.restype = None
2164_wasmtime_config_wasm_wide_arithmetic_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2165def wasmtime_config_wasm_wide_arithmetic_set(arg0: Any, arg1: Any) -> None:
2166 return _wasmtime_config_wasm_wide_arithmetic_set(arg0, arg1) # type: ignore
2168_wasmtime_config_wasm_exceptions_set = dll.wasmtime_config_wasm_exceptions_set
2169_wasmtime_config_wasm_exceptions_set.restype = None
2170_wasmtime_config_wasm_exceptions_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2171def wasmtime_config_wasm_exceptions_set(arg0: Any, arg1: Any) -> None:
2172 return _wasmtime_config_wasm_exceptions_set(arg0, arg1) # type: ignore
2174_wasmtime_config_wasm_custom_page_sizes_set = dll.wasmtime_config_wasm_custom_page_sizes_set
2175_wasmtime_config_wasm_custom_page_sizes_set.restype = None
2176_wasmtime_config_wasm_custom_page_sizes_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2177def wasmtime_config_wasm_custom_page_sizes_set(arg0: Any, arg1: Any) -> None:
2178 return _wasmtime_config_wasm_custom_page_sizes_set(arg0, arg1) # type: ignore
2180_wasmtime_config_wasm_stack_switching_set = dll.wasmtime_config_wasm_stack_switching_set
2181_wasmtime_config_wasm_stack_switching_set.restype = None
2182_wasmtime_config_wasm_stack_switching_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2183def wasmtime_config_wasm_stack_switching_set(arg0: Any, arg1: Any) -> None:
2184 return _wasmtime_config_wasm_stack_switching_set(arg0, arg1) # type: ignore
2186_wasmtime_config_strategy_set = dll.wasmtime_config_strategy_set
2187_wasmtime_config_strategy_set.restype = None
2188_wasmtime_config_strategy_set.argtypes = [ctypes.POINTER(wasm_config_t), wasmtime_strategy_t]
2189def wasmtime_config_strategy_set(arg0: Any, arg1: Any) -> None:
2190 return _wasmtime_config_strategy_set(arg0, arg1) # type: ignore
2192_wasmtime_config_parallel_compilation_set = dll.wasmtime_config_parallel_compilation_set
2193_wasmtime_config_parallel_compilation_set.restype = None
2194_wasmtime_config_parallel_compilation_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2195def wasmtime_config_parallel_compilation_set(arg0: Any, arg1: Any) -> None:
2196 return _wasmtime_config_parallel_compilation_set(arg0, arg1) # type: ignore
2198_wasmtime_config_cranelift_debug_verifier_set = dll.wasmtime_config_cranelift_debug_verifier_set
2199_wasmtime_config_cranelift_debug_verifier_set.restype = None
2200_wasmtime_config_cranelift_debug_verifier_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2201def wasmtime_config_cranelift_debug_verifier_set(arg0: Any, arg1: Any) -> None:
2202 return _wasmtime_config_cranelift_debug_verifier_set(arg0, arg1) # type: ignore
2204_wasmtime_config_cranelift_nan_canonicalization_set = dll.wasmtime_config_cranelift_nan_canonicalization_set
2205_wasmtime_config_cranelift_nan_canonicalization_set.restype = None
2206_wasmtime_config_cranelift_nan_canonicalization_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2207def wasmtime_config_cranelift_nan_canonicalization_set(arg0: Any, arg1: Any) -> None:
2208 return _wasmtime_config_cranelift_nan_canonicalization_set(arg0, arg1) # type: ignore
2210_wasmtime_config_cranelift_opt_level_set = dll.wasmtime_config_cranelift_opt_level_set
2211_wasmtime_config_cranelift_opt_level_set.restype = None
2212_wasmtime_config_cranelift_opt_level_set.argtypes = [ctypes.POINTER(wasm_config_t), wasmtime_opt_level_t]
2213def wasmtime_config_cranelift_opt_level_set(arg0: Any, arg1: Any) -> None:
2214 return _wasmtime_config_cranelift_opt_level_set(arg0, arg1) # type: ignore
2216_wasmtime_config_profiler_set = dll.wasmtime_config_profiler_set
2217_wasmtime_config_profiler_set.restype = None
2218_wasmtime_config_profiler_set.argtypes = [ctypes.POINTER(wasm_config_t), wasmtime_profiling_strategy_t]
2219def wasmtime_config_profiler_set(arg0: Any, arg1: Any) -> None:
2220 return _wasmtime_config_profiler_set(arg0, arg1) # type: ignore
2222_wasmtime_config_memory_may_move_set = dll.wasmtime_config_memory_may_move_set
2223_wasmtime_config_memory_may_move_set.restype = None
2224_wasmtime_config_memory_may_move_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2225def wasmtime_config_memory_may_move_set(arg0: Any, arg1: Any) -> None:
2226 return _wasmtime_config_memory_may_move_set(arg0, arg1) # type: ignore
2228_wasmtime_config_memory_reservation_set = dll.wasmtime_config_memory_reservation_set
2229_wasmtime_config_memory_reservation_set.restype = None
2230_wasmtime_config_memory_reservation_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_uint64]
2231def wasmtime_config_memory_reservation_set(arg0: Any, arg1: Any) -> None:
2232 return _wasmtime_config_memory_reservation_set(arg0, arg1) # type: ignore
2234_wasmtime_config_memory_guard_size_set = dll.wasmtime_config_memory_guard_size_set
2235_wasmtime_config_memory_guard_size_set.restype = None
2236_wasmtime_config_memory_guard_size_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_uint64]
2237def wasmtime_config_memory_guard_size_set(arg0: Any, arg1: Any) -> None:
2238 return _wasmtime_config_memory_guard_size_set(arg0, arg1) # type: ignore
2240_wasmtime_config_memory_reservation_for_growth_set = dll.wasmtime_config_memory_reservation_for_growth_set
2241_wasmtime_config_memory_reservation_for_growth_set.restype = None
2242_wasmtime_config_memory_reservation_for_growth_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_uint64]
2243def wasmtime_config_memory_reservation_for_growth_set(arg0: Any, arg1: Any) -> None:
2244 return _wasmtime_config_memory_reservation_for_growth_set(arg0, arg1) # type: ignore
2246_wasmtime_config_native_unwind_info_set = dll.wasmtime_config_native_unwind_info_set
2247_wasmtime_config_native_unwind_info_set.restype = None
2248_wasmtime_config_native_unwind_info_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2249def wasmtime_config_native_unwind_info_set(arg0: Any, arg1: Any) -> None:
2250 return _wasmtime_config_native_unwind_info_set(arg0, arg1) # type: ignore
2252_wasmtime_config_cache_config_load = dll.wasmtime_config_cache_config_load
2253_wasmtime_config_cache_config_load.restype = ctypes.POINTER(wasmtime_error_t)
2254_wasmtime_config_cache_config_load.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.POINTER(ctypes.c_char)]
2255def wasmtime_config_cache_config_load(arg0: Any, arg1: Any) -> ctypes._Pointer:
2256 return _wasmtime_config_cache_config_load(arg0, arg1) # type: ignore
2258_wasmtime_config_target_set = dll.wasmtime_config_target_set
2259_wasmtime_config_target_set.restype = ctypes.POINTER(wasmtime_error_t)
2260_wasmtime_config_target_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.POINTER(ctypes.c_char)]
2261def wasmtime_config_target_set(arg0: Any, arg1: Any) -> ctypes._Pointer:
2262 return _wasmtime_config_target_set(arg0, arg1) # type: ignore
2264_wasmtime_config_cranelift_flag_enable = dll.wasmtime_config_cranelift_flag_enable
2265_wasmtime_config_cranelift_flag_enable.restype = None
2266_wasmtime_config_cranelift_flag_enable.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.POINTER(ctypes.c_char)]
2267def wasmtime_config_cranelift_flag_enable(arg0: Any, arg1: Any) -> None:
2268 return _wasmtime_config_cranelift_flag_enable(arg0, arg1) # type: ignore
2270_wasmtime_config_cranelift_flag_set = dll.wasmtime_config_cranelift_flag_set
2271_wasmtime_config_cranelift_flag_set.restype = None
2272_wasmtime_config_cranelift_flag_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_char)]
2273def wasmtime_config_cranelift_flag_set(arg0: Any, key: Any, value: Any) -> None:
2274 return _wasmtime_config_cranelift_flag_set(arg0, key, value) # type: ignore
2276_wasmtime_config_macos_use_mach_ports_set = dll.wasmtime_config_macos_use_mach_ports_set
2277_wasmtime_config_macos_use_mach_ports_set.restype = None
2278_wasmtime_config_macos_use_mach_ports_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2279def wasmtime_config_macos_use_mach_ports_set(arg0: Any, arg1: Any) -> None:
2280 return _wasmtime_config_macos_use_mach_ports_set(arg0, arg1) # type: ignore
2282_wasmtime_config_signals_based_traps_set = dll.wasmtime_config_signals_based_traps_set
2283_wasmtime_config_signals_based_traps_set.restype = None
2284_wasmtime_config_signals_based_traps_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2285def wasmtime_config_signals_based_traps_set(arg0: Any, arg1: Any) -> None:
2286 return _wasmtime_config_signals_based_traps_set(arg0, arg1) # type: ignore
2288wasmtime_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))
2290wasmtime_memory_grow_callback_t = ctypes.CFUNCTYPE(ctypes.c_size_t, ctypes.c_void_p, ctypes.c_size_t)
2292class wasmtime_linear_memory(ctypes.Structure):
2293 _fields_ = [
2294 ("env", ctypes.c_void_p),
2295 ("get_memory", wasmtime_memory_get_callback_t),
2296 ("grow_memory", wasmtime_memory_grow_callback_t),
2297 ("finalizer", ctypes.CFUNCTYPE(None, ctypes.c_void_p)),
2298 ]
2299 env: ctypes._Pointer
2300 get_memory: ctypes._Pointer
2301 grow_memory: ctypes._Pointer
2302 finalizer: ctypes._Pointer
2304wasmtime_linear_memory_t = wasmtime_linear_memory
2306wasmtime_new_memory_callback_t = ctypes.CFUNCTYPE(ctypes.c_size_t, ctypes.c_void_p, ctypes.POINTER(wasm_memorytype_t), ctypes.c_size_t, ctypes.c_size_t, ctypes.c_size_t, ctypes.c_size_t, ctypes.POINTER(wasmtime_linear_memory_t))
2308class wasmtime_memory_creator(ctypes.Structure):
2309 _fields_ = [
2310 ("env", ctypes.c_void_p),
2311 ("new_memory", wasmtime_new_memory_callback_t),
2312 ("finalizer", ctypes.CFUNCTYPE(None, ctypes.c_void_p)),
2313 ]
2314 env: ctypes._Pointer
2315 new_memory: ctypes._Pointer
2316 finalizer: ctypes._Pointer
2318wasmtime_memory_creator_t = wasmtime_memory_creator
2320_wasmtime_config_host_memory_creator_set = dll.wasmtime_config_host_memory_creator_set
2321_wasmtime_config_host_memory_creator_set.restype = None
2322_wasmtime_config_host_memory_creator_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.POINTER(wasmtime_memory_creator_t)]
2323def wasmtime_config_host_memory_creator_set(arg0: Any, arg1: Any) -> None:
2324 return _wasmtime_config_host_memory_creator_set(arg0, arg1) # type: ignore
2326_wasmtime_config_memory_init_cow_set = dll.wasmtime_config_memory_init_cow_set
2327_wasmtime_config_memory_init_cow_set.restype = None
2328_wasmtime_config_memory_init_cow_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2329def wasmtime_config_memory_init_cow_set(arg0: Any, arg1: Any) -> None:
2330 return _wasmtime_config_memory_init_cow_set(arg0, arg1) # type: ignore
2332class wasmtime_pooling_allocation_config_t(ctypes.Structure):
2333 pass
2335_wasmtime_pooling_allocation_config_new = dll.wasmtime_pooling_allocation_config_new
2336_wasmtime_pooling_allocation_config_new.restype = ctypes.POINTER(wasmtime_pooling_allocation_config_t)
2337_wasmtime_pooling_allocation_config_new.argtypes = []
2338def wasmtime_pooling_allocation_config_new() -> ctypes._Pointer:
2339 return _wasmtime_pooling_allocation_config_new() # type: ignore
2341_wasmtime_pooling_allocation_config_delete = dll.wasmtime_pooling_allocation_config_delete
2342_wasmtime_pooling_allocation_config_delete.restype = None
2343_wasmtime_pooling_allocation_config_delete.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t)]
2344def wasmtime_pooling_allocation_config_delete(arg0: Any) -> None:
2345 return _wasmtime_pooling_allocation_config_delete(arg0) # type: ignore
2347_wasmtime_pooling_allocation_config_max_unused_warm_slots_set = dll.wasmtime_pooling_allocation_config_max_unused_warm_slots_set
2348_wasmtime_pooling_allocation_config_max_unused_warm_slots_set.restype = None
2349_wasmtime_pooling_allocation_config_max_unused_warm_slots_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_uint32]
2350def wasmtime_pooling_allocation_config_max_unused_warm_slots_set(arg0: Any, arg1: Any) -> None:
2351 return _wasmtime_pooling_allocation_config_max_unused_warm_slots_set(arg0, arg1) # type: ignore
2353_wasmtime_pooling_allocation_config_decommit_batch_size_set = dll.wasmtime_pooling_allocation_config_decommit_batch_size_set
2354_wasmtime_pooling_allocation_config_decommit_batch_size_set.restype = None
2355_wasmtime_pooling_allocation_config_decommit_batch_size_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_size_t]
2356def wasmtime_pooling_allocation_config_decommit_batch_size_set(arg0: Any, arg1: Any) -> None:
2357 return _wasmtime_pooling_allocation_config_decommit_batch_size_set(arg0, arg1) # type: ignore
2359_wasmtime_pooling_allocation_config_async_stack_keep_resident_set = dll.wasmtime_pooling_allocation_config_async_stack_keep_resident_set
2360_wasmtime_pooling_allocation_config_async_stack_keep_resident_set.restype = None
2361_wasmtime_pooling_allocation_config_async_stack_keep_resident_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_size_t]
2362def wasmtime_pooling_allocation_config_async_stack_keep_resident_set(arg0: Any, arg1: Any) -> None:
2363 return _wasmtime_pooling_allocation_config_async_stack_keep_resident_set(arg0, arg1) # type: ignore
2365_wasmtime_pooling_allocation_config_linear_memory_keep_resident_set = dll.wasmtime_pooling_allocation_config_linear_memory_keep_resident_set
2366_wasmtime_pooling_allocation_config_linear_memory_keep_resident_set.restype = None
2367_wasmtime_pooling_allocation_config_linear_memory_keep_resident_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_size_t]
2368def wasmtime_pooling_allocation_config_linear_memory_keep_resident_set(arg0: Any, arg1: Any) -> None:
2369 return _wasmtime_pooling_allocation_config_linear_memory_keep_resident_set(arg0, arg1) # type: ignore
2371_wasmtime_pooling_allocation_config_table_keep_resident_set = dll.wasmtime_pooling_allocation_config_table_keep_resident_set
2372_wasmtime_pooling_allocation_config_table_keep_resident_set.restype = None
2373_wasmtime_pooling_allocation_config_table_keep_resident_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_size_t]
2374def wasmtime_pooling_allocation_config_table_keep_resident_set(arg0: Any, arg1: Any) -> None:
2375 return _wasmtime_pooling_allocation_config_table_keep_resident_set(arg0, arg1) # type: ignore
2377_wasmtime_pooling_allocation_config_total_component_instances_set = dll.wasmtime_pooling_allocation_config_total_component_instances_set
2378_wasmtime_pooling_allocation_config_total_component_instances_set.restype = None
2379_wasmtime_pooling_allocation_config_total_component_instances_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_uint32]
2380def wasmtime_pooling_allocation_config_total_component_instances_set(arg0: Any, arg1: Any) -> None:
2381 return _wasmtime_pooling_allocation_config_total_component_instances_set(arg0, arg1) # type: ignore
2383_wasmtime_pooling_allocation_config_max_component_instance_size_set = dll.wasmtime_pooling_allocation_config_max_component_instance_size_set
2384_wasmtime_pooling_allocation_config_max_component_instance_size_set.restype = None
2385_wasmtime_pooling_allocation_config_max_component_instance_size_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_size_t]
2386def wasmtime_pooling_allocation_config_max_component_instance_size_set(arg0: Any, arg1: Any) -> None:
2387 return _wasmtime_pooling_allocation_config_max_component_instance_size_set(arg0, arg1) # type: ignore
2389_wasmtime_pooling_allocation_config_max_core_instances_per_component_set = dll.wasmtime_pooling_allocation_config_max_core_instances_per_component_set
2390_wasmtime_pooling_allocation_config_max_core_instances_per_component_set.restype = None
2391_wasmtime_pooling_allocation_config_max_core_instances_per_component_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_uint32]
2392def wasmtime_pooling_allocation_config_max_core_instances_per_component_set(arg0: Any, arg1: Any) -> None:
2393 return _wasmtime_pooling_allocation_config_max_core_instances_per_component_set(arg0, arg1) # type: ignore
2395_wasmtime_pooling_allocation_config_max_memories_per_component_set = dll.wasmtime_pooling_allocation_config_max_memories_per_component_set
2396_wasmtime_pooling_allocation_config_max_memories_per_component_set.restype = None
2397_wasmtime_pooling_allocation_config_max_memories_per_component_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_uint32]
2398def wasmtime_pooling_allocation_config_max_memories_per_component_set(arg0: Any, arg1: Any) -> None:
2399 return _wasmtime_pooling_allocation_config_max_memories_per_component_set(arg0, arg1) # type: ignore
2401_wasmtime_pooling_allocation_config_max_tables_per_component_set = dll.wasmtime_pooling_allocation_config_max_tables_per_component_set
2402_wasmtime_pooling_allocation_config_max_tables_per_component_set.restype = None
2403_wasmtime_pooling_allocation_config_max_tables_per_component_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_uint32]
2404def wasmtime_pooling_allocation_config_max_tables_per_component_set(arg0: Any, arg1: Any) -> None:
2405 return _wasmtime_pooling_allocation_config_max_tables_per_component_set(arg0, arg1) # type: ignore
2407_wasmtime_pooling_allocation_config_total_memories_set = dll.wasmtime_pooling_allocation_config_total_memories_set
2408_wasmtime_pooling_allocation_config_total_memories_set.restype = None
2409_wasmtime_pooling_allocation_config_total_memories_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_uint32]
2410def wasmtime_pooling_allocation_config_total_memories_set(arg0: Any, arg1: Any) -> None:
2411 return _wasmtime_pooling_allocation_config_total_memories_set(arg0, arg1) # type: ignore
2413_wasmtime_pooling_allocation_config_total_tables_set = dll.wasmtime_pooling_allocation_config_total_tables_set
2414_wasmtime_pooling_allocation_config_total_tables_set.restype = None
2415_wasmtime_pooling_allocation_config_total_tables_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_uint32]
2416def wasmtime_pooling_allocation_config_total_tables_set(arg0: Any, arg1: Any) -> None:
2417 return _wasmtime_pooling_allocation_config_total_tables_set(arg0, arg1) # type: ignore
2419_wasmtime_pooling_allocation_config_total_stacks_set = dll.wasmtime_pooling_allocation_config_total_stacks_set
2420_wasmtime_pooling_allocation_config_total_stacks_set.restype = None
2421_wasmtime_pooling_allocation_config_total_stacks_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_uint32]
2422def wasmtime_pooling_allocation_config_total_stacks_set(arg0: Any, arg1: Any) -> None:
2423 return _wasmtime_pooling_allocation_config_total_stacks_set(arg0, arg1) # type: ignore
2425_wasmtime_pooling_allocation_config_total_core_instances_set = dll.wasmtime_pooling_allocation_config_total_core_instances_set
2426_wasmtime_pooling_allocation_config_total_core_instances_set.restype = None
2427_wasmtime_pooling_allocation_config_total_core_instances_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_uint32]
2428def wasmtime_pooling_allocation_config_total_core_instances_set(arg0: Any, arg1: Any) -> None:
2429 return _wasmtime_pooling_allocation_config_total_core_instances_set(arg0, arg1) # type: ignore
2431_wasmtime_pooling_allocation_config_max_core_instance_size_set = dll.wasmtime_pooling_allocation_config_max_core_instance_size_set
2432_wasmtime_pooling_allocation_config_max_core_instance_size_set.restype = None
2433_wasmtime_pooling_allocation_config_max_core_instance_size_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_size_t]
2434def wasmtime_pooling_allocation_config_max_core_instance_size_set(arg0: Any, arg1: Any) -> None:
2435 return _wasmtime_pooling_allocation_config_max_core_instance_size_set(arg0, arg1) # type: ignore
2437_wasmtime_pooling_allocation_config_max_tables_per_module_set = dll.wasmtime_pooling_allocation_config_max_tables_per_module_set
2438_wasmtime_pooling_allocation_config_max_tables_per_module_set.restype = None
2439_wasmtime_pooling_allocation_config_max_tables_per_module_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_uint32]
2440def wasmtime_pooling_allocation_config_max_tables_per_module_set(arg0: Any, arg1: Any) -> None:
2441 return _wasmtime_pooling_allocation_config_max_tables_per_module_set(arg0, arg1) # type: ignore
2443_wasmtime_pooling_allocation_config_table_elements_set = dll.wasmtime_pooling_allocation_config_table_elements_set
2444_wasmtime_pooling_allocation_config_table_elements_set.restype = None
2445_wasmtime_pooling_allocation_config_table_elements_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_size_t]
2446def wasmtime_pooling_allocation_config_table_elements_set(arg0: Any, arg1: Any) -> None:
2447 return _wasmtime_pooling_allocation_config_table_elements_set(arg0, arg1) # type: ignore
2449_wasmtime_pooling_allocation_config_max_memories_per_module_set = dll.wasmtime_pooling_allocation_config_max_memories_per_module_set
2450_wasmtime_pooling_allocation_config_max_memories_per_module_set.restype = None
2451_wasmtime_pooling_allocation_config_max_memories_per_module_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_uint32]
2452def wasmtime_pooling_allocation_config_max_memories_per_module_set(arg0: Any, arg1: Any) -> None:
2453 return _wasmtime_pooling_allocation_config_max_memories_per_module_set(arg0, arg1) # type: ignore
2455_wasmtime_pooling_allocation_config_max_memory_size_set = dll.wasmtime_pooling_allocation_config_max_memory_size_set
2456_wasmtime_pooling_allocation_config_max_memory_size_set.restype = None
2457_wasmtime_pooling_allocation_config_max_memory_size_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_size_t]
2458def wasmtime_pooling_allocation_config_max_memory_size_set(arg0: Any, arg1: Any) -> None:
2459 return _wasmtime_pooling_allocation_config_max_memory_size_set(arg0, arg1) # type: ignore
2461_wasmtime_pooling_allocation_config_total_gc_heaps_set = dll.wasmtime_pooling_allocation_config_total_gc_heaps_set
2462_wasmtime_pooling_allocation_config_total_gc_heaps_set.restype = None
2463_wasmtime_pooling_allocation_config_total_gc_heaps_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_uint32]
2464def wasmtime_pooling_allocation_config_total_gc_heaps_set(arg0: Any, arg1: Any) -> None:
2465 return _wasmtime_pooling_allocation_config_total_gc_heaps_set(arg0, arg1) # type: ignore
2467_wasmtime_pooling_allocation_strategy_set = dll.wasmtime_pooling_allocation_strategy_set
2468_wasmtime_pooling_allocation_strategy_set.restype = None
2469_wasmtime_pooling_allocation_strategy_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.POINTER(wasmtime_pooling_allocation_config_t)]
2470def wasmtime_pooling_allocation_strategy_set(arg0: Any, arg1: Any) -> None:
2471 return _wasmtime_pooling_allocation_strategy_set(arg0, arg1) # type: ignore
2473_wasmtime_config_wasm_component_model_set = dll.wasmtime_config_wasm_component_model_set
2474_wasmtime_config_wasm_component_model_set.restype = None
2475_wasmtime_config_wasm_component_model_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2476def wasmtime_config_wasm_component_model_set(arg0: Any, arg1: Any) -> None:
2477 return _wasmtime_config_wasm_component_model_set(arg0, arg1) # type: ignore
2479_wasmtime_engine_clone = dll.wasmtime_engine_clone
2480_wasmtime_engine_clone.restype = ctypes.POINTER(wasm_engine_t)
2481_wasmtime_engine_clone.argtypes = [ctypes.POINTER(wasm_engine_t)]
2482def wasmtime_engine_clone(engine: Any) -> ctypes._Pointer:
2483 return _wasmtime_engine_clone(engine) # type: ignore
2485_wasmtime_engine_increment_epoch = dll.wasmtime_engine_increment_epoch
2486_wasmtime_engine_increment_epoch.restype = None
2487_wasmtime_engine_increment_epoch.argtypes = [ctypes.POINTER(wasm_engine_t)]
2488def wasmtime_engine_increment_epoch(engine: Any) -> None:
2489 return _wasmtime_engine_increment_epoch(engine) # type: ignore
2491_wasmtime_engine_is_pulley = dll.wasmtime_engine_is_pulley
2492_wasmtime_engine_is_pulley.restype = ctypes.c_bool
2493_wasmtime_engine_is_pulley.argtypes = [ctypes.POINTER(wasm_engine_t)]
2494def wasmtime_engine_is_pulley(engine: Any) -> bool:
2495 return _wasmtime_engine_is_pulley(engine) # type: ignore
2497class wasmtime_module(ctypes.Structure):
2498 pass
2500wasmtime_module_t = wasmtime_module
2502_wasmtime_module_new = dll.wasmtime_module_new
2503_wasmtime_module_new.restype = ctypes.POINTER(wasmtime_error_t)
2504_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))]
2505def wasmtime_module_new(engine: Any, wasm: Any, wasm_len: Any, ret: Any) -> ctypes._Pointer:
2506 return _wasmtime_module_new(engine, wasm, wasm_len, ret) # type: ignore
2508_wasmtime_module_delete = dll.wasmtime_module_delete
2509_wasmtime_module_delete.restype = None
2510_wasmtime_module_delete.argtypes = [ctypes.POINTER(wasmtime_module_t)]
2511def wasmtime_module_delete(m: Any) -> None:
2512 return _wasmtime_module_delete(m) # type: ignore
2514_wasmtime_module_clone = dll.wasmtime_module_clone
2515_wasmtime_module_clone.restype = ctypes.POINTER(wasmtime_module_t)
2516_wasmtime_module_clone.argtypes = [ctypes.POINTER(wasmtime_module_t)]
2517def wasmtime_module_clone(m: Any) -> ctypes._Pointer:
2518 return _wasmtime_module_clone(m) # type: ignore
2520_wasmtime_module_imports = dll.wasmtime_module_imports
2521_wasmtime_module_imports.restype = None
2522_wasmtime_module_imports.argtypes = [ctypes.POINTER(wasmtime_module_t), ctypes.POINTER(wasm_importtype_vec_t)]
2523def wasmtime_module_imports(module: Any, out: Any) -> None:
2524 return _wasmtime_module_imports(module, out) # type: ignore
2526_wasmtime_module_exports = dll.wasmtime_module_exports
2527_wasmtime_module_exports.restype = None
2528_wasmtime_module_exports.argtypes = [ctypes.POINTER(wasmtime_module_t), ctypes.POINTER(wasm_exporttype_vec_t)]
2529def wasmtime_module_exports(module: Any, out: Any) -> None:
2530 return _wasmtime_module_exports(module, out) # type: ignore
2532_wasmtime_module_validate = dll.wasmtime_module_validate
2533_wasmtime_module_validate.restype = ctypes.POINTER(wasmtime_error_t)
2534_wasmtime_module_validate.argtypes = [ctypes.POINTER(wasm_engine_t), ctypes.POINTER(ctypes.c_uint8), ctypes.c_size_t]
2535def wasmtime_module_validate(engine: Any, wasm: Any, wasm_len: Any) -> ctypes._Pointer:
2536 return _wasmtime_module_validate(engine, wasm, wasm_len) # type: ignore
2538_wasmtime_module_serialize = dll.wasmtime_module_serialize
2539_wasmtime_module_serialize.restype = ctypes.POINTER(wasmtime_error_t)
2540_wasmtime_module_serialize.argtypes = [ctypes.POINTER(wasmtime_module_t), ctypes.POINTER(wasm_byte_vec_t)]
2541def wasmtime_module_serialize(module: Any, ret: Any) -> ctypes._Pointer:
2542 return _wasmtime_module_serialize(module, ret) # type: ignore
2544_wasmtime_module_deserialize = dll.wasmtime_module_deserialize
2545_wasmtime_module_deserialize.restype = ctypes.POINTER(wasmtime_error_t)
2546_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))]
2547def wasmtime_module_deserialize(engine: Any, bytes: Any, bytes_len: Any, ret: Any) -> ctypes._Pointer:
2548 return _wasmtime_module_deserialize(engine, bytes, bytes_len, ret) # type: ignore
2550_wasmtime_module_deserialize_file = dll.wasmtime_module_deserialize_file
2551_wasmtime_module_deserialize_file.restype = ctypes.POINTER(wasmtime_error_t)
2552_wasmtime_module_deserialize_file.argtypes = [ctypes.POINTER(wasm_engine_t), ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.POINTER(wasmtime_module_t))]
2553def wasmtime_module_deserialize_file(engine: Any, path: Any, ret: Any) -> ctypes._Pointer:
2554 return _wasmtime_module_deserialize_file(engine, path, ret) # type: ignore
2556_wasmtime_module_image_range = dll.wasmtime_module_image_range
2557_wasmtime_module_image_range.restype = None
2558_wasmtime_module_image_range.argtypes = [ctypes.POINTER(wasmtime_module_t), ctypes.POINTER(ctypes.c_void_p), ctypes.POINTER(ctypes.c_void_p)]
2559def wasmtime_module_image_range(module: Any, start: Any, end: Any) -> None:
2560 return _wasmtime_module_image_range(module, start, end) # type: ignore
2562class wasmtime_sharedmemory(ctypes.Structure):
2563 pass
2565wasmtime_sharedmemory_t = wasmtime_sharedmemory
2567_wasmtime_sharedmemory_new = dll.wasmtime_sharedmemory_new
2568_wasmtime_sharedmemory_new.restype = ctypes.POINTER(wasmtime_error_t)
2569_wasmtime_sharedmemory_new.argtypes = [ctypes.POINTER(wasm_engine_t), ctypes.POINTER(wasm_memorytype_t), ctypes.POINTER(ctypes.POINTER(wasmtime_sharedmemory_t))]
2570def wasmtime_sharedmemory_new(engine: Any, ty: Any, ret: Any) -> ctypes._Pointer:
2571 return _wasmtime_sharedmemory_new(engine, ty, ret) # type: ignore
2573_wasmtime_sharedmemory_delete = dll.wasmtime_sharedmemory_delete
2574_wasmtime_sharedmemory_delete.restype = None
2575_wasmtime_sharedmemory_delete.argtypes = [ctypes.POINTER(wasmtime_sharedmemory_t)]
2576def wasmtime_sharedmemory_delete(memory: Any) -> None:
2577 return _wasmtime_sharedmemory_delete(memory) # type: ignore
2579_wasmtime_sharedmemory_clone = dll.wasmtime_sharedmemory_clone
2580_wasmtime_sharedmemory_clone.restype = ctypes.POINTER(wasmtime_sharedmemory_t)
2581_wasmtime_sharedmemory_clone.argtypes = [ctypes.POINTER(wasmtime_sharedmemory_t)]
2582def wasmtime_sharedmemory_clone(memory: Any) -> ctypes._Pointer:
2583 return _wasmtime_sharedmemory_clone(memory) # type: ignore
2585_wasmtime_sharedmemory_type = dll.wasmtime_sharedmemory_type
2586_wasmtime_sharedmemory_type.restype = ctypes.POINTER(wasm_memorytype_t)
2587_wasmtime_sharedmemory_type.argtypes = [ctypes.POINTER(wasmtime_sharedmemory_t)]
2588def wasmtime_sharedmemory_type(memory: Any) -> ctypes._Pointer:
2589 return _wasmtime_sharedmemory_type(memory) # type: ignore
2591_wasmtime_sharedmemory_data = dll.wasmtime_sharedmemory_data
2592_wasmtime_sharedmemory_data.restype = ctypes.POINTER(ctypes.c_uint8)
2593_wasmtime_sharedmemory_data.argtypes = [ctypes.POINTER(wasmtime_sharedmemory_t)]
2594def wasmtime_sharedmemory_data(memory: Any) -> ctypes._Pointer:
2595 return _wasmtime_sharedmemory_data(memory) # type: ignore
2597_wasmtime_sharedmemory_data_size = dll.wasmtime_sharedmemory_data_size
2598_wasmtime_sharedmemory_data_size.restype = ctypes.c_size_t
2599_wasmtime_sharedmemory_data_size.argtypes = [ctypes.POINTER(wasmtime_sharedmemory_t)]
2600def wasmtime_sharedmemory_data_size(memory: Any) -> int:
2601 return _wasmtime_sharedmemory_data_size(memory) # type: ignore
2603_wasmtime_sharedmemory_size = dll.wasmtime_sharedmemory_size
2604_wasmtime_sharedmemory_size.restype = ctypes.c_uint64
2605_wasmtime_sharedmemory_size.argtypes = [ctypes.POINTER(wasmtime_sharedmemory_t)]
2606def wasmtime_sharedmemory_size(memory: Any) -> int:
2607 return _wasmtime_sharedmemory_size(memory) # type: ignore
2609_wasmtime_sharedmemory_grow = dll.wasmtime_sharedmemory_grow
2610_wasmtime_sharedmemory_grow.restype = ctypes.POINTER(wasmtime_error_t)
2611_wasmtime_sharedmemory_grow.argtypes = [ctypes.POINTER(wasmtime_sharedmemory_t), ctypes.c_uint64, ctypes.POINTER(ctypes.c_uint64)]
2612def wasmtime_sharedmemory_grow(memory: Any, delta: Any, prev_size: Any) -> ctypes._Pointer:
2613 return _wasmtime_sharedmemory_grow(memory, delta, prev_size) # type: ignore
2615class wasmtime_store(ctypes.Structure):
2616 pass
2618wasmtime_store_t = wasmtime_store
2620class wasmtime_context(ctypes.Structure):
2621 pass
2623wasmtime_context_t = wasmtime_context
2625_wasmtime_store_new = dll.wasmtime_store_new
2626_wasmtime_store_new.restype = ctypes.POINTER(wasmtime_store_t)
2627_wasmtime_store_new.argtypes = [ctypes.POINTER(wasm_engine_t), ctypes.c_void_p, ctypes.CFUNCTYPE(None, ctypes.c_void_p)]
2628def wasmtime_store_new(engine: Any, data: Any, finalizer: Any) -> ctypes._Pointer:
2629 return _wasmtime_store_new(engine, data, finalizer) # type: ignore
2631_wasmtime_store_context = dll.wasmtime_store_context
2632_wasmtime_store_context.restype = ctypes.POINTER(wasmtime_context_t)
2633_wasmtime_store_context.argtypes = [ctypes.POINTER(wasmtime_store_t)]
2634def wasmtime_store_context(store: Any) -> ctypes._Pointer:
2635 return _wasmtime_store_context(store) # type: ignore
2637_wasmtime_store_limiter = dll.wasmtime_store_limiter
2638_wasmtime_store_limiter.restype = None
2639_wasmtime_store_limiter.argtypes = [ctypes.POINTER(wasmtime_store_t), ctypes.c_int64, ctypes.c_int64, ctypes.c_int64, ctypes.c_int64, ctypes.c_int64]
2640def wasmtime_store_limiter(store: Any, memory_size: Any, table_elements: Any, instances: Any, tables: Any, memories: Any) -> None:
2641 return _wasmtime_store_limiter(store, memory_size, table_elements, instances, tables, memories) # type: ignore
2643_wasmtime_store_delete = dll.wasmtime_store_delete
2644_wasmtime_store_delete.restype = None
2645_wasmtime_store_delete.argtypes = [ctypes.POINTER(wasmtime_store_t)]
2646def wasmtime_store_delete(store: Any) -> None:
2647 return _wasmtime_store_delete(store) # type: ignore
2649_wasmtime_context_get_data = dll.wasmtime_context_get_data
2650_wasmtime_context_get_data.restype = ctypes.c_void_p
2651_wasmtime_context_get_data.argtypes = [ctypes.POINTER(wasmtime_context_t)]
2652def wasmtime_context_get_data(context: Any) -> ctypes._Pointer:
2653 return _wasmtime_context_get_data(context) # type: ignore
2655_wasmtime_context_set_data = dll.wasmtime_context_set_data
2656_wasmtime_context_set_data.restype = None
2657_wasmtime_context_set_data.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.c_void_p]
2658def wasmtime_context_set_data(context: Any, data: Any) -> None:
2659 return _wasmtime_context_set_data(context, data) # type: ignore
2661_wasmtime_context_gc = dll.wasmtime_context_gc
2662_wasmtime_context_gc.restype = None
2663_wasmtime_context_gc.argtypes = [ctypes.POINTER(wasmtime_context_t)]
2664def wasmtime_context_gc(context: Any) -> None:
2665 return _wasmtime_context_gc(context) # type: ignore
2667_wasmtime_context_set_fuel = dll.wasmtime_context_set_fuel
2668_wasmtime_context_set_fuel.restype = ctypes.POINTER(wasmtime_error_t)
2669_wasmtime_context_set_fuel.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.c_uint64]
2670def wasmtime_context_set_fuel(store: Any, fuel: Any) -> ctypes._Pointer:
2671 return _wasmtime_context_set_fuel(store, fuel) # type: ignore
2673_wasmtime_context_get_fuel = dll.wasmtime_context_get_fuel
2674_wasmtime_context_get_fuel.restype = ctypes.POINTER(wasmtime_error_t)
2675_wasmtime_context_get_fuel.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(ctypes.c_uint64)]
2676def wasmtime_context_get_fuel(context: Any, fuel: Any) -> ctypes._Pointer:
2677 return _wasmtime_context_get_fuel(context, fuel) # type: ignore
2679_wasmtime_context_set_wasi = dll.wasmtime_context_set_wasi
2680_wasmtime_context_set_wasi.restype = ctypes.POINTER(wasmtime_error_t)
2681_wasmtime_context_set_wasi.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasi_config_t)]
2682def wasmtime_context_set_wasi(context: Any, wasi: Any) -> ctypes._Pointer:
2683 return _wasmtime_context_set_wasi(context, wasi) # type: ignore
2685_wasmtime_context_set_epoch_deadline = dll.wasmtime_context_set_epoch_deadline
2686_wasmtime_context_set_epoch_deadline.restype = None
2687_wasmtime_context_set_epoch_deadline.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.c_uint64]
2688def wasmtime_context_set_epoch_deadline(context: Any, ticks_beyond_current: Any) -> None:
2689 return _wasmtime_context_set_epoch_deadline(context, ticks_beyond_current) # type: ignore
2691wasmtime_update_deadline_kind_t = ctypes.c_uint8
2693_wasmtime_store_epoch_deadline_callback = dll.wasmtime_store_epoch_deadline_callback
2694_wasmtime_store_epoch_deadline_callback.restype = None
2695_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)]
2696def wasmtime_store_epoch_deadline_callback(store: Any, func: Any, data: Any, finalizer: Any) -> None:
2697 return _wasmtime_store_epoch_deadline_callback(store, func, data, finalizer) # type: ignore
2699class wasmtime_func(ctypes.Structure):
2700 _fields_ = [
2701 ("store_id", ctypes.c_uint64),
2702 ("__private", ctypes.c_void_p),
2703 ]
2704 store_id: int
2705 __private: ctypes._Pointer
2707wasmtime_func_t = wasmtime_func
2710class wasmtime_table_anon_0(ctypes.Structure):
2711 _fields_ = [
2712 ("store_id", ctypes.c_uint64),
2713 ("__private1", ctypes.c_uint32),
2714 ]
2715 store_id: int
2716 __private1: int
2717class wasmtime_table(ctypes.Structure):
2718 _fields_ = [
2719 ("_anon_1", wasmtime_table_anon_0),
2720 ("__private2", ctypes.c_uint32),
2721 ]
2722 _anon_1: wasmtime_table_anon_0
2723 __private2: int
2725wasmtime_table_t = wasmtime_table
2728class wasmtime_memory_anon_0(ctypes.Structure):
2729 _fields_ = [
2730 ("store_id", ctypes.c_uint64),
2731 ("__private1", ctypes.c_uint32),
2732 ]
2733 store_id: int
2734 __private1: int
2735class wasmtime_memory(ctypes.Structure):
2736 _fields_ = [
2737 ("_anon_1", wasmtime_memory_anon_0),
2738 ("__private2", ctypes.c_uint32),
2739 ]
2740 _anon_1: wasmtime_memory_anon_0
2741 __private2: int
2743wasmtime_memory_t = wasmtime_memory
2745class wasmtime_global(ctypes.Structure):
2746 _fields_ = [
2747 ("store_id", ctypes.c_uint64),
2748 ("__private1", ctypes.c_uint32),
2749 ("__private2", ctypes.c_uint32),
2750 ("__private3", ctypes.c_uint32),
2751 ]
2752 store_id: int
2753 __private1: int
2754 __private2: int
2755 __private3: int
2757wasmtime_global_t = wasmtime_global
2759wasmtime_extern_kind_t = ctypes.c_uint8
2761class wasmtime_extern_union(ctypes.Union):
2762 _fields_ = [
2763 ("func", wasmtime_func_t),
2764 ("global_", wasmtime_global_t),
2765 ("table", wasmtime_table_t),
2766 ("memory", wasmtime_memory_t),
2767 ("sharedmemory", ctypes.POINTER(wasmtime_sharedmemory)),
2768 ]
2769 func: wasmtime_func_t
2770 global_: wasmtime_global_t
2771 table: wasmtime_table_t
2772 memory: wasmtime_memory_t
2773 sharedmemory: ctypes._Pointer
2775wasmtime_extern_union_t = wasmtime_extern_union
2777class wasmtime_extern(ctypes.Structure):
2778 _fields_ = [
2779 ("kind", wasmtime_extern_kind_t),
2780 ("of", wasmtime_extern_union_t),
2781 ]
2782 kind: wasmtime_extern_kind_t
2783 of: wasmtime_extern_union_t
2785wasmtime_extern_t = wasmtime_extern
2787_wasmtime_extern_delete = dll.wasmtime_extern_delete
2788_wasmtime_extern_delete.restype = None
2789_wasmtime_extern_delete.argtypes = [ctypes.POINTER(wasmtime_extern_t)]
2790def wasmtime_extern_delete(val: Any) -> None:
2791 return _wasmtime_extern_delete(val) # type: ignore
2793_wasmtime_extern_type = dll.wasmtime_extern_type
2794_wasmtime_extern_type.restype = ctypes.POINTER(wasm_externtype_t)
2795_wasmtime_extern_type.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_extern_t)]
2796def wasmtime_extern_type(context: Any, val: Any) -> ctypes._Pointer:
2797 return _wasmtime_extern_type(context, val) # type: ignore
2799class wasmtime_anyref(ctypes.Structure):
2800 _fields_ = [
2801 ("store_id", ctypes.c_uint64),
2802 ("__private1", ctypes.c_uint32),
2803 ("__private2", ctypes.c_uint32),
2804 ("__private3", ctypes.c_void_p),
2805 ]
2806 store_id: int
2807 __private1: int
2808 __private2: int
2809 __private3: ctypes._Pointer
2811wasmtime_anyref_t = wasmtime_anyref
2813_wasmtime_anyref_clone = dll.wasmtime_anyref_clone
2814_wasmtime_anyref_clone.restype = None
2815_wasmtime_anyref_clone.argtypes = [ctypes.POINTER(wasmtime_anyref_t), ctypes.POINTER(wasmtime_anyref_t)]
2816def wasmtime_anyref_clone(anyref: Any, out: Any) -> None:
2817 return _wasmtime_anyref_clone(anyref, out) # type: ignore
2819_wasmtime_anyref_unroot = dll.wasmtime_anyref_unroot
2820_wasmtime_anyref_unroot.restype = None
2821_wasmtime_anyref_unroot.argtypes = [ctypes.POINTER(wasmtime_anyref_t)]
2822def wasmtime_anyref_unroot(ref: Any) -> None:
2823 return _wasmtime_anyref_unroot(ref) # type: ignore
2825_wasmtime_anyref_from_raw = dll.wasmtime_anyref_from_raw
2826_wasmtime_anyref_from_raw.restype = None
2827_wasmtime_anyref_from_raw.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.c_uint32, ctypes.POINTER(wasmtime_anyref_t)]
2828def wasmtime_anyref_from_raw(context: Any, raw: Any, out: Any) -> None:
2829 return _wasmtime_anyref_from_raw(context, raw, out) # type: ignore
2831_wasmtime_anyref_to_raw = dll.wasmtime_anyref_to_raw
2832_wasmtime_anyref_to_raw.restype = ctypes.c_uint32
2833_wasmtime_anyref_to_raw.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_anyref_t)]
2834def wasmtime_anyref_to_raw(context: Any, ref: Any) -> int:
2835 return _wasmtime_anyref_to_raw(context, ref) # type: ignore
2837_wasmtime_anyref_from_i31 = dll.wasmtime_anyref_from_i31
2838_wasmtime_anyref_from_i31.restype = None
2839_wasmtime_anyref_from_i31.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.c_uint32, ctypes.POINTER(wasmtime_anyref_t)]
2840def wasmtime_anyref_from_i31(context: Any, i31val: Any, out: Any) -> None:
2841 return _wasmtime_anyref_from_i31(context, i31val, out) # type: ignore
2843_wasmtime_anyref_i31_get_u = dll.wasmtime_anyref_i31_get_u
2844_wasmtime_anyref_i31_get_u.restype = ctypes.c_bool
2845_wasmtime_anyref_i31_get_u.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_anyref_t), ctypes.POINTER(ctypes.c_uint32)]
2846def wasmtime_anyref_i31_get_u(context: Any, anyref: Any, dst: Any) -> bool:
2847 return _wasmtime_anyref_i31_get_u(context, anyref, dst) # type: ignore
2849_wasmtime_anyref_i31_get_s = dll.wasmtime_anyref_i31_get_s
2850_wasmtime_anyref_i31_get_s.restype = ctypes.c_bool
2851_wasmtime_anyref_i31_get_s.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_anyref_t), ctypes.POINTER(ctypes.c_int32)]
2852def wasmtime_anyref_i31_get_s(context: Any, anyref: Any, dst: Any) -> bool:
2853 return _wasmtime_anyref_i31_get_s(context, anyref, dst) # type: ignore
2855class wasmtime_externref(ctypes.Structure):
2856 _fields_ = [
2857 ("store_id", ctypes.c_uint64),
2858 ("__private1", ctypes.c_uint32),
2859 ("__private2", ctypes.c_uint32),
2860 ("__private3", ctypes.c_void_p),
2861 ]
2862 store_id: int
2863 __private1: int
2864 __private2: int
2865 __private3: ctypes._Pointer
2867wasmtime_externref_t = wasmtime_externref
2869_wasmtime_externref_new = dll.wasmtime_externref_new
2870_wasmtime_externref_new.restype = ctypes.c_bool
2871_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)]
2872def wasmtime_externref_new(context: Any, data: Any, finalizer: Any, out: Any) -> bool:
2873 return _wasmtime_externref_new(context, data, finalizer, out) # type: ignore
2875_wasmtime_externref_data = dll.wasmtime_externref_data
2876_wasmtime_externref_data.restype = ctypes.c_void_p
2877_wasmtime_externref_data.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_externref_t)]
2878def wasmtime_externref_data(context: Any, data: Any) -> ctypes._Pointer:
2879 return _wasmtime_externref_data(context, data) # type: ignore
2881_wasmtime_externref_clone = dll.wasmtime_externref_clone
2882_wasmtime_externref_clone.restype = None
2883_wasmtime_externref_clone.argtypes = [ctypes.POINTER(wasmtime_externref_t), ctypes.POINTER(wasmtime_externref_t)]
2884def wasmtime_externref_clone(ref: Any, out: Any) -> None:
2885 return _wasmtime_externref_clone(ref, out) # type: ignore
2887_wasmtime_externref_unroot = dll.wasmtime_externref_unroot
2888_wasmtime_externref_unroot.restype = None
2889_wasmtime_externref_unroot.argtypes = [ctypes.POINTER(wasmtime_externref_t)]
2890def wasmtime_externref_unroot(ref: Any) -> None:
2891 return _wasmtime_externref_unroot(ref) # type: ignore
2893_wasmtime_externref_from_raw = dll.wasmtime_externref_from_raw
2894_wasmtime_externref_from_raw.restype = None
2895_wasmtime_externref_from_raw.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.c_uint32, ctypes.POINTER(wasmtime_externref_t)]
2896def wasmtime_externref_from_raw(context: Any, raw: Any, out: Any) -> None:
2897 return _wasmtime_externref_from_raw(context, raw, out) # type: ignore
2899_wasmtime_externref_to_raw = dll.wasmtime_externref_to_raw
2900_wasmtime_externref_to_raw.restype = ctypes.c_uint32
2901_wasmtime_externref_to_raw.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_externref_t)]
2902def wasmtime_externref_to_raw(context: Any, ref: Any) -> int:
2903 return _wasmtime_externref_to_raw(context, ref) # type: ignore
2905wasmtime_valkind_t = ctypes.c_uint8
2907wasmtime_v128 = ctypes.c_uint8 * 16
2909class wasmtime_valunion(ctypes.Union):
2910 _fields_ = [
2911 ("i32", ctypes.c_int32),
2912 ("i64", ctypes.c_int64),
2913 ("f32", ctypes.c_float),
2914 ("f64", ctypes.c_double),
2915 ("anyref", wasmtime_anyref_t),
2916 ("externref", wasmtime_externref_t),
2917 ("funcref", wasmtime_func_t),
2918 ("v128", wasmtime_v128),
2919 ]
2920 i32: int
2921 i64: int
2922 f32: float
2923 f64: float
2924 anyref: wasmtime_anyref_t
2925 externref: wasmtime_externref_t
2926 funcref: wasmtime_func_t
2927 v128: wasmtime_v128 # type: ignore
2929wasmtime_valunion_t = wasmtime_valunion
2931class wasmtime_val_raw(ctypes.Union):
2932 _fields_ = [
2933 ("i32", ctypes.c_int32),
2934 ("i64", ctypes.c_int64),
2935 ("f32", ctypes.c_float),
2936 ("f64", ctypes.c_double),
2937 ("v128", wasmtime_v128),
2938 ("anyref", ctypes.c_uint32),
2939 ("externref", ctypes.c_uint32),
2940 ("funcref", ctypes.c_void_p),
2941 ]
2942 i32: int
2943 i64: int
2944 f32: float
2945 f64: float
2946 v128: wasmtime_v128 # type: ignore
2947 anyref: int
2948 externref: int
2949 funcref: ctypes._Pointer
2951wasmtime_val_raw_t = wasmtime_val_raw
2953class wasmtime_val(ctypes.Structure):
2954 _fields_ = [
2955 ("kind", wasmtime_valkind_t),
2956 ("of", wasmtime_valunion_t),
2957 ]
2958 kind: wasmtime_valkind_t
2959 of: wasmtime_valunion_t
2961wasmtime_val_t = wasmtime_val
2963_wasmtime_val_unroot = dll.wasmtime_val_unroot
2964_wasmtime_val_unroot.restype = None
2965_wasmtime_val_unroot.argtypes = [ctypes.POINTER(wasmtime_val_t)]
2966def wasmtime_val_unroot(val: Any) -> None:
2967 return _wasmtime_val_unroot(val) # type: ignore
2969_wasmtime_val_clone = dll.wasmtime_val_clone
2970_wasmtime_val_clone.restype = None
2971_wasmtime_val_clone.argtypes = [ctypes.POINTER(wasmtime_val_t), ctypes.POINTER(wasmtime_val_t)]
2972def wasmtime_val_clone(src: Any, dst: Any) -> None:
2973 return _wasmtime_val_clone(src, dst) # type: ignore
2975class wasmtime_caller(ctypes.Structure):
2976 pass
2978wasmtime_caller_t = wasmtime_caller
2980wasmtime_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)
2982_wasmtime_func_new = dll.wasmtime_func_new
2983_wasmtime_func_new.restype = None
2984_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)]
2985def wasmtime_func_new(store: Any, type: Any, callback: Any, env: Any, finalizer: Any, ret: Any) -> None:
2986 return _wasmtime_func_new(store, type, callback, env, finalizer, ret) # type: ignore
2988wasmtime_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)
2990_wasmtime_func_new_unchecked = dll.wasmtime_func_new_unchecked
2991_wasmtime_func_new_unchecked.restype = None
2992_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)]
2993def wasmtime_func_new_unchecked(store: Any, type: Any, callback: Any, env: Any, finalizer: Any, ret: Any) -> None:
2994 return _wasmtime_func_new_unchecked(store, type, callback, env, finalizer, ret) # type: ignore
2996_wasmtime_func_type = dll.wasmtime_func_type
2997_wasmtime_func_type.restype = ctypes.POINTER(wasm_functype_t)
2998_wasmtime_func_type.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_func_t)]
2999def wasmtime_func_type(store: Any, func: Any) -> ctypes._Pointer:
3000 return _wasmtime_func_type(store, func) # type: ignore
3002_wasmtime_func_call = dll.wasmtime_func_call
3003_wasmtime_func_call.restype = ctypes.POINTER(wasmtime_error_t)
3004_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))]
3005def wasmtime_func_call(store: Any, func: Any, args: Any, nargs: Any, results: Any, nresults: Any, trap: Any) -> ctypes._Pointer:
3006 return _wasmtime_func_call(store, func, args, nargs, results, nresults, trap) # type: ignore
3008_wasmtime_func_call_unchecked = dll.wasmtime_func_call_unchecked
3009_wasmtime_func_call_unchecked.restype = ctypes.POINTER(wasmtime_error_t)
3010_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))]
3011def wasmtime_func_call_unchecked(store: Any, func: Any, args_and_results: Any, args_and_results_len: Any, trap: Any) -> ctypes._Pointer:
3012 return _wasmtime_func_call_unchecked(store, func, args_and_results, args_and_results_len, trap) # type: ignore
3014_wasmtime_caller_export_get = dll.wasmtime_caller_export_get
3015_wasmtime_caller_export_get.restype = ctypes.c_bool
3016_wasmtime_caller_export_get.argtypes = [ctypes.POINTER(wasmtime_caller_t), ctypes.POINTER(ctypes.c_char), ctypes.c_size_t, ctypes.POINTER(wasmtime_extern_t)]
3017def wasmtime_caller_export_get(caller: Any, name: Any, name_len: Any, item: Any) -> bool:
3018 return _wasmtime_caller_export_get(caller, name, name_len, item) # type: ignore
3020_wasmtime_caller_context = dll.wasmtime_caller_context
3021_wasmtime_caller_context.restype = ctypes.POINTER(wasmtime_context_t)
3022_wasmtime_caller_context.argtypes = [ctypes.POINTER(wasmtime_caller_t)]
3023def wasmtime_caller_context(caller: Any) -> ctypes._Pointer:
3024 return _wasmtime_caller_context(caller) # type: ignore
3026_wasmtime_func_from_raw = dll.wasmtime_func_from_raw
3027_wasmtime_func_from_raw.restype = None
3028_wasmtime_func_from_raw.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.c_void_p, ctypes.POINTER(wasmtime_func_t)]
3029def wasmtime_func_from_raw(context: Any, raw: Any, ret: Any) -> None:
3030 return _wasmtime_func_from_raw(context, raw, ret) # type: ignore
3032_wasmtime_func_to_raw = dll.wasmtime_func_to_raw
3033_wasmtime_func_to_raw.restype = ctypes.c_void_p
3034_wasmtime_func_to_raw.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_func_t)]
3035def wasmtime_func_to_raw(context: Any, func: Any) -> ctypes._Pointer:
3036 return _wasmtime_func_to_raw(context, func) # type: ignore
3038_wasmtime_global_new = dll.wasmtime_global_new
3039_wasmtime_global_new.restype = ctypes.POINTER(wasmtime_error_t)
3040_wasmtime_global_new.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasm_globaltype_t), ctypes.POINTER(wasmtime_val_t), ctypes.POINTER(wasmtime_global_t)]
3041def wasmtime_global_new(store: Any, type: Any, val: Any, ret: Any) -> ctypes._Pointer:
3042 return _wasmtime_global_new(store, type, val, ret) # type: ignore
3044_wasmtime_global_type = dll.wasmtime_global_type
3045_wasmtime_global_type.restype = ctypes.POINTER(wasm_globaltype_t)
3046_wasmtime_global_type.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_global_t)]
3047def wasmtime_global_type(store: Any, arg1: Any) -> ctypes._Pointer:
3048 return _wasmtime_global_type(store, arg1) # type: ignore
3050_wasmtime_global_get = dll.wasmtime_global_get
3051_wasmtime_global_get.restype = None
3052_wasmtime_global_get.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_global_t), ctypes.POINTER(wasmtime_val_t)]
3053def wasmtime_global_get(store: Any, arg1: Any, out: Any) -> None:
3054 return _wasmtime_global_get(store, arg1, out) # type: ignore
3056_wasmtime_global_set = dll.wasmtime_global_set
3057_wasmtime_global_set.restype = ctypes.POINTER(wasmtime_error_t)
3058_wasmtime_global_set.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_global_t), ctypes.POINTER(wasmtime_val_t)]
3059def wasmtime_global_set(store: Any, arg1: Any, val: Any) -> ctypes._Pointer:
3060 return _wasmtime_global_set(store, arg1, val) # type: ignore
3062class wasmtime_instance(ctypes.Structure):
3063 _fields_ = [
3064 ("store_id", ctypes.c_uint64),
3065 ("__private", ctypes.c_size_t),
3066 ]
3067 store_id: int
3068 __private: int
3070wasmtime_instance_t = wasmtime_instance
3072_wasmtime_instance_new = dll.wasmtime_instance_new
3073_wasmtime_instance_new.restype = ctypes.POINTER(wasmtime_error_t)
3074_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))]
3075def wasmtime_instance_new(store: Any, module: Any, imports: Any, nimports: Any, instance: Any, trap: Any) -> ctypes._Pointer:
3076 return _wasmtime_instance_new(store, module, imports, nimports, instance, trap) # type: ignore
3078_wasmtime_instance_export_get = dll.wasmtime_instance_export_get
3079_wasmtime_instance_export_get.restype = ctypes.c_bool
3080_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)]
3081def wasmtime_instance_export_get(store: Any, instance: Any, name: Any, name_len: Any, item: Any) -> bool:
3082 return _wasmtime_instance_export_get(store, instance, name, name_len, item) # type: ignore
3084_wasmtime_instance_export_nth = dll.wasmtime_instance_export_nth
3085_wasmtime_instance_export_nth.restype = ctypes.c_bool
3086_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)]
3087def wasmtime_instance_export_nth(store: Any, instance: Any, index: Any, name: Any, name_len: Any, item: Any) -> bool:
3088 return _wasmtime_instance_export_nth(store, instance, index, name, name_len, item) # type: ignore
3090class wasmtime_instance_pre(ctypes.Structure):
3091 pass
3093wasmtime_instance_pre_t = wasmtime_instance_pre
3095_wasmtime_instance_pre_delete = dll.wasmtime_instance_pre_delete
3096_wasmtime_instance_pre_delete.restype = None
3097_wasmtime_instance_pre_delete.argtypes = [ctypes.POINTER(wasmtime_instance_pre_t)]
3098def wasmtime_instance_pre_delete(instance_pre: Any) -> None:
3099 return _wasmtime_instance_pre_delete(instance_pre) # type: ignore
3101_wasmtime_instance_pre_instantiate = dll.wasmtime_instance_pre_instantiate
3102_wasmtime_instance_pre_instantiate.restype = ctypes.POINTER(wasmtime_error_t)
3103_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))]
3104def wasmtime_instance_pre_instantiate(instance_pre: Any, store: Any, instance: Any, trap_ptr: Any) -> ctypes._Pointer:
3105 return _wasmtime_instance_pre_instantiate(instance_pre, store, instance, trap_ptr) # type: ignore
3107_wasmtime_instance_pre_module = dll.wasmtime_instance_pre_module
3108_wasmtime_instance_pre_module.restype = ctypes.POINTER(wasmtime_module_t)
3109_wasmtime_instance_pre_module.argtypes = [ctypes.POINTER(wasmtime_instance_pre_t)]
3110def wasmtime_instance_pre_module(instance_pre: Any) -> ctypes._Pointer:
3111 return _wasmtime_instance_pre_module(instance_pre) # type: ignore
3113class wasmtime_linker(ctypes.Structure):
3114 pass
3116wasmtime_linker_t = wasmtime_linker
3118_wasmtime_linker_new = dll.wasmtime_linker_new
3119_wasmtime_linker_new.restype = ctypes.POINTER(wasmtime_linker_t)
3120_wasmtime_linker_new.argtypes = [ctypes.POINTER(wasm_engine_t)]
3121def wasmtime_linker_new(engine: Any) -> ctypes._Pointer:
3122 return _wasmtime_linker_new(engine) # type: ignore
3124_wasmtime_linker_clone = dll.wasmtime_linker_clone
3125_wasmtime_linker_clone.restype = ctypes.POINTER(wasmtime_linker_t)
3126_wasmtime_linker_clone.argtypes = [ctypes.POINTER(wasmtime_linker_t)]
3127def wasmtime_linker_clone(linker: Any) -> ctypes._Pointer:
3128 return _wasmtime_linker_clone(linker) # type: ignore
3130_wasmtime_linker_delete = dll.wasmtime_linker_delete
3131_wasmtime_linker_delete.restype = None
3132_wasmtime_linker_delete.argtypes = [ctypes.POINTER(wasmtime_linker_t)]
3133def wasmtime_linker_delete(linker: Any) -> None:
3134 return _wasmtime_linker_delete(linker) # type: ignore
3136_wasmtime_linker_allow_shadowing = dll.wasmtime_linker_allow_shadowing
3137_wasmtime_linker_allow_shadowing.restype = None
3138_wasmtime_linker_allow_shadowing.argtypes = [ctypes.POINTER(wasmtime_linker_t), ctypes.c_bool]
3139def wasmtime_linker_allow_shadowing(linker: Any, allow_shadowing: Any) -> None:
3140 return _wasmtime_linker_allow_shadowing(linker, allow_shadowing) # type: ignore
3142_wasmtime_linker_define_unknown_imports_as_traps = dll.wasmtime_linker_define_unknown_imports_as_traps
3143_wasmtime_linker_define_unknown_imports_as_traps.restype = ctypes.POINTER(wasmtime_error_t)
3144_wasmtime_linker_define_unknown_imports_as_traps.argtypes = [ctypes.POINTER(wasmtime_linker_t), ctypes.POINTER(wasmtime_module_t)]
3145def wasmtime_linker_define_unknown_imports_as_traps(linker: Any, module: Any) -> ctypes._Pointer:
3146 return _wasmtime_linker_define_unknown_imports_as_traps(linker, module) # type: ignore
3148_wasmtime_linker_define_unknown_imports_as_default_values = dll.wasmtime_linker_define_unknown_imports_as_default_values
3149_wasmtime_linker_define_unknown_imports_as_default_values.restype = ctypes.POINTER(wasmtime_error_t)
3150_wasmtime_linker_define_unknown_imports_as_default_values.argtypes = [ctypes.POINTER(wasmtime_linker_t), ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_module_t)]
3151def wasmtime_linker_define_unknown_imports_as_default_values(linker: Any, store: Any, module: Any) -> ctypes._Pointer:
3152 return _wasmtime_linker_define_unknown_imports_as_default_values(linker, store, module) # type: ignore
3154_wasmtime_linker_define = dll.wasmtime_linker_define
3155_wasmtime_linker_define.restype = ctypes.POINTER(wasmtime_error_t)
3156_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)]
3157def wasmtime_linker_define(linker: Any, store: Any, module: Any, module_len: Any, name: Any, name_len: Any, item: Any) -> ctypes._Pointer:
3158 return _wasmtime_linker_define(linker, store, module, module_len, name, name_len, item) # type: ignore
3160_wasmtime_linker_define_func = dll.wasmtime_linker_define_func
3161_wasmtime_linker_define_func.restype = ctypes.POINTER(wasmtime_error_t)
3162_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)]
3163def 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:
3164 return _wasmtime_linker_define_func(linker, module, module_len, name, name_len, ty, cb, data, finalizer) # type: ignore
3166_wasmtime_linker_define_func_unchecked = dll.wasmtime_linker_define_func_unchecked
3167_wasmtime_linker_define_func_unchecked.restype = ctypes.POINTER(wasmtime_error_t)
3168_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)]
3169def 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:
3170 return _wasmtime_linker_define_func_unchecked(linker, module, module_len, name, name_len, ty, cb, data, finalizer) # type: ignore
3172_wasmtime_linker_define_wasi = dll.wasmtime_linker_define_wasi
3173_wasmtime_linker_define_wasi.restype = ctypes.POINTER(wasmtime_error_t)
3174_wasmtime_linker_define_wasi.argtypes = [ctypes.POINTER(wasmtime_linker_t)]
3175def wasmtime_linker_define_wasi(linker: Any) -> ctypes._Pointer:
3176 return _wasmtime_linker_define_wasi(linker) # type: ignore
3178_wasmtime_linker_define_instance = dll.wasmtime_linker_define_instance
3179_wasmtime_linker_define_instance.restype = ctypes.POINTER(wasmtime_error_t)
3180_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)]
3181def wasmtime_linker_define_instance(linker: Any, store: Any, name: Any, name_len: Any, instance: Any) -> ctypes._Pointer:
3182 return _wasmtime_linker_define_instance(linker, store, name, name_len, instance) # type: ignore
3184_wasmtime_linker_instantiate = dll.wasmtime_linker_instantiate
3185_wasmtime_linker_instantiate.restype = ctypes.POINTER(wasmtime_error_t)
3186_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))]
3187def wasmtime_linker_instantiate(linker: Any, store: Any, module: Any, instance: Any, trap: Any) -> ctypes._Pointer:
3188 return _wasmtime_linker_instantiate(linker, store, module, instance, trap) # type: ignore
3190_wasmtime_linker_module = dll.wasmtime_linker_module
3191_wasmtime_linker_module.restype = ctypes.POINTER(wasmtime_error_t)
3192_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)]
3193def wasmtime_linker_module(linker: Any, store: Any, name: Any, name_len: Any, module: Any) -> ctypes._Pointer:
3194 return _wasmtime_linker_module(linker, store, name, name_len, module) # type: ignore
3196_wasmtime_linker_get_default = dll.wasmtime_linker_get_default
3197_wasmtime_linker_get_default.restype = ctypes.POINTER(wasmtime_error_t)
3198_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)]
3199def wasmtime_linker_get_default(linker: Any, store: Any, name: Any, name_len: Any, func: Any) -> ctypes._Pointer:
3200 return _wasmtime_linker_get_default(linker, store, name, name_len, func) # type: ignore
3202_wasmtime_linker_get = dll.wasmtime_linker_get
3203_wasmtime_linker_get.restype = ctypes.c_bool
3204_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)]
3205def wasmtime_linker_get(linker: Any, store: Any, module: Any, module_len: Any, name: Any, name_len: Any, item: Any) -> bool:
3206 return _wasmtime_linker_get(linker, store, module, module_len, name, name_len, item) # type: ignore
3208_wasmtime_linker_instantiate_pre = dll.wasmtime_linker_instantiate_pre
3209_wasmtime_linker_instantiate_pre.restype = ctypes.POINTER(wasmtime_error_t)
3210_wasmtime_linker_instantiate_pre.argtypes = [ctypes.POINTER(wasmtime_linker_t), ctypes.POINTER(wasmtime_module_t), ctypes.POINTER(ctypes.POINTER(wasmtime_instance_pre_t))]
3211def wasmtime_linker_instantiate_pre(linker: Any, module: Any, instance_pre: Any) -> ctypes._Pointer:
3212 return _wasmtime_linker_instantiate_pre(linker, module, instance_pre) # type: ignore
3214_wasmtime_memorytype_new = dll.wasmtime_memorytype_new
3215_wasmtime_memorytype_new.restype = ctypes.POINTER(wasmtime_error_t)
3216_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))]
3217def wasmtime_memorytype_new(min: Any, max_present: Any, max: Any, is_64: Any, shared: Any, page_size_log2: Any, ret: Any) -> ctypes._Pointer:
3218 return _wasmtime_memorytype_new(min, max_present, max, is_64, shared, page_size_log2, ret) # type: ignore
3220_wasmtime_memorytype_minimum = dll.wasmtime_memorytype_minimum
3221_wasmtime_memorytype_minimum.restype = ctypes.c_uint64
3222_wasmtime_memorytype_minimum.argtypes = [ctypes.POINTER(wasm_memorytype_t)]
3223def wasmtime_memorytype_minimum(ty: Any) -> int:
3224 return _wasmtime_memorytype_minimum(ty) # type: ignore
3226_wasmtime_memorytype_maximum = dll.wasmtime_memorytype_maximum
3227_wasmtime_memorytype_maximum.restype = ctypes.c_bool
3228_wasmtime_memorytype_maximum.argtypes = [ctypes.POINTER(wasm_memorytype_t), ctypes.POINTER(ctypes.c_uint64)]
3229def wasmtime_memorytype_maximum(ty: Any, max: Any) -> bool:
3230 return _wasmtime_memorytype_maximum(ty, max) # type: ignore
3232_wasmtime_memorytype_is64 = dll.wasmtime_memorytype_is64
3233_wasmtime_memorytype_is64.restype = ctypes.c_bool
3234_wasmtime_memorytype_is64.argtypes = [ctypes.POINTER(wasm_memorytype_t)]
3235def wasmtime_memorytype_is64(ty: Any) -> bool:
3236 return _wasmtime_memorytype_is64(ty) # type: ignore
3238_wasmtime_memorytype_isshared = dll.wasmtime_memorytype_isshared
3239_wasmtime_memorytype_isshared.restype = ctypes.c_bool
3240_wasmtime_memorytype_isshared.argtypes = [ctypes.POINTER(wasm_memorytype_t)]
3241def wasmtime_memorytype_isshared(ty: Any) -> bool:
3242 return _wasmtime_memorytype_isshared(ty) # type: ignore
3244_wasmtime_memorytype_page_size = dll.wasmtime_memorytype_page_size
3245_wasmtime_memorytype_page_size.restype = ctypes.c_uint64
3246_wasmtime_memorytype_page_size.argtypes = [ctypes.POINTER(wasm_memorytype_t)]
3247def wasmtime_memorytype_page_size(ty: Any) -> int:
3248 return _wasmtime_memorytype_page_size(ty) # type: ignore
3250_wasmtime_memorytype_page_size_log2 = dll.wasmtime_memorytype_page_size_log2
3251_wasmtime_memorytype_page_size_log2.restype = ctypes.c_uint8
3252_wasmtime_memorytype_page_size_log2.argtypes = [ctypes.POINTER(wasm_memorytype_t)]
3253def wasmtime_memorytype_page_size_log2(ty: Any) -> ctypes.c_uint8:
3254 return _wasmtime_memorytype_page_size_log2(ty) # type: ignore
3256_wasmtime_memory_new = dll.wasmtime_memory_new
3257_wasmtime_memory_new.restype = ctypes.POINTER(wasmtime_error_t)
3258_wasmtime_memory_new.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasm_memorytype_t), ctypes.POINTER(wasmtime_memory_t)]
3259def wasmtime_memory_new(store: Any, ty: Any, ret: Any) -> ctypes._Pointer:
3260 return _wasmtime_memory_new(store, ty, ret) # type: ignore
3262_wasmtime_memory_type = dll.wasmtime_memory_type
3263_wasmtime_memory_type.restype = ctypes.POINTER(wasm_memorytype_t)
3264_wasmtime_memory_type.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_memory_t)]
3265def wasmtime_memory_type(store: Any, memory: Any) -> ctypes._Pointer:
3266 return _wasmtime_memory_type(store, memory) # type: ignore
3268_wasmtime_memory_data = dll.wasmtime_memory_data
3269_wasmtime_memory_data.restype = ctypes.POINTER(ctypes.c_uint8)
3270_wasmtime_memory_data.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_memory_t)]
3271def wasmtime_memory_data(store: Any, memory: Any) -> ctypes._Pointer:
3272 return _wasmtime_memory_data(store, memory) # type: ignore
3274_wasmtime_memory_data_size = dll.wasmtime_memory_data_size
3275_wasmtime_memory_data_size.restype = ctypes.c_size_t
3276_wasmtime_memory_data_size.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_memory_t)]
3277def wasmtime_memory_data_size(store: Any, memory: Any) -> int:
3278 return _wasmtime_memory_data_size(store, memory) # type: ignore
3280_wasmtime_memory_size = dll.wasmtime_memory_size
3281_wasmtime_memory_size.restype = ctypes.c_uint64
3282_wasmtime_memory_size.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_memory_t)]
3283def wasmtime_memory_size(store: Any, memory: Any) -> int:
3284 return _wasmtime_memory_size(store, memory) # type: ignore
3286_wasmtime_memory_grow = dll.wasmtime_memory_grow
3287_wasmtime_memory_grow.restype = ctypes.POINTER(wasmtime_error_t)
3288_wasmtime_memory_grow.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_memory_t), ctypes.c_uint64, ctypes.POINTER(ctypes.c_uint64)]
3289def wasmtime_memory_grow(store: Any, memory: Any, delta: Any, prev_size: Any) -> ctypes._Pointer:
3290 return _wasmtime_memory_grow(store, memory, delta, prev_size) # type: ignore
3292_wasmtime_memory_page_size = dll.wasmtime_memory_page_size
3293_wasmtime_memory_page_size.restype = ctypes.c_uint64
3294_wasmtime_memory_page_size.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_memory_t)]
3295def wasmtime_memory_page_size(store: Any, memory: Any) -> int:
3296 return _wasmtime_memory_page_size(store, memory) # type: ignore
3298_wasmtime_memory_page_size_log2 = dll.wasmtime_memory_page_size_log2
3299_wasmtime_memory_page_size_log2.restype = ctypes.c_uint8
3300_wasmtime_memory_page_size_log2.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_memory_t)]
3301def wasmtime_memory_page_size_log2(store: Any, memory: Any) -> ctypes.c_uint8:
3302 return _wasmtime_memory_page_size_log2(store, memory) # type: ignore
3304class wasmtime_guestprofiler(ctypes.Structure):
3305 pass
3307wasmtime_guestprofiler_t = wasmtime_guestprofiler
3309_wasmtime_guestprofiler_delete = dll.wasmtime_guestprofiler_delete
3310_wasmtime_guestprofiler_delete.restype = None
3311_wasmtime_guestprofiler_delete.argtypes = [ctypes.POINTER(wasmtime_guestprofiler_t)]
3312def wasmtime_guestprofiler_delete(guestprofiler: Any) -> None:
3313 return _wasmtime_guestprofiler_delete(guestprofiler) # type: ignore
3315class wasmtime_guestprofiler_modules(ctypes.Structure):
3316 _fields_ = [
3317 ("name", ctypes.POINTER(wasm_name_t)),
3318 ("mod", ctypes.POINTER(wasmtime_module_t)),
3319 ]
3320 name: ctypes._Pointer
3321 mod: ctypes._Pointer
3323wasmtime_guestprofiler_modules_t = wasmtime_guestprofiler_modules
3325_wasmtime_guestprofiler_new = dll.wasmtime_guestprofiler_new
3326_wasmtime_guestprofiler_new.restype = ctypes.POINTER(wasmtime_guestprofiler_t)
3327_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]
3328def wasmtime_guestprofiler_new(engine: Any, module_name: Any, interval_nanos: Any, modules: Any, modules_len: Any) -> ctypes._Pointer:
3329 return _wasmtime_guestprofiler_new(engine, module_name, interval_nanos, modules, modules_len) # type: ignore
3331_wasmtime_guestprofiler_sample = dll.wasmtime_guestprofiler_sample
3332_wasmtime_guestprofiler_sample.restype = None
3333_wasmtime_guestprofiler_sample.argtypes = [ctypes.POINTER(wasmtime_guestprofiler_t), ctypes.POINTER(wasmtime_store_t), ctypes.c_uint64]
3334def wasmtime_guestprofiler_sample(guestprofiler: Any, store: Any, delta_nanos: Any) -> None:
3335 return _wasmtime_guestprofiler_sample(guestprofiler, store, delta_nanos) # type: ignore
3337_wasmtime_guestprofiler_finish = dll.wasmtime_guestprofiler_finish
3338_wasmtime_guestprofiler_finish.restype = ctypes.POINTER(wasmtime_error_t)
3339_wasmtime_guestprofiler_finish.argtypes = [ctypes.POINTER(wasmtime_guestprofiler_t), ctypes.POINTER(wasm_byte_vec_t)]
3340def wasmtime_guestprofiler_finish(guestprofiler: Any, out: Any) -> ctypes._Pointer:
3341 return _wasmtime_guestprofiler_finish(guestprofiler, out) # type: ignore
3343_wasmtime_table_new = dll.wasmtime_table_new
3344_wasmtime_table_new.restype = ctypes.POINTER(wasmtime_error_t)
3345_wasmtime_table_new.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasm_tabletype_t), ctypes.POINTER(wasmtime_val_t), ctypes.POINTER(wasmtime_table_t)]
3346def wasmtime_table_new(store: Any, ty: Any, init: Any, table: Any) -> ctypes._Pointer:
3347 return _wasmtime_table_new(store, ty, init, table) # type: ignore
3349_wasmtime_table_type = dll.wasmtime_table_type
3350_wasmtime_table_type.restype = ctypes.POINTER(wasm_tabletype_t)
3351_wasmtime_table_type.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_table_t)]
3352def wasmtime_table_type(store: Any, table: Any) -> ctypes._Pointer:
3353 return _wasmtime_table_type(store, table) # type: ignore
3355_wasmtime_table_get = dll.wasmtime_table_get
3356_wasmtime_table_get.restype = ctypes.c_bool
3357_wasmtime_table_get.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_table_t), ctypes.c_uint64, ctypes.POINTER(wasmtime_val_t)]
3358def wasmtime_table_get(store: Any, table: Any, index: Any, val: Any) -> bool:
3359 return _wasmtime_table_get(store, table, index, val) # type: ignore
3361_wasmtime_table_set = dll.wasmtime_table_set
3362_wasmtime_table_set.restype = ctypes.POINTER(wasmtime_error_t)
3363_wasmtime_table_set.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_table_t), ctypes.c_uint64, ctypes.POINTER(wasmtime_val_t)]
3364def wasmtime_table_set(store: Any, table: Any, index: Any, value: Any) -> ctypes._Pointer:
3365 return _wasmtime_table_set(store, table, index, value) # type: ignore
3367_wasmtime_table_size = dll.wasmtime_table_size
3368_wasmtime_table_size.restype = ctypes.c_uint64
3369_wasmtime_table_size.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_table_t)]
3370def wasmtime_table_size(store: Any, table: Any) -> int:
3371 return _wasmtime_table_size(store, table) # type: ignore
3373_wasmtime_table_grow = dll.wasmtime_table_grow
3374_wasmtime_table_grow.restype = ctypes.POINTER(wasmtime_error_t)
3375_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)]
3376def wasmtime_table_grow(store: Any, table: Any, delta: Any, init: Any, prev_size: Any) -> ctypes._Pointer:
3377 return _wasmtime_table_grow(store, table, delta, init, prev_size) # type: ignore
3379wasmtime_trap_code_t = ctypes.c_uint8
3381class wasmtime_trap_code_enum(Enum):
3382 WASMTIME_TRAP_CODE_STACK_OVERFLOW = auto()
3383 WASMTIME_TRAP_CODE_MEMORY_OUT_OF_BOUNDS = auto()
3384 WASMTIME_TRAP_CODE_HEAP_MISALIGNED = auto()
3385 WASMTIME_TRAP_CODE_TABLE_OUT_OF_BOUNDS = auto()
3386 WASMTIME_TRAP_CODE_INDIRECT_CALL_TO_NULL = auto()
3387 WASMTIME_TRAP_CODE_BAD_SIGNATURE = auto()
3388 WASMTIME_TRAP_CODE_INTEGER_OVERFLOW = auto()
3389 WASMTIME_TRAP_CODE_INTEGER_DIVISION_BY_ZERO = auto()
3390 WASMTIME_TRAP_CODE_BAD_CONVERSION_TO_INTEGER = auto()
3391 WASMTIME_TRAP_CODE_UNREACHABLE_CODE_REACHED = auto()
3392 WASMTIME_TRAP_CODE_INTERRUPT = auto()
3393 WASMTIME_TRAP_CODE_ALWAYS_TRAP_ADAPTER = auto()
3394 WASMTIME_TRAP_CODE_OUT_OF_FUEL = auto()
3395 WASMTIME_TRAP_CODE_ATOMIC_WAIT_NON_SHARED_MEMORY = auto()
3396 WASMTIME_TRAP_CODE_NULL_REFERENCE = auto()
3397 WASMTIME_TRAP_CODE_ARRAY_OUT_OF_BOUNDS = auto()
3398 WASMTIME_TRAP_CODE_ALLOCATION_TOO_LARGE = auto()
3399 WASMTIME_TRAP_CODE_CAST_FAILURE = auto()
3400 WASMTIME_TRAP_CODE_CANNOT_ENTER_COMPONENT = auto()
3401 WASMTIME_TRAP_CODE_NO_ASYNC_RESULT = auto()
3402 WASMTIME_TRAP_CODE_DISABLED_OPCODE = auto()
3404_wasmtime_trap_new = dll.wasmtime_trap_new
3405_wasmtime_trap_new.restype = ctypes.POINTER(wasm_trap_t)
3406_wasmtime_trap_new.argtypes = [ctypes.POINTER(ctypes.c_char), ctypes.c_size_t]
3407def wasmtime_trap_new(msg: Any, msg_len: Any) -> ctypes._Pointer:
3408 return _wasmtime_trap_new(msg, msg_len) # type: ignore
3410_wasmtime_trap_new_code = dll.wasmtime_trap_new_code
3411_wasmtime_trap_new_code.restype = ctypes.POINTER(wasm_trap_t)
3412_wasmtime_trap_new_code.argtypes = [wasmtime_trap_code_t]
3413def wasmtime_trap_new_code(code: Any) -> ctypes._Pointer:
3414 return _wasmtime_trap_new_code(code) # type: ignore
3416_wasmtime_trap_code = dll.wasmtime_trap_code
3417_wasmtime_trap_code.restype = ctypes.c_bool
3418_wasmtime_trap_code.argtypes = [ctypes.POINTER(wasm_trap_t), ctypes.POINTER(wasmtime_trap_code_t)]
3419def wasmtime_trap_code(arg0: Any, code: Any) -> bool:
3420 return _wasmtime_trap_code(arg0, code) # type: ignore
3422_wasmtime_frame_func_name = dll.wasmtime_frame_func_name
3423_wasmtime_frame_func_name.restype = ctypes.POINTER(wasm_name_t)
3424_wasmtime_frame_func_name.argtypes = [ctypes.POINTER(wasm_frame_t)]
3425def wasmtime_frame_func_name(arg0: Any) -> ctypes._Pointer:
3426 return _wasmtime_frame_func_name(arg0) # type: ignore
3428_wasmtime_frame_module_name = dll.wasmtime_frame_module_name
3429_wasmtime_frame_module_name.restype = ctypes.POINTER(wasm_name_t)
3430_wasmtime_frame_module_name.argtypes = [ctypes.POINTER(wasm_frame_t)]
3431def wasmtime_frame_module_name(arg0: Any) -> ctypes._Pointer:
3432 return _wasmtime_frame_module_name(arg0) # type: ignore
3434_wasmtime_config_async_support_set = dll.wasmtime_config_async_support_set
3435_wasmtime_config_async_support_set.restype = None
3436_wasmtime_config_async_support_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3437def wasmtime_config_async_support_set(arg0: Any, arg1: Any) -> None:
3438 return _wasmtime_config_async_support_set(arg0, arg1) # type: ignore
3440_wasmtime_config_async_stack_size_set = dll.wasmtime_config_async_stack_size_set
3441_wasmtime_config_async_stack_size_set.restype = None
3442_wasmtime_config_async_stack_size_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_uint64]
3443def wasmtime_config_async_stack_size_set(arg0: Any, arg1: Any) -> None:
3444 return _wasmtime_config_async_stack_size_set(arg0, arg1) # type: ignore
3446_wasmtime_context_fuel_async_yield_interval = dll.wasmtime_context_fuel_async_yield_interval
3447_wasmtime_context_fuel_async_yield_interval.restype = ctypes.POINTER(wasmtime_error_t)
3448_wasmtime_context_fuel_async_yield_interval.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.c_uint64]
3449def wasmtime_context_fuel_async_yield_interval(context: Any, interval: Any) -> ctypes._Pointer:
3450 return _wasmtime_context_fuel_async_yield_interval(context, interval) # type: ignore
3452_wasmtime_context_epoch_deadline_async_yield_and_update = dll.wasmtime_context_epoch_deadline_async_yield_and_update
3453_wasmtime_context_epoch_deadline_async_yield_and_update.restype = ctypes.POINTER(wasmtime_error_t)
3454_wasmtime_context_epoch_deadline_async_yield_and_update.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.c_uint64]
3455def wasmtime_context_epoch_deadline_async_yield_and_update(context: Any, delta: Any) -> ctypes._Pointer:
3456 return _wasmtime_context_epoch_deadline_async_yield_and_update(context, delta) # type: ignore
3458wasmtime_func_async_continuation_callback_t = ctypes.CFUNCTYPE(ctypes.c_bool, ctypes.c_void_p)
3460class wasmtime_async_continuation_t(ctypes.Structure):
3461 _fields_ = [
3462 ("callback", wasmtime_func_async_continuation_callback_t),
3463 ("env", ctypes.c_void_p),
3464 ("finalizer", ctypes.CFUNCTYPE(None, ctypes.c_void_p)),
3465 ]
3466 callback: ctypes._Pointer
3467 env: ctypes._Pointer
3468 finalizer: ctypes._Pointer
3470wasmtime_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))
3472class wasmtime_call_future(ctypes.Structure):
3473 pass
3475wasmtime_call_future_t = wasmtime_call_future
3477_wasmtime_call_future_poll = dll.wasmtime_call_future_poll
3478_wasmtime_call_future_poll.restype = ctypes.c_bool
3479_wasmtime_call_future_poll.argtypes = [ctypes.POINTER(wasmtime_call_future_t)]
3480def wasmtime_call_future_poll(future: Any) -> bool:
3481 return _wasmtime_call_future_poll(future) # type: ignore
3483_wasmtime_call_future_delete = dll.wasmtime_call_future_delete
3484_wasmtime_call_future_delete.restype = None
3485_wasmtime_call_future_delete.argtypes = [ctypes.POINTER(wasmtime_call_future_t)]
3486def wasmtime_call_future_delete(future: Any) -> None:
3487 return _wasmtime_call_future_delete(future) # type: ignore
3489_wasmtime_func_call_async = dll.wasmtime_func_call_async
3490_wasmtime_func_call_async.restype = ctypes.POINTER(wasmtime_call_future_t)
3491_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))]
3492def wasmtime_func_call_async(context: Any, func: Any, args: Any, nargs: Any, results: Any, nresults: Any, trap_ret: Any, error_ret: Any) -> ctypes._Pointer:
3493 return _wasmtime_func_call_async(context, func, args, nargs, results, nresults, trap_ret, error_ret) # type: ignore
3495_wasmtime_linker_define_async_func = dll.wasmtime_linker_define_async_func
3496_wasmtime_linker_define_async_func.restype = ctypes.POINTER(wasmtime_error_t)
3497_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)]
3498def 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:
3499 return _wasmtime_linker_define_async_func(linker, module, module_len, name, name_len, ty, cb, data, finalizer) # type: ignore
3501_wasmtime_linker_instantiate_async = dll.wasmtime_linker_instantiate_async
3502_wasmtime_linker_instantiate_async.restype = ctypes.POINTER(wasmtime_call_future_t)
3503_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))]
3504def wasmtime_linker_instantiate_async(linker: Any, store: Any, module: Any, instance: Any, trap_ret: Any, error_ret: Any) -> ctypes._Pointer:
3505 return _wasmtime_linker_instantiate_async(linker, store, module, instance, trap_ret, error_ret) # type: ignore
3507_wasmtime_instance_pre_instantiate_async = dll.wasmtime_instance_pre_instantiate_async
3508_wasmtime_instance_pre_instantiate_async.restype = ctypes.POINTER(wasmtime_call_future_t)
3509_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))]
3510def wasmtime_instance_pre_instantiate_async(instance_pre: Any, store: Any, instance: Any, trap_ret: Any, error_ret: Any) -> ctypes._Pointer:
3511 return _wasmtime_instance_pre_instantiate_async(instance_pre, store, instance, trap_ret, error_ret) # type: ignore
3513wasmtime_stack_memory_get_callback_t = ctypes.CFUNCTYPE(ctypes.c_size_t, ctypes.c_void_p, ctypes.POINTER(ctypes.c_size_t))
3515class wasmtime_stack_memory(ctypes.Structure):
3516 _fields_ = [
3517 ("env", ctypes.c_void_p),
3518 ("get_stack_memory", wasmtime_stack_memory_get_callback_t),
3519 ("finalizer", ctypes.CFUNCTYPE(None, ctypes.c_void_p)),
3520 ]
3521 env: ctypes._Pointer
3522 get_stack_memory: ctypes._Pointer
3523 finalizer: ctypes._Pointer
3525wasmtime_stack_memory_t = wasmtime_stack_memory
3527wasmtime_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))
3529class wasmtime_stack_creator(ctypes.Structure):
3530 _fields_ = [
3531 ("env", ctypes.c_void_p),
3532 ("new_stack", wasmtime_new_stack_memory_callback_t),
3533 ("finalizer", ctypes.CFUNCTYPE(None, ctypes.c_void_p)),
3534 ]
3535 env: ctypes._Pointer
3536 new_stack: ctypes._Pointer
3537 finalizer: ctypes._Pointer
3539wasmtime_stack_creator_t = wasmtime_stack_creator
3541_wasmtime_config_host_stack_creator_set = dll.wasmtime_config_host_stack_creator_set
3542_wasmtime_config_host_stack_creator_set.restype = None
3543_wasmtime_config_host_stack_creator_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.POINTER(wasmtime_stack_creator_t)]
3544def wasmtime_config_host_stack_creator_set(arg0: Any, arg1: Any) -> None:
3545 return _wasmtime_config_host_stack_creator_set(arg0, arg1) # type: ignore
3547class wasmtime_component_resource_type(ctypes.Structure):
3548 pass
3550wasmtime_component_resource_type_t = wasmtime_component_resource_type
3552_wasmtime_component_resource_type_new_host = dll.wasmtime_component_resource_type_new_host
3553_wasmtime_component_resource_type_new_host.restype = ctypes.POINTER(wasmtime_component_resource_type_t)
3554_wasmtime_component_resource_type_new_host.argtypes = [ctypes.c_uint32]
3555def wasmtime_component_resource_type_new_host(ty: Any) -> ctypes._Pointer:
3556 return _wasmtime_component_resource_type_new_host(ty) # type: ignore
3558_wasmtime_component_resource_type_clone = dll.wasmtime_component_resource_type_clone
3559_wasmtime_component_resource_type_clone.restype = ctypes.POINTER(wasmtime_component_resource_type_t)
3560_wasmtime_component_resource_type_clone.argtypes = [ctypes.POINTER(wasmtime_component_resource_type_t)]
3561def wasmtime_component_resource_type_clone(ty: Any) -> ctypes._Pointer:
3562 return _wasmtime_component_resource_type_clone(ty) # type: ignore
3564_wasmtime_component_resource_type_equal = dll.wasmtime_component_resource_type_equal
3565_wasmtime_component_resource_type_equal.restype = ctypes.c_bool
3566_wasmtime_component_resource_type_equal.argtypes = [ctypes.POINTER(wasmtime_component_resource_type_t), ctypes.POINTER(wasmtime_component_resource_type_t)]
3567def wasmtime_component_resource_type_equal(a: Any, b: Any) -> bool:
3568 return _wasmtime_component_resource_type_equal(a, b) # type: ignore
3570_wasmtime_component_resource_type_delete = dll.wasmtime_component_resource_type_delete
3571_wasmtime_component_resource_type_delete.restype = None
3572_wasmtime_component_resource_type_delete.argtypes = [ctypes.POINTER(wasmtime_component_resource_type_t)]
3573def wasmtime_component_resource_type_delete(resource: Any) -> None:
3574 return _wasmtime_component_resource_type_delete(resource) # type: ignore
3576class wasmtime_component_valtype_t(ctypes.Structure):
3577 pass
3579class wasmtime_component_list_type(ctypes.Structure):
3580 pass
3582wasmtime_component_list_type_t = wasmtime_component_list_type
3584_wasmtime_component_list_type_clone = dll.wasmtime_component_list_type_clone
3585_wasmtime_component_list_type_clone.restype = ctypes.POINTER(wasmtime_component_list_type_t)
3586_wasmtime_component_list_type_clone.argtypes = [ctypes.POINTER(wasmtime_component_list_type_t)]
3587def wasmtime_component_list_type_clone(ty: Any) -> ctypes._Pointer:
3588 return _wasmtime_component_list_type_clone(ty) # type: ignore
3590_wasmtime_component_list_type_equal = dll.wasmtime_component_list_type_equal
3591_wasmtime_component_list_type_equal.restype = ctypes.c_bool
3592_wasmtime_component_list_type_equal.argtypes = [ctypes.POINTER(wasmtime_component_list_type_t), ctypes.POINTER(wasmtime_component_list_type_t)]
3593def wasmtime_component_list_type_equal(a: Any, b: Any) -> bool:
3594 return _wasmtime_component_list_type_equal(a, b) # type: ignore
3596_wasmtime_component_list_type_delete = dll.wasmtime_component_list_type_delete
3597_wasmtime_component_list_type_delete.restype = None
3598_wasmtime_component_list_type_delete.argtypes = [ctypes.POINTER(wasmtime_component_list_type_t)]
3599def wasmtime_component_list_type_delete(ptr: Any) -> None:
3600 return _wasmtime_component_list_type_delete(ptr) # type: ignore
3602_wasmtime_component_list_type_element = dll.wasmtime_component_list_type_element
3603_wasmtime_component_list_type_element.restype = None
3604_wasmtime_component_list_type_element.argtypes = [ctypes.POINTER(wasmtime_component_list_type_t), ctypes.POINTER(wasmtime_component_valtype_t)]
3605def wasmtime_component_list_type_element(ty: Any, type_ret: Any) -> None:
3606 return _wasmtime_component_list_type_element(ty, type_ret) # type: ignore
3608class wasmtime_component_record_type(ctypes.Structure):
3609 pass
3611wasmtime_component_record_type_t = wasmtime_component_record_type
3613_wasmtime_component_record_type_clone = dll.wasmtime_component_record_type_clone
3614_wasmtime_component_record_type_clone.restype = ctypes.POINTER(wasmtime_component_record_type_t)
3615_wasmtime_component_record_type_clone.argtypes = [ctypes.POINTER(wasmtime_component_record_type_t)]
3616def wasmtime_component_record_type_clone(ty: Any) -> ctypes._Pointer:
3617 return _wasmtime_component_record_type_clone(ty) # type: ignore
3619_wasmtime_component_record_type_equal = dll.wasmtime_component_record_type_equal
3620_wasmtime_component_record_type_equal.restype = ctypes.c_bool
3621_wasmtime_component_record_type_equal.argtypes = [ctypes.POINTER(wasmtime_component_record_type_t), ctypes.POINTER(wasmtime_component_record_type_t)]
3622def wasmtime_component_record_type_equal(a: Any, b: Any) -> bool:
3623 return _wasmtime_component_record_type_equal(a, b) # type: ignore
3625_wasmtime_component_record_type_delete = dll.wasmtime_component_record_type_delete
3626_wasmtime_component_record_type_delete.restype = None
3627_wasmtime_component_record_type_delete.argtypes = [ctypes.POINTER(wasmtime_component_record_type_t)]
3628def wasmtime_component_record_type_delete(ptr: Any) -> None:
3629 return _wasmtime_component_record_type_delete(ptr) # type: ignore
3631_wasmtime_component_record_type_field_count = dll.wasmtime_component_record_type_field_count
3632_wasmtime_component_record_type_field_count.restype = ctypes.c_size_t
3633_wasmtime_component_record_type_field_count.argtypes = [ctypes.POINTER(wasmtime_component_record_type_t)]
3634def wasmtime_component_record_type_field_count(ty: Any) -> int:
3635 return _wasmtime_component_record_type_field_count(ty) # type: ignore
3637_wasmtime_component_record_type_field_nth = dll.wasmtime_component_record_type_field_nth
3638_wasmtime_component_record_type_field_nth.restype = ctypes.c_bool
3639_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)]
3640def wasmtime_component_record_type_field_nth(ty: Any, nth: Any, name_ret: Any, name_len_ret: Any, type_ret: Any) -> bool:
3641 return _wasmtime_component_record_type_field_nth(ty, nth, name_ret, name_len_ret, type_ret) # type: ignore
3643class wasmtime_component_tuple_type(ctypes.Structure):
3644 pass
3646wasmtime_component_tuple_type_t = wasmtime_component_tuple_type
3648_wasmtime_component_tuple_type_clone = dll.wasmtime_component_tuple_type_clone
3649_wasmtime_component_tuple_type_clone.restype = ctypes.POINTER(wasmtime_component_tuple_type_t)
3650_wasmtime_component_tuple_type_clone.argtypes = [ctypes.POINTER(wasmtime_component_tuple_type_t)]
3651def wasmtime_component_tuple_type_clone(ty: Any) -> ctypes._Pointer:
3652 return _wasmtime_component_tuple_type_clone(ty) # type: ignore
3654_wasmtime_component_tuple_type_equal = dll.wasmtime_component_tuple_type_equal
3655_wasmtime_component_tuple_type_equal.restype = ctypes.c_bool
3656_wasmtime_component_tuple_type_equal.argtypes = [ctypes.POINTER(wasmtime_component_tuple_type_t), ctypes.POINTER(wasmtime_component_tuple_type_t)]
3657def wasmtime_component_tuple_type_equal(a: Any, b: Any) -> bool:
3658 return _wasmtime_component_tuple_type_equal(a, b) # type: ignore
3660_wasmtime_component_tuple_type_delete = dll.wasmtime_component_tuple_type_delete
3661_wasmtime_component_tuple_type_delete.restype = None
3662_wasmtime_component_tuple_type_delete.argtypes = [ctypes.POINTER(wasmtime_component_tuple_type_t)]
3663def wasmtime_component_tuple_type_delete(ptr: Any) -> None:
3664 return _wasmtime_component_tuple_type_delete(ptr) # type: ignore
3666_wasmtime_component_tuple_type_types_count = dll.wasmtime_component_tuple_type_types_count
3667_wasmtime_component_tuple_type_types_count.restype = ctypes.c_size_t
3668_wasmtime_component_tuple_type_types_count.argtypes = [ctypes.POINTER(wasmtime_component_tuple_type_t)]
3669def wasmtime_component_tuple_type_types_count(ty: Any) -> int:
3670 return _wasmtime_component_tuple_type_types_count(ty) # type: ignore
3672_wasmtime_component_tuple_type_types_nth = dll.wasmtime_component_tuple_type_types_nth
3673_wasmtime_component_tuple_type_types_nth.restype = ctypes.c_bool
3674_wasmtime_component_tuple_type_types_nth.argtypes = [ctypes.POINTER(wasmtime_component_tuple_type_t), ctypes.c_size_t, ctypes.POINTER(wasmtime_component_valtype_t)]
3675def wasmtime_component_tuple_type_types_nth(ty: Any, nth: Any, type_ret: Any) -> bool:
3676 return _wasmtime_component_tuple_type_types_nth(ty, nth, type_ret) # type: ignore
3678class wasmtime_component_variant_type(ctypes.Structure):
3679 pass
3681wasmtime_component_variant_type_t = wasmtime_component_variant_type
3683_wasmtime_component_variant_type_clone = dll.wasmtime_component_variant_type_clone
3684_wasmtime_component_variant_type_clone.restype = ctypes.POINTER(wasmtime_component_variant_type_t)
3685_wasmtime_component_variant_type_clone.argtypes = [ctypes.POINTER(wasmtime_component_variant_type_t)]
3686def wasmtime_component_variant_type_clone(ty: Any) -> ctypes._Pointer:
3687 return _wasmtime_component_variant_type_clone(ty) # type: ignore
3689_wasmtime_component_variant_type_equal = dll.wasmtime_component_variant_type_equal
3690_wasmtime_component_variant_type_equal.restype = ctypes.c_bool
3691_wasmtime_component_variant_type_equal.argtypes = [ctypes.POINTER(wasmtime_component_variant_type_t), ctypes.POINTER(wasmtime_component_variant_type_t)]
3692def wasmtime_component_variant_type_equal(a: Any, b: Any) -> bool:
3693 return _wasmtime_component_variant_type_equal(a, b) # type: ignore
3695_wasmtime_component_variant_type_delete = dll.wasmtime_component_variant_type_delete
3696_wasmtime_component_variant_type_delete.restype = None
3697_wasmtime_component_variant_type_delete.argtypes = [ctypes.POINTER(wasmtime_component_variant_type_t)]
3698def wasmtime_component_variant_type_delete(ptr: Any) -> None:
3699 return _wasmtime_component_variant_type_delete(ptr) # type: ignore
3701_wasmtime_component_variant_type_case_count = dll.wasmtime_component_variant_type_case_count
3702_wasmtime_component_variant_type_case_count.restype = ctypes.c_size_t
3703_wasmtime_component_variant_type_case_count.argtypes = [ctypes.POINTER(wasmtime_component_variant_type_t)]
3704def wasmtime_component_variant_type_case_count(ty: Any) -> int:
3705 return _wasmtime_component_variant_type_case_count(ty) # type: ignore
3707_wasmtime_component_variant_type_case_nth = dll.wasmtime_component_variant_type_case_nth
3708_wasmtime_component_variant_type_case_nth.restype = ctypes.c_bool
3709_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)]
3710def 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:
3711 return _wasmtime_component_variant_type_case_nth(ty, nth, name_ret, name_len_ret, has_payload_ret, payload_ret) # type: ignore
3713class wasmtime_component_enum_type(ctypes.Structure):
3714 pass
3716wasmtime_component_enum_type_t = wasmtime_component_enum_type
3718_wasmtime_component_enum_type_clone = dll.wasmtime_component_enum_type_clone
3719_wasmtime_component_enum_type_clone.restype = ctypes.POINTER(wasmtime_component_enum_type_t)
3720_wasmtime_component_enum_type_clone.argtypes = [ctypes.POINTER(wasmtime_component_enum_type_t)]
3721def wasmtime_component_enum_type_clone(ty: Any) -> ctypes._Pointer:
3722 return _wasmtime_component_enum_type_clone(ty) # type: ignore
3724_wasmtime_component_enum_type_equal = dll.wasmtime_component_enum_type_equal
3725_wasmtime_component_enum_type_equal.restype = ctypes.c_bool
3726_wasmtime_component_enum_type_equal.argtypes = [ctypes.POINTER(wasmtime_component_enum_type_t), ctypes.POINTER(wasmtime_component_enum_type_t)]
3727def wasmtime_component_enum_type_equal(a: Any, b: Any) -> bool:
3728 return _wasmtime_component_enum_type_equal(a, b) # type: ignore
3730_wasmtime_component_enum_type_delete = dll.wasmtime_component_enum_type_delete
3731_wasmtime_component_enum_type_delete.restype = None
3732_wasmtime_component_enum_type_delete.argtypes = [ctypes.POINTER(wasmtime_component_enum_type_t)]
3733def wasmtime_component_enum_type_delete(ptr: Any) -> None:
3734 return _wasmtime_component_enum_type_delete(ptr) # type: ignore
3736_wasmtime_component_enum_type_names_count = dll.wasmtime_component_enum_type_names_count
3737_wasmtime_component_enum_type_names_count.restype = ctypes.c_size_t
3738_wasmtime_component_enum_type_names_count.argtypes = [ctypes.POINTER(wasmtime_component_enum_type_t)]
3739def wasmtime_component_enum_type_names_count(ty: Any) -> int:
3740 return _wasmtime_component_enum_type_names_count(ty) # type: ignore
3742_wasmtime_component_enum_type_names_nth = dll.wasmtime_component_enum_type_names_nth
3743_wasmtime_component_enum_type_names_nth.restype = ctypes.c_bool
3744_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)]
3745def wasmtime_component_enum_type_names_nth(ty: Any, nth: Any, name_ret: Any, name_len_ret: Any) -> bool:
3746 return _wasmtime_component_enum_type_names_nth(ty, nth, name_ret, name_len_ret) # type: ignore
3748class wasmtime_component_option_type(ctypes.Structure):
3749 pass
3751wasmtime_component_option_type_t = wasmtime_component_option_type
3753_wasmtime_component_option_type_clone = dll.wasmtime_component_option_type_clone
3754_wasmtime_component_option_type_clone.restype = ctypes.POINTER(wasmtime_component_option_type_t)
3755_wasmtime_component_option_type_clone.argtypes = [ctypes.POINTER(wasmtime_component_option_type_t)]
3756def wasmtime_component_option_type_clone(ty: Any) -> ctypes._Pointer:
3757 return _wasmtime_component_option_type_clone(ty) # type: ignore
3759_wasmtime_component_option_type_equal = dll.wasmtime_component_option_type_equal
3760_wasmtime_component_option_type_equal.restype = ctypes.c_bool
3761_wasmtime_component_option_type_equal.argtypes = [ctypes.POINTER(wasmtime_component_option_type_t), ctypes.POINTER(wasmtime_component_option_type_t)]
3762def wasmtime_component_option_type_equal(a: Any, b: Any) -> bool:
3763 return _wasmtime_component_option_type_equal(a, b) # type: ignore
3765_wasmtime_component_option_type_delete = dll.wasmtime_component_option_type_delete
3766_wasmtime_component_option_type_delete.restype = None
3767_wasmtime_component_option_type_delete.argtypes = [ctypes.POINTER(wasmtime_component_option_type_t)]
3768def wasmtime_component_option_type_delete(ptr: Any) -> None:
3769 return _wasmtime_component_option_type_delete(ptr) # type: ignore
3771_wasmtime_component_option_type_ty = dll.wasmtime_component_option_type_ty
3772_wasmtime_component_option_type_ty.restype = None
3773_wasmtime_component_option_type_ty.argtypes = [ctypes.POINTER(wasmtime_component_option_type_t), ctypes.POINTER(wasmtime_component_valtype_t)]
3774def wasmtime_component_option_type_ty(ty: Any, type_ret: Any) -> None:
3775 return _wasmtime_component_option_type_ty(ty, type_ret) # type: ignore
3777class wasmtime_component_result_type(ctypes.Structure):
3778 pass
3780wasmtime_component_result_type_t = wasmtime_component_result_type
3782_wasmtime_component_result_type_clone = dll.wasmtime_component_result_type_clone
3783_wasmtime_component_result_type_clone.restype = ctypes.POINTER(wasmtime_component_result_type_t)
3784_wasmtime_component_result_type_clone.argtypes = [ctypes.POINTER(wasmtime_component_result_type_t)]
3785def wasmtime_component_result_type_clone(ty: Any) -> ctypes._Pointer:
3786 return _wasmtime_component_result_type_clone(ty) # type: ignore
3788_wasmtime_component_result_type_equal = dll.wasmtime_component_result_type_equal
3789_wasmtime_component_result_type_equal.restype = ctypes.c_bool
3790_wasmtime_component_result_type_equal.argtypes = [ctypes.POINTER(wasmtime_component_result_type_t), ctypes.POINTER(wasmtime_component_result_type_t)]
3791def wasmtime_component_result_type_equal(a: Any, b: Any) -> bool:
3792 return _wasmtime_component_result_type_equal(a, b) # type: ignore
3794_wasmtime_component_result_type_delete = dll.wasmtime_component_result_type_delete
3795_wasmtime_component_result_type_delete.restype = None
3796_wasmtime_component_result_type_delete.argtypes = [ctypes.POINTER(wasmtime_component_result_type_t)]
3797def wasmtime_component_result_type_delete(ptr: Any) -> None:
3798 return _wasmtime_component_result_type_delete(ptr) # type: ignore
3800_wasmtime_component_result_type_ok = dll.wasmtime_component_result_type_ok
3801_wasmtime_component_result_type_ok.restype = ctypes.c_bool
3802_wasmtime_component_result_type_ok.argtypes = [ctypes.POINTER(wasmtime_component_result_type_t), ctypes.POINTER(wasmtime_component_valtype_t)]
3803def wasmtime_component_result_type_ok(ty: Any, type_ret: Any) -> bool:
3804 return _wasmtime_component_result_type_ok(ty, type_ret) # type: ignore
3806_wasmtime_component_result_type_err = dll.wasmtime_component_result_type_err
3807_wasmtime_component_result_type_err.restype = ctypes.c_bool
3808_wasmtime_component_result_type_err.argtypes = [ctypes.POINTER(wasmtime_component_result_type_t), ctypes.POINTER(wasmtime_component_valtype_t)]
3809def wasmtime_component_result_type_err(ty: Any, type_ret: Any) -> bool:
3810 return _wasmtime_component_result_type_err(ty, type_ret) # type: ignore
3812class wasmtime_component_flags_type(ctypes.Structure):
3813 pass
3815wasmtime_component_flags_type_t = wasmtime_component_flags_type
3817_wasmtime_component_flags_type_clone = dll.wasmtime_component_flags_type_clone
3818_wasmtime_component_flags_type_clone.restype = ctypes.POINTER(wasmtime_component_flags_type_t)
3819_wasmtime_component_flags_type_clone.argtypes = [ctypes.POINTER(wasmtime_component_flags_type_t)]
3820def wasmtime_component_flags_type_clone(ty: Any) -> ctypes._Pointer:
3821 return _wasmtime_component_flags_type_clone(ty) # type: ignore
3823_wasmtime_component_flags_type_equal = dll.wasmtime_component_flags_type_equal
3824_wasmtime_component_flags_type_equal.restype = ctypes.c_bool
3825_wasmtime_component_flags_type_equal.argtypes = [ctypes.POINTER(wasmtime_component_flags_type_t), ctypes.POINTER(wasmtime_component_flags_type_t)]
3826def wasmtime_component_flags_type_equal(a: Any, b: Any) -> bool:
3827 return _wasmtime_component_flags_type_equal(a, b) # type: ignore
3829_wasmtime_component_flags_type_delete = dll.wasmtime_component_flags_type_delete
3830_wasmtime_component_flags_type_delete.restype = None
3831_wasmtime_component_flags_type_delete.argtypes = [ctypes.POINTER(wasmtime_component_flags_type_t)]
3832def wasmtime_component_flags_type_delete(ptr: Any) -> None:
3833 return _wasmtime_component_flags_type_delete(ptr) # type: ignore
3835_wasmtime_component_flags_type_names_count = dll.wasmtime_component_flags_type_names_count
3836_wasmtime_component_flags_type_names_count.restype = ctypes.c_size_t
3837_wasmtime_component_flags_type_names_count.argtypes = [ctypes.POINTER(wasmtime_component_flags_type_t)]
3838def wasmtime_component_flags_type_names_count(ty: Any) -> int:
3839 return _wasmtime_component_flags_type_names_count(ty) # type: ignore
3841_wasmtime_component_flags_type_names_nth = dll.wasmtime_component_flags_type_names_nth
3842_wasmtime_component_flags_type_names_nth.restype = ctypes.c_bool
3843_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)]
3844def wasmtime_component_flags_type_names_nth(ty: Any, nth: Any, name_ret: Any, name_len_ret: Any) -> bool:
3845 return _wasmtime_component_flags_type_names_nth(ty, nth, name_ret, name_len_ret) # type: ignore
3847class wasmtime_component_future_type(ctypes.Structure):
3848 pass
3850wasmtime_component_future_type_t = wasmtime_component_future_type
3852_wasmtime_component_future_type_clone = dll.wasmtime_component_future_type_clone
3853_wasmtime_component_future_type_clone.restype = ctypes.POINTER(wasmtime_component_future_type_t)
3854_wasmtime_component_future_type_clone.argtypes = [ctypes.POINTER(wasmtime_component_future_type_t)]
3855def wasmtime_component_future_type_clone(ty: Any) -> ctypes._Pointer:
3856 return _wasmtime_component_future_type_clone(ty) # type: ignore
3858_wasmtime_component_future_type_equal = dll.wasmtime_component_future_type_equal
3859_wasmtime_component_future_type_equal.restype = ctypes.c_bool
3860_wasmtime_component_future_type_equal.argtypes = [ctypes.POINTER(wasmtime_component_future_type_t), ctypes.POINTER(wasmtime_component_future_type_t)]
3861def wasmtime_component_future_type_equal(a: Any, b: Any) -> bool:
3862 return _wasmtime_component_future_type_equal(a, b) # type: ignore
3864_wasmtime_component_future_type_delete = dll.wasmtime_component_future_type_delete
3865_wasmtime_component_future_type_delete.restype = None
3866_wasmtime_component_future_type_delete.argtypes = [ctypes.POINTER(wasmtime_component_future_type_t)]
3867def wasmtime_component_future_type_delete(ptr: Any) -> None:
3868 return _wasmtime_component_future_type_delete(ptr) # type: ignore
3870_wasmtime_component_future_type_ty = dll.wasmtime_component_future_type_ty
3871_wasmtime_component_future_type_ty.restype = ctypes.c_bool
3872_wasmtime_component_future_type_ty.argtypes = [ctypes.POINTER(wasmtime_component_future_type_t), ctypes.POINTER(wasmtime_component_valtype_t)]
3873def wasmtime_component_future_type_ty(ty: Any, type_ret: Any) -> bool:
3874 return _wasmtime_component_future_type_ty(ty, type_ret) # type: ignore
3876class wasmtime_component_stream_type(ctypes.Structure):
3877 pass
3879wasmtime_component_stream_type_t = wasmtime_component_stream_type
3881_wasmtime_component_stream_type_clone = dll.wasmtime_component_stream_type_clone
3882_wasmtime_component_stream_type_clone.restype = ctypes.POINTER(wasmtime_component_stream_type_t)
3883_wasmtime_component_stream_type_clone.argtypes = [ctypes.POINTER(wasmtime_component_stream_type_t)]
3884def wasmtime_component_stream_type_clone(ty: Any) -> ctypes._Pointer:
3885 return _wasmtime_component_stream_type_clone(ty) # type: ignore
3887_wasmtime_component_stream_type_equal = dll.wasmtime_component_stream_type_equal
3888_wasmtime_component_stream_type_equal.restype = ctypes.c_bool
3889_wasmtime_component_stream_type_equal.argtypes = [ctypes.POINTER(wasmtime_component_stream_type_t), ctypes.POINTER(wasmtime_component_stream_type_t)]
3890def wasmtime_component_stream_type_equal(a: Any, b: Any) -> bool:
3891 return _wasmtime_component_stream_type_equal(a, b) # type: ignore
3893_wasmtime_component_stream_type_delete = dll.wasmtime_component_stream_type_delete
3894_wasmtime_component_stream_type_delete.restype = None
3895_wasmtime_component_stream_type_delete.argtypes = [ctypes.POINTER(wasmtime_component_stream_type_t)]
3896def wasmtime_component_stream_type_delete(ptr: Any) -> None:
3897 return _wasmtime_component_stream_type_delete(ptr) # type: ignore
3899_wasmtime_component_stream_type_ty = dll.wasmtime_component_stream_type_ty
3900_wasmtime_component_stream_type_ty.restype = ctypes.c_bool
3901_wasmtime_component_stream_type_ty.argtypes = [ctypes.POINTER(wasmtime_component_stream_type_t), ctypes.POINTER(wasmtime_component_valtype_t)]
3902def wasmtime_component_stream_type_ty(ty: Any, type_ret: Any) -> bool:
3903 return _wasmtime_component_stream_type_ty(ty, type_ret) # type: ignore
3905wasmtime_component_valtype_kind_t = ctypes.c_uint8
3907class wasmtime_component_valtype_union(ctypes.Union):
3908 _fields_ = [
3909 ("list", ctypes.POINTER(wasmtime_component_list_type_t)),
3910 ("record", ctypes.POINTER(wasmtime_component_record_type_t)),
3911 ("tuple", ctypes.POINTER(wasmtime_component_tuple_type_t)),
3912 ("variant", ctypes.POINTER(wasmtime_component_variant_type_t)),
3913 ("enum_", ctypes.POINTER(wasmtime_component_enum_type_t)),
3914 ("option", ctypes.POINTER(wasmtime_component_option_type_t)),
3915 ("result", ctypes.POINTER(wasmtime_component_result_type_t)),
3916 ("flags", ctypes.POINTER(wasmtime_component_flags_type_t)),
3917 ("own", ctypes.POINTER(wasmtime_component_resource_type_t)),
3918 ("borrow", ctypes.POINTER(wasmtime_component_resource_type_t)),
3919 ("future", ctypes.POINTER(wasmtime_component_future_type_t)),
3920 ("stream", ctypes.POINTER(wasmtime_component_stream_type_t)),
3921 ]
3922 list: ctypes._Pointer
3923 record: ctypes._Pointer
3924 tuple: ctypes._Pointer
3925 variant: ctypes._Pointer
3926 enum_: ctypes._Pointer
3927 option: ctypes._Pointer
3928 result: ctypes._Pointer
3929 flags: ctypes._Pointer
3930 own: ctypes._Pointer
3931 borrow: ctypes._Pointer
3932 future: ctypes._Pointer
3933 stream: ctypes._Pointer
3935wasmtime_component_valtype_union_t = wasmtime_component_valtype_union
3937wasmtime_component_valtype_t._fields_ = [
3938 ("kind", wasmtime_component_valtype_kind_t),
3939 ("of", wasmtime_component_valtype_union_t),
3940 ]
3942_wasmtime_component_valtype_clone = dll.wasmtime_component_valtype_clone
3943_wasmtime_component_valtype_clone.restype = None
3944_wasmtime_component_valtype_clone.argtypes = [ctypes.POINTER(wasmtime_component_valtype_t), ctypes.POINTER(wasmtime_component_valtype_t)]
3945def wasmtime_component_valtype_clone(ty: Any, out: Any) -> None:
3946 return _wasmtime_component_valtype_clone(ty, out) # type: ignore
3948_wasmtime_component_valtype_equal = dll.wasmtime_component_valtype_equal
3949_wasmtime_component_valtype_equal.restype = ctypes.c_bool
3950_wasmtime_component_valtype_equal.argtypes = [ctypes.POINTER(wasmtime_component_valtype_t), ctypes.POINTER(wasmtime_component_valtype_t)]
3951def wasmtime_component_valtype_equal(a: Any, b: Any) -> bool:
3952 return _wasmtime_component_valtype_equal(a, b) # type: ignore
3954_wasmtime_component_valtype_delete = dll.wasmtime_component_valtype_delete
3955_wasmtime_component_valtype_delete.restype = None
3956_wasmtime_component_valtype_delete.argtypes = [ctypes.POINTER(wasmtime_component_valtype_t)]
3957def wasmtime_component_valtype_delete(ptr: Any) -> None:
3958 return _wasmtime_component_valtype_delete(ptr) # type: ignore
3960class wasmtime_component_func_type_t(ctypes.Structure):
3961 pass
3963_wasmtime_component_func_type_clone = dll.wasmtime_component_func_type_clone
3964_wasmtime_component_func_type_clone.restype = ctypes.POINTER(wasmtime_component_func_type_t)
3965_wasmtime_component_func_type_clone.argtypes = [ctypes.POINTER(wasmtime_component_func_type_t)]
3966def wasmtime_component_func_type_clone(ty: Any) -> ctypes._Pointer:
3967 return _wasmtime_component_func_type_clone(ty) # type: ignore
3969_wasmtime_component_func_type_delete = dll.wasmtime_component_func_type_delete
3970_wasmtime_component_func_type_delete.restype = None
3971_wasmtime_component_func_type_delete.argtypes = [ctypes.POINTER(wasmtime_component_func_type_t)]
3972def wasmtime_component_func_type_delete(ty: Any) -> None:
3973 return _wasmtime_component_func_type_delete(ty) # type: ignore
3975_wasmtime_component_func_type_async = dll.wasmtime_component_func_type_async
3976_wasmtime_component_func_type_async.restype = ctypes.c_bool
3977_wasmtime_component_func_type_async.argtypes = [ctypes.POINTER(wasmtime_component_func_type_t)]
3978def wasmtime_component_func_type_async(ty: Any) -> bool:
3979 return _wasmtime_component_func_type_async(ty) # type: ignore
3981_wasmtime_component_func_type_param_count = dll.wasmtime_component_func_type_param_count
3982_wasmtime_component_func_type_param_count.restype = ctypes.c_size_t
3983_wasmtime_component_func_type_param_count.argtypes = [ctypes.POINTER(wasmtime_component_func_type_t)]
3984def wasmtime_component_func_type_param_count(ty: Any) -> int:
3985 return _wasmtime_component_func_type_param_count(ty) # type: ignore
3987_wasmtime_component_func_type_param_nth = dll.wasmtime_component_func_type_param_nth
3988_wasmtime_component_func_type_param_nth.restype = ctypes.c_bool
3989_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)]
3990def wasmtime_component_func_type_param_nth(ty: Any, nth: Any, name_ret: Any, name_len_ret: Any, type_ret: Any) -> bool:
3991 return _wasmtime_component_func_type_param_nth(ty, nth, name_ret, name_len_ret, type_ret) # type: ignore
3993_wasmtime_component_func_type_result = dll.wasmtime_component_func_type_result
3994_wasmtime_component_func_type_result.restype = ctypes.c_bool
3995_wasmtime_component_func_type_result.argtypes = [ctypes.POINTER(wasmtime_component_func_type_t), ctypes.POINTER(wasmtime_component_valtype_t)]
3996def wasmtime_component_func_type_result(ty: Any, type_ret: Any) -> bool:
3997 return _wasmtime_component_func_type_result(ty, type_ret) # type: ignore
3999class wasmtime_component_item_t(ctypes.Structure):
4000 pass
4002class wasmtime_component_instance_type(ctypes.Structure):
4003 pass
4005wasmtime_component_instance_type_t = wasmtime_component_instance_type
4007_wasmtime_component_instance_type_clone = dll.wasmtime_component_instance_type_clone
4008_wasmtime_component_instance_type_clone.restype = ctypes.POINTER(wasmtime_component_instance_type_t)
4009_wasmtime_component_instance_type_clone.argtypes = [ctypes.POINTER(wasmtime_component_instance_type_t)]
4010def wasmtime_component_instance_type_clone(ty: Any) -> ctypes._Pointer:
4011 return _wasmtime_component_instance_type_clone(ty) # type: ignore
4013_wasmtime_component_instance_type_delete = dll.wasmtime_component_instance_type_delete
4014_wasmtime_component_instance_type_delete.restype = None
4015_wasmtime_component_instance_type_delete.argtypes = [ctypes.POINTER(wasmtime_component_instance_type_t)]
4016def wasmtime_component_instance_type_delete(ty: Any) -> None:
4017 return _wasmtime_component_instance_type_delete(ty) # type: ignore
4019_wasmtime_component_instance_type_export_count = dll.wasmtime_component_instance_type_export_count
4020_wasmtime_component_instance_type_export_count.restype = ctypes.c_size_t
4021_wasmtime_component_instance_type_export_count.argtypes = [ctypes.POINTER(wasmtime_component_instance_type_t), ctypes.POINTER(wasm_engine_t)]
4022def wasmtime_component_instance_type_export_count(ty: Any, engine: Any) -> int:
4023 return _wasmtime_component_instance_type_export_count(ty, engine) # type: ignore
4025_wasmtime_component_instance_type_export_get = dll.wasmtime_component_instance_type_export_get
4026_wasmtime_component_instance_type_export_get.restype = ctypes.c_bool
4027_wasmtime_component_instance_type_export_get.argtypes = [ctypes.POINTER(wasmtime_component_instance_type_t), ctypes.POINTER(wasm_engine_t), ctypes.POINTER(ctypes.c_char), ctypes.c_size_t, ctypes.POINTER(wasmtime_component_item_t)]
4028def wasmtime_component_instance_type_export_get(ty: Any, engine: Any, name: Any, name_len: Any, ret: Any) -> bool:
4029 return _wasmtime_component_instance_type_export_get(ty, engine, name, name_len, ret) # type: ignore
4031_wasmtime_component_instance_type_export_nth = dll.wasmtime_component_instance_type_export_nth
4032_wasmtime_component_instance_type_export_nth.restype = ctypes.c_bool
4033_wasmtime_component_instance_type_export_nth.argtypes = [ctypes.POINTER(wasmtime_component_instance_type_t), ctypes.POINTER(wasm_engine_t), ctypes.c_size_t, ctypes.POINTER(ctypes.POINTER(ctypes.c_char)), ctypes.POINTER(ctypes.c_size_t), ctypes.POINTER(wasmtime_component_item_t)]
4034def wasmtime_component_instance_type_export_nth(ty: Any, engine: Any, nth: Any, name_ret: Any, name_len_ret: Any, type_ret: Any) -> bool:
4035 return _wasmtime_component_instance_type_export_nth(ty, engine, nth, name_ret, name_len_ret, type_ret) # type: ignore
4037class wasmtime_module_type(ctypes.Structure):
4038 pass
4040wasmtime_module_type_t = wasmtime_module_type
4042_wasmtime_module_type_clone = dll.wasmtime_module_type_clone
4043_wasmtime_module_type_clone.restype = ctypes.POINTER(wasmtime_module_type_t)
4044_wasmtime_module_type_clone.argtypes = [ctypes.POINTER(wasmtime_module_type_t)]
4045def wasmtime_module_type_clone(ty: Any) -> ctypes._Pointer:
4046 return _wasmtime_module_type_clone(ty) # type: ignore
4048_wasmtime_module_type_delete = dll.wasmtime_module_type_delete
4049_wasmtime_module_type_delete.restype = None
4050_wasmtime_module_type_delete.argtypes = [ctypes.POINTER(wasmtime_module_type_t)]
4051def wasmtime_module_type_delete(ty: Any) -> None:
4052 return _wasmtime_module_type_delete(ty) # type: ignore
4054_wasmtime_module_type_import_count = dll.wasmtime_module_type_import_count
4055_wasmtime_module_type_import_count.restype = ctypes.c_size_t
4056_wasmtime_module_type_import_count.argtypes = [ctypes.POINTER(wasmtime_module_type_t), ctypes.POINTER(wasm_engine_t)]
4057def wasmtime_module_type_import_count(ty: Any, engine: Any) -> int:
4058 return _wasmtime_module_type_import_count(ty, engine) # type: ignore
4060_wasmtime_module_type_import_nth = dll.wasmtime_module_type_import_nth
4061_wasmtime_module_type_import_nth.restype = ctypes.POINTER(wasm_importtype_t)
4062_wasmtime_module_type_import_nth.argtypes = [ctypes.POINTER(wasmtime_module_type_t), ctypes.POINTER(wasm_engine_t), ctypes.c_size_t]
4063def wasmtime_module_type_import_nth(ty: Any, engine: Any, nth: Any) -> ctypes._Pointer:
4064 return _wasmtime_module_type_import_nth(ty, engine, nth) # type: ignore
4066_wasmtime_module_type_export_count = dll.wasmtime_module_type_export_count
4067_wasmtime_module_type_export_count.restype = ctypes.c_size_t
4068_wasmtime_module_type_export_count.argtypes = [ctypes.POINTER(wasmtime_module_type_t), ctypes.POINTER(wasm_engine_t)]
4069def wasmtime_module_type_export_count(ty: Any, engine: Any) -> int:
4070 return _wasmtime_module_type_export_count(ty, engine) # type: ignore
4072_wasmtime_module_type_export_nth = dll.wasmtime_module_type_export_nth
4073_wasmtime_module_type_export_nth.restype = ctypes.POINTER(wasm_exporttype_t)
4074_wasmtime_module_type_export_nth.argtypes = [ctypes.POINTER(wasmtime_module_type_t), ctypes.POINTER(wasm_engine_t), ctypes.c_size_t]
4075def wasmtime_module_type_export_nth(ty: Any, engine: Any, nth: Any) -> ctypes._Pointer:
4076 return _wasmtime_module_type_export_nth(ty, engine, nth) # type: ignore
4078class wasmtime_component_type_t(ctypes.Structure):
4079 pass
4081_wasmtime_component_type_clone = dll.wasmtime_component_type_clone
4082_wasmtime_component_type_clone.restype = ctypes.POINTER(wasmtime_component_type_t)
4083_wasmtime_component_type_clone.argtypes = [ctypes.POINTER(wasmtime_component_type_t)]
4084def wasmtime_component_type_clone(ty: Any) -> ctypes._Pointer:
4085 return _wasmtime_component_type_clone(ty) # type: ignore
4087_wasmtime_component_type_delete = dll.wasmtime_component_type_delete
4088_wasmtime_component_type_delete.restype = None
4089_wasmtime_component_type_delete.argtypes = [ctypes.POINTER(wasmtime_component_type_t)]
4090def wasmtime_component_type_delete(ty: Any) -> None:
4091 return _wasmtime_component_type_delete(ty) # type: ignore
4093_wasmtime_component_type_import_count = dll.wasmtime_component_type_import_count
4094_wasmtime_component_type_import_count.restype = ctypes.c_size_t
4095_wasmtime_component_type_import_count.argtypes = [ctypes.POINTER(wasmtime_component_type_t), ctypes.POINTER(wasm_engine_t)]
4096def wasmtime_component_type_import_count(ty: Any, engine: Any) -> int:
4097 return _wasmtime_component_type_import_count(ty, engine) # type: ignore
4099_wasmtime_component_type_import_get = dll.wasmtime_component_type_import_get
4100_wasmtime_component_type_import_get.restype = ctypes.c_bool
4101_wasmtime_component_type_import_get.argtypes = [ctypes.POINTER(wasmtime_component_type_t), ctypes.POINTER(wasm_engine_t), ctypes.POINTER(ctypes.c_char), ctypes.c_size_t, ctypes.POINTER(wasmtime_component_item_t)]
4102def wasmtime_component_type_import_get(ty: Any, engine: Any, name: Any, name_len: Any, ret: Any) -> bool:
4103 return _wasmtime_component_type_import_get(ty, engine, name, name_len, ret) # type: ignore
4105_wasmtime_component_type_import_nth = dll.wasmtime_component_type_import_nth
4106_wasmtime_component_type_import_nth.restype = ctypes.c_bool
4107_wasmtime_component_type_import_nth.argtypes = [ctypes.POINTER(wasmtime_component_type_t), ctypes.POINTER(wasm_engine_t), ctypes.c_size_t, ctypes.POINTER(ctypes.POINTER(ctypes.c_char)), ctypes.POINTER(ctypes.c_size_t), ctypes.POINTER(wasmtime_component_item_t)]
4108def wasmtime_component_type_import_nth(ty: Any, engine: Any, nth: Any, name_ret: Any, name_len_ret: Any, type_ret: Any) -> bool:
4109 return _wasmtime_component_type_import_nth(ty, engine, nth, name_ret, name_len_ret, type_ret) # type: ignore
4111_wasmtime_component_type_export_count = dll.wasmtime_component_type_export_count
4112_wasmtime_component_type_export_count.restype = ctypes.c_size_t
4113_wasmtime_component_type_export_count.argtypes = [ctypes.POINTER(wasmtime_component_type_t), ctypes.POINTER(wasm_engine_t)]
4114def wasmtime_component_type_export_count(ty: Any, engine: Any) -> int:
4115 return _wasmtime_component_type_export_count(ty, engine) # type: ignore
4117_wasmtime_component_type_export_get = dll.wasmtime_component_type_export_get
4118_wasmtime_component_type_export_get.restype = ctypes.c_bool
4119_wasmtime_component_type_export_get.argtypes = [ctypes.POINTER(wasmtime_component_type_t), ctypes.POINTER(wasm_engine_t), ctypes.POINTER(ctypes.c_char), ctypes.c_size_t, ctypes.POINTER(wasmtime_component_item_t)]
4120def wasmtime_component_type_export_get(ty: Any, engine: Any, name: Any, name_len: Any, ret: Any) -> bool:
4121 return _wasmtime_component_type_export_get(ty, engine, name, name_len, ret) # type: ignore
4123_wasmtime_component_type_export_nth = dll.wasmtime_component_type_export_nth
4124_wasmtime_component_type_export_nth.restype = ctypes.c_bool
4125_wasmtime_component_type_export_nth.argtypes = [ctypes.POINTER(wasmtime_component_type_t), ctypes.POINTER(wasm_engine_t), ctypes.c_size_t, ctypes.POINTER(ctypes.POINTER(ctypes.c_char)), ctypes.POINTER(ctypes.c_size_t), ctypes.POINTER(wasmtime_component_item_t)]
4126def wasmtime_component_type_export_nth(ty: Any, engine: Any, nth: Any, name_ret: Any, name_len_ret: Any, type_ret: Any) -> bool:
4127 return _wasmtime_component_type_export_nth(ty, engine, nth, name_ret, name_len_ret, type_ret) # type: ignore
4129wasmtime_component_item_kind_t = ctypes.c_uint8
4131class wasmtime_component_item_union(ctypes.Union):
4132 _fields_ = [
4133 ("component", ctypes.POINTER(wasmtime_component_type_t)),
4134 ("component_instance", ctypes.POINTER(wasmtime_component_instance_type_t)),
4135 ("module", ctypes.POINTER(wasmtime_module_type_t)),
4136 ("component_func", ctypes.POINTER(wasmtime_component_func_type_t)),
4137 ("resource", ctypes.POINTER(wasmtime_component_resource_type_t)),
4138 ("core_func", ctypes.POINTER(wasm_functype_t)),
4139 ("type", wasmtime_component_valtype_t),
4140 ]
4141 component: ctypes._Pointer
4142 component_instance: ctypes._Pointer
4143 module: ctypes._Pointer
4144 component_func: ctypes._Pointer
4145 resource: ctypes._Pointer
4146 core_func: ctypes._Pointer
4147 type: wasmtime_component_valtype_t
4149wasmtime_component_item_union_t = wasmtime_component_item_union
4151wasmtime_component_item_t._fields_ = [
4152 ("kind", wasmtime_component_item_kind_t),
4153 ("of", wasmtime_component_item_union_t),
4154 ]
4156_wasmtime_component_item_clone = dll.wasmtime_component_item_clone
4157_wasmtime_component_item_clone.restype = None
4158_wasmtime_component_item_clone.argtypes = [ctypes.POINTER(wasmtime_component_item_t), ctypes.POINTER(wasmtime_component_item_t)]
4159def wasmtime_component_item_clone(item: Any, out: Any) -> None:
4160 return _wasmtime_component_item_clone(item, out) # type: ignore
4162_wasmtime_component_item_delete = dll.wasmtime_component_item_delete
4163_wasmtime_component_item_delete.restype = None
4164_wasmtime_component_item_delete.argtypes = [ctypes.POINTER(wasmtime_component_item_t)]
4165def wasmtime_component_item_delete(ptr: Any) -> None:
4166 return _wasmtime_component_item_delete(ptr) # type: ignore
4168class wasmtime_component_t(ctypes.Structure):
4169 pass
4171_wasmtime_component_new = dll.wasmtime_component_new
4172_wasmtime_component_new.restype = ctypes.POINTER(wasmtime_error_t)
4173_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))]
4174def wasmtime_component_new(engine: Any, buf: Any, len: Any, component_out: Any) -> ctypes._Pointer:
4175 return _wasmtime_component_new(engine, buf, len, component_out) # type: ignore
4177_wasmtime_component_serialize = dll.wasmtime_component_serialize
4178_wasmtime_component_serialize.restype = ctypes.POINTER(wasmtime_error_t)
4179_wasmtime_component_serialize.argtypes = [ctypes.POINTER(wasmtime_component_t), ctypes.POINTER(wasm_byte_vec_t)]
4180def wasmtime_component_serialize(component: Any, ret: Any) -> ctypes._Pointer:
4181 return _wasmtime_component_serialize(component, ret) # type: ignore
4183_wasmtime_component_deserialize = dll.wasmtime_component_deserialize
4184_wasmtime_component_deserialize.restype = ctypes.POINTER(wasmtime_error_t)
4185_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))]
4186def wasmtime_component_deserialize(engine: Any, buf: Any, len: Any, component_out: Any) -> ctypes._Pointer:
4187 return _wasmtime_component_deserialize(engine, buf, len, component_out) # type: ignore
4189_wasmtime_component_deserialize_file = dll.wasmtime_component_deserialize_file
4190_wasmtime_component_deserialize_file.restype = ctypes.POINTER(wasmtime_error_t)
4191_wasmtime_component_deserialize_file.argtypes = [ctypes.POINTER(wasm_engine_t), ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.POINTER(wasmtime_component_t))]
4192def wasmtime_component_deserialize_file(engine: Any, path: Any, component_out: Any) -> ctypes._Pointer:
4193 return _wasmtime_component_deserialize_file(engine, path, component_out) # type: ignore
4195_wasmtime_component_clone = dll.wasmtime_component_clone
4196_wasmtime_component_clone.restype = ctypes.POINTER(wasmtime_component_t)
4197_wasmtime_component_clone.argtypes = [ctypes.POINTER(wasmtime_component_t)]
4198def wasmtime_component_clone(component: Any) -> ctypes._Pointer:
4199 return _wasmtime_component_clone(component) # type: ignore
4201_wasmtime_component_type = dll.wasmtime_component_type
4202_wasmtime_component_type.restype = ctypes.POINTER(wasmtime_component_type_t)
4203_wasmtime_component_type.argtypes = [ctypes.POINTER(wasmtime_component_t)]
4204def wasmtime_component_type(component: Any) -> ctypes._Pointer:
4205 return _wasmtime_component_type(component) # type: ignore
4207_wasmtime_component_delete = dll.wasmtime_component_delete
4208_wasmtime_component_delete.restype = None
4209_wasmtime_component_delete.argtypes = [ctypes.POINTER(wasmtime_component_t)]
4210def wasmtime_component_delete(component: Any) -> None:
4211 return _wasmtime_component_delete(component) # type: ignore
4213class wasmtime_component_export_index_t(ctypes.Structure):
4214 pass
4216_wasmtime_component_get_export_index = dll.wasmtime_component_get_export_index
4217_wasmtime_component_get_export_index.restype = ctypes.POINTER(wasmtime_component_export_index_t)
4218_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]
4219def wasmtime_component_get_export_index(component: Any, instance_export_index: Any, name: Any, name_len: Any) -> ctypes._Pointer:
4220 return _wasmtime_component_get_export_index(component, instance_export_index, name, name_len) # type: ignore
4222_wasmtime_component_export_index_clone = dll.wasmtime_component_export_index_clone
4223_wasmtime_component_export_index_clone.restype = ctypes.POINTER(wasmtime_component_export_index_t)
4224_wasmtime_component_export_index_clone.argtypes = [ctypes.POINTER(wasmtime_component_export_index_t)]
4225def wasmtime_component_export_index_clone(index: Any) -> ctypes._Pointer:
4226 return _wasmtime_component_export_index_clone(index) # type: ignore
4228_wasmtime_component_export_index_delete = dll.wasmtime_component_export_index_delete
4229_wasmtime_component_export_index_delete.restype = None
4230_wasmtime_component_export_index_delete.argtypes = [ctypes.POINTER(wasmtime_component_export_index_t)]
4231def wasmtime_component_export_index_delete(export_index: Any) -> None:
4232 return _wasmtime_component_export_index_delete(export_index) # type: ignore
4234class wasmtime_component_resource_any(ctypes.Structure):
4235 pass
4237wasmtime_component_resource_any_t = wasmtime_component_resource_any
4239_wasmtime_component_resource_any_type = dll.wasmtime_component_resource_any_type
4240_wasmtime_component_resource_any_type.restype = ctypes.POINTER(wasmtime_component_resource_type_t)
4241_wasmtime_component_resource_any_type.argtypes = [ctypes.POINTER(wasmtime_component_resource_any_t)]
4242def wasmtime_component_resource_any_type(resource: Any) -> ctypes._Pointer:
4243 return _wasmtime_component_resource_any_type(resource) # type: ignore
4245_wasmtime_component_resource_any_clone = dll.wasmtime_component_resource_any_clone
4246_wasmtime_component_resource_any_clone.restype = ctypes.POINTER(wasmtime_component_resource_any_t)
4247_wasmtime_component_resource_any_clone.argtypes = [ctypes.POINTER(wasmtime_component_resource_any_t)]
4248def wasmtime_component_resource_any_clone(resource: Any) -> ctypes._Pointer:
4249 return _wasmtime_component_resource_any_clone(resource) # type: ignore
4251_wasmtime_component_resource_any_owned = dll.wasmtime_component_resource_any_owned
4252_wasmtime_component_resource_any_owned.restype = ctypes.c_bool
4253_wasmtime_component_resource_any_owned.argtypes = [ctypes.POINTER(wasmtime_component_resource_any_t)]
4254def wasmtime_component_resource_any_owned(resource: Any) -> bool:
4255 return _wasmtime_component_resource_any_owned(resource) # type: ignore
4257_wasmtime_component_resource_any_drop = dll.wasmtime_component_resource_any_drop
4258_wasmtime_component_resource_any_drop.restype = ctypes.POINTER(wasmtime_error_t)
4259_wasmtime_component_resource_any_drop.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_component_resource_any_t)]
4260def wasmtime_component_resource_any_drop(ctx: Any, resource: Any) -> ctypes._Pointer:
4261 return _wasmtime_component_resource_any_drop(ctx, resource) # type: ignore
4263_wasmtime_component_resource_any_delete = dll.wasmtime_component_resource_any_delete
4264_wasmtime_component_resource_any_delete.restype = None
4265_wasmtime_component_resource_any_delete.argtypes = [ctypes.POINTER(wasmtime_component_resource_any_t)]
4266def wasmtime_component_resource_any_delete(resource: Any) -> None:
4267 return _wasmtime_component_resource_any_delete(resource) # type: ignore
4269class wasmtime_component_resource_host(ctypes.Structure):
4270 pass
4272wasmtime_component_resource_host_t = wasmtime_component_resource_host
4274_wasmtime_component_resource_host_new = dll.wasmtime_component_resource_host_new
4275_wasmtime_component_resource_host_new.restype = ctypes.POINTER(wasmtime_component_resource_host_t)
4276_wasmtime_component_resource_host_new.argtypes = [ctypes.c_bool, ctypes.c_uint32, ctypes.c_uint32]
4277def wasmtime_component_resource_host_new(owned: Any, rep: Any, ty: Any) -> ctypes._Pointer:
4278 return _wasmtime_component_resource_host_new(owned, rep, ty) # type: ignore
4280_wasmtime_component_resource_host_clone = dll.wasmtime_component_resource_host_clone
4281_wasmtime_component_resource_host_clone.restype = ctypes.POINTER(wasmtime_component_resource_host_t)
4282_wasmtime_component_resource_host_clone.argtypes = [ctypes.POINTER(wasmtime_component_resource_host_t)]
4283def wasmtime_component_resource_host_clone(resource: Any) -> ctypes._Pointer:
4284 return _wasmtime_component_resource_host_clone(resource) # type: ignore
4286_wasmtime_component_resource_host_rep = dll.wasmtime_component_resource_host_rep
4287_wasmtime_component_resource_host_rep.restype = ctypes.c_uint32
4288_wasmtime_component_resource_host_rep.argtypes = [ctypes.POINTER(wasmtime_component_resource_host_t)]
4289def wasmtime_component_resource_host_rep(resource: Any) -> int:
4290 return _wasmtime_component_resource_host_rep(resource) # type: ignore
4292_wasmtime_component_resource_host_type = dll.wasmtime_component_resource_host_type
4293_wasmtime_component_resource_host_type.restype = ctypes.c_uint32
4294_wasmtime_component_resource_host_type.argtypes = [ctypes.POINTER(wasmtime_component_resource_host_t)]
4295def wasmtime_component_resource_host_type(resource: Any) -> int:
4296 return _wasmtime_component_resource_host_type(resource) # type: ignore
4298_wasmtime_component_resource_host_owned = dll.wasmtime_component_resource_host_owned
4299_wasmtime_component_resource_host_owned.restype = ctypes.c_bool
4300_wasmtime_component_resource_host_owned.argtypes = [ctypes.POINTER(wasmtime_component_resource_host_t)]
4301def wasmtime_component_resource_host_owned(resource: Any) -> bool:
4302 return _wasmtime_component_resource_host_owned(resource) # type: ignore
4304_wasmtime_component_resource_host_delete = dll.wasmtime_component_resource_host_delete
4305_wasmtime_component_resource_host_delete.restype = None
4306_wasmtime_component_resource_host_delete.argtypes = [ctypes.POINTER(wasmtime_component_resource_host_t)]
4307def wasmtime_component_resource_host_delete(resource: Any) -> None:
4308 return _wasmtime_component_resource_host_delete(resource) # type: ignore
4310_wasmtime_component_resource_any_to_host = dll.wasmtime_component_resource_any_to_host
4311_wasmtime_component_resource_any_to_host.restype = ctypes.POINTER(wasmtime_error_t)
4312_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))]
4313def wasmtime_component_resource_any_to_host(ctx: Any, resource: Any, ret: Any) -> ctypes._Pointer:
4314 return _wasmtime_component_resource_any_to_host(ctx, resource, ret) # type: ignore
4316_wasmtime_component_resource_host_to_any = dll.wasmtime_component_resource_host_to_any
4317_wasmtime_component_resource_host_to_any.restype = ctypes.POINTER(wasmtime_error_t)
4318_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))]
4319def wasmtime_component_resource_host_to_any(ctx: Any, resource: Any, ret: Any) -> ctypes._Pointer:
4320 return _wasmtime_component_resource_host_to_any(ctx, resource, ret) # type: ignore
4322wasmtime_component_valkind_t = ctypes.c_uint8
4324class wasmtime_component_val(ctypes.Structure):
4325 pass
4327class wasmtime_component_valrecord_entry(ctypes.Structure):
4328 pass
4330class wasmtime_component_vallist(ctypes.Structure):
4331 _fields_ = [
4332 ("size", ctypes.c_size_t),
4333 ("data", ctypes.POINTER(wasmtime_component_val)),
4334 ]
4335 size: int
4336 data: ctypes._Pointer
4338wasmtime_component_vallist_t = wasmtime_component_vallist
4340_wasmtime_component_vallist_new = dll.wasmtime_component_vallist_new
4341_wasmtime_component_vallist_new.restype = None
4342_wasmtime_component_vallist_new.argtypes = [ctypes.POINTER(wasmtime_component_vallist_t), ctypes.c_size_t, ctypes.POINTER(wasmtime_component_val)]
4343def wasmtime_component_vallist_new(out: Any, size: Any, ptr: Any) -> None:
4344 return _wasmtime_component_vallist_new(out, size, ptr) # type: ignore
4346_wasmtime_component_vallist_new_empty = dll.wasmtime_component_vallist_new_empty
4347_wasmtime_component_vallist_new_empty.restype = None
4348_wasmtime_component_vallist_new_empty.argtypes = [ctypes.POINTER(wasmtime_component_vallist_t)]
4349def wasmtime_component_vallist_new_empty(out: Any) -> None:
4350 return _wasmtime_component_vallist_new_empty(out) # type: ignore
4352_wasmtime_component_vallist_new_uninit = dll.wasmtime_component_vallist_new_uninit
4353_wasmtime_component_vallist_new_uninit.restype = None
4354_wasmtime_component_vallist_new_uninit.argtypes = [ctypes.POINTER(wasmtime_component_vallist_t), ctypes.c_size_t]
4355def wasmtime_component_vallist_new_uninit(out: Any, size: Any) -> None:
4356 return _wasmtime_component_vallist_new_uninit(out, size) # type: ignore
4358_wasmtime_component_vallist_copy = dll.wasmtime_component_vallist_copy
4359_wasmtime_component_vallist_copy.restype = None
4360_wasmtime_component_vallist_copy.argtypes = [ctypes.POINTER(wasmtime_component_vallist_t), ctypes.POINTER(wasmtime_component_vallist_t)]
4361def wasmtime_component_vallist_copy(dst: Any, src: Any) -> None:
4362 return _wasmtime_component_vallist_copy(dst, src) # type: ignore
4364_wasmtime_component_vallist_delete = dll.wasmtime_component_vallist_delete
4365_wasmtime_component_vallist_delete.restype = None
4366_wasmtime_component_vallist_delete.argtypes = [ctypes.POINTER(wasmtime_component_vallist_t)]
4367def wasmtime_component_vallist_delete(value: Any) -> None:
4368 return _wasmtime_component_vallist_delete(value) # type: ignore
4370class wasmtime_component_valrecord(ctypes.Structure):
4371 _fields_ = [
4372 ("size", ctypes.c_size_t),
4373 ("data", ctypes.POINTER(wasmtime_component_valrecord_entry)),
4374 ]
4375 size: int
4376 data: ctypes._Pointer
4378wasmtime_component_valrecord_t = wasmtime_component_valrecord
4380_wasmtime_component_valrecord_new = dll.wasmtime_component_valrecord_new
4381_wasmtime_component_valrecord_new.restype = None
4382_wasmtime_component_valrecord_new.argtypes = [ctypes.POINTER(wasmtime_component_valrecord_t), ctypes.c_size_t, ctypes.POINTER(wasmtime_component_valrecord_entry)]
4383def wasmtime_component_valrecord_new(out: Any, size: Any, ptr: Any) -> None:
4384 return _wasmtime_component_valrecord_new(out, size, ptr) # type: ignore
4386_wasmtime_component_valrecord_new_empty = dll.wasmtime_component_valrecord_new_empty
4387_wasmtime_component_valrecord_new_empty.restype = None
4388_wasmtime_component_valrecord_new_empty.argtypes = [ctypes.POINTER(wasmtime_component_valrecord_t)]
4389def wasmtime_component_valrecord_new_empty(out: Any) -> None:
4390 return _wasmtime_component_valrecord_new_empty(out) # type: ignore
4392_wasmtime_component_valrecord_new_uninit = dll.wasmtime_component_valrecord_new_uninit
4393_wasmtime_component_valrecord_new_uninit.restype = None
4394_wasmtime_component_valrecord_new_uninit.argtypes = [ctypes.POINTER(wasmtime_component_valrecord_t), ctypes.c_size_t]
4395def wasmtime_component_valrecord_new_uninit(out: Any, size: Any) -> None:
4396 return _wasmtime_component_valrecord_new_uninit(out, size) # type: ignore
4398_wasmtime_component_valrecord_copy = dll.wasmtime_component_valrecord_copy
4399_wasmtime_component_valrecord_copy.restype = None
4400_wasmtime_component_valrecord_copy.argtypes = [ctypes.POINTER(wasmtime_component_valrecord_t), ctypes.POINTER(wasmtime_component_valrecord_t)]
4401def wasmtime_component_valrecord_copy(dst: Any, src: Any) -> None:
4402 return _wasmtime_component_valrecord_copy(dst, src) # type: ignore
4404_wasmtime_component_valrecord_delete = dll.wasmtime_component_valrecord_delete
4405_wasmtime_component_valrecord_delete.restype = None
4406_wasmtime_component_valrecord_delete.argtypes = [ctypes.POINTER(wasmtime_component_valrecord_t)]
4407def wasmtime_component_valrecord_delete(value: Any) -> None:
4408 return _wasmtime_component_valrecord_delete(value) # type: ignore
4410class wasmtime_component_valtuple(ctypes.Structure):
4411 _fields_ = [
4412 ("size", ctypes.c_size_t),
4413 ("data", ctypes.POINTER(wasmtime_component_val)),
4414 ]
4415 size: int
4416 data: ctypes._Pointer
4418wasmtime_component_valtuple_t = wasmtime_component_valtuple
4420_wasmtime_component_valtuple_new = dll.wasmtime_component_valtuple_new
4421_wasmtime_component_valtuple_new.restype = None
4422_wasmtime_component_valtuple_new.argtypes = [ctypes.POINTER(wasmtime_component_valtuple_t), ctypes.c_size_t, ctypes.POINTER(wasmtime_component_val)]
4423def wasmtime_component_valtuple_new(out: Any, size: Any, ptr: Any) -> None:
4424 return _wasmtime_component_valtuple_new(out, size, ptr) # type: ignore
4426_wasmtime_component_valtuple_new_empty = dll.wasmtime_component_valtuple_new_empty
4427_wasmtime_component_valtuple_new_empty.restype = None
4428_wasmtime_component_valtuple_new_empty.argtypes = [ctypes.POINTER(wasmtime_component_valtuple_t)]
4429def wasmtime_component_valtuple_new_empty(out: Any) -> None:
4430 return _wasmtime_component_valtuple_new_empty(out) # type: ignore
4432_wasmtime_component_valtuple_new_uninit = dll.wasmtime_component_valtuple_new_uninit
4433_wasmtime_component_valtuple_new_uninit.restype = None
4434_wasmtime_component_valtuple_new_uninit.argtypes = [ctypes.POINTER(wasmtime_component_valtuple_t), ctypes.c_size_t]
4435def wasmtime_component_valtuple_new_uninit(out: Any, size: Any) -> None:
4436 return _wasmtime_component_valtuple_new_uninit(out, size) # type: ignore
4438_wasmtime_component_valtuple_copy = dll.wasmtime_component_valtuple_copy
4439_wasmtime_component_valtuple_copy.restype = None
4440_wasmtime_component_valtuple_copy.argtypes = [ctypes.POINTER(wasmtime_component_valtuple_t), ctypes.POINTER(wasmtime_component_valtuple_t)]
4441def wasmtime_component_valtuple_copy(dst: Any, src: Any) -> None:
4442 return _wasmtime_component_valtuple_copy(dst, src) # type: ignore
4444_wasmtime_component_valtuple_delete = dll.wasmtime_component_valtuple_delete
4445_wasmtime_component_valtuple_delete.restype = None
4446_wasmtime_component_valtuple_delete.argtypes = [ctypes.POINTER(wasmtime_component_valtuple_t)]
4447def wasmtime_component_valtuple_delete(value: Any) -> None:
4448 return _wasmtime_component_valtuple_delete(value) # type: ignore
4450class wasmtime_component_valflags(ctypes.Structure):
4451 _fields_ = [
4452 ("size", ctypes.c_size_t),
4453 ("data", ctypes.POINTER(wasm_name_t)),
4454 ]
4455 size: int
4456 data: ctypes._Pointer
4458wasmtime_component_valflags_t = wasmtime_component_valflags
4460_wasmtime_component_valflags_new = dll.wasmtime_component_valflags_new
4461_wasmtime_component_valflags_new.restype = None
4462_wasmtime_component_valflags_new.argtypes = [ctypes.POINTER(wasmtime_component_valflags_t), ctypes.c_size_t, ctypes.POINTER(wasm_name_t)]
4463def wasmtime_component_valflags_new(out: Any, size: Any, ptr: Any) -> None:
4464 return _wasmtime_component_valflags_new(out, size, ptr) # type: ignore
4466_wasmtime_component_valflags_new_empty = dll.wasmtime_component_valflags_new_empty
4467_wasmtime_component_valflags_new_empty.restype = None
4468_wasmtime_component_valflags_new_empty.argtypes = [ctypes.POINTER(wasmtime_component_valflags_t)]
4469def wasmtime_component_valflags_new_empty(out: Any) -> None:
4470 return _wasmtime_component_valflags_new_empty(out) # type: ignore
4472_wasmtime_component_valflags_new_uninit = dll.wasmtime_component_valflags_new_uninit
4473_wasmtime_component_valflags_new_uninit.restype = None
4474_wasmtime_component_valflags_new_uninit.argtypes = [ctypes.POINTER(wasmtime_component_valflags_t), ctypes.c_size_t]
4475def wasmtime_component_valflags_new_uninit(out: Any, size: Any) -> None:
4476 return _wasmtime_component_valflags_new_uninit(out, size) # type: ignore
4478_wasmtime_component_valflags_copy = dll.wasmtime_component_valflags_copy
4479_wasmtime_component_valflags_copy.restype = None
4480_wasmtime_component_valflags_copy.argtypes = [ctypes.POINTER(wasmtime_component_valflags_t), ctypes.POINTER(wasmtime_component_valflags_t)]
4481def wasmtime_component_valflags_copy(dst: Any, src: Any) -> None:
4482 return _wasmtime_component_valflags_copy(dst, src) # type: ignore
4484_wasmtime_component_valflags_delete = dll.wasmtime_component_valflags_delete
4485_wasmtime_component_valflags_delete.restype = None
4486_wasmtime_component_valflags_delete.argtypes = [ctypes.POINTER(wasmtime_component_valflags_t)]
4487def wasmtime_component_valflags_delete(value: Any) -> None:
4488 return _wasmtime_component_valflags_delete(value) # type: ignore
4490class wasmtime_component_valvariant(ctypes.Structure):
4491 _fields_ = [
4492 ("discriminant", wasm_name_t),
4493 ("val", ctypes.POINTER(wasmtime_component_val)),
4494 ]
4495 discriminant: wasm_name_t
4496 val: ctypes._Pointer
4498wasmtime_component_valvariant_t = wasmtime_component_valvariant
4500class wasmtime_component_valresult(ctypes.Structure):
4501 _fields_ = [
4502 ("is_ok", ctypes.c_bool),
4503 ("val", ctypes.POINTER(wasmtime_component_val)),
4504 ]
4505 is_ok: bool
4506 val: ctypes._Pointer
4508wasmtime_component_valresult_t = wasmtime_component_valresult
4510class wasmtime_component_valunion(ctypes.Union):
4511 _fields_ = [
4512 ("boolean", ctypes.c_bool),
4513 ("s8", ctypes.c_int8),
4514 ("u8", ctypes.c_uint8),
4515 ("s16", ctypes.c_int16),
4516 ("u16", ctypes.c_uint16),
4517 ("s32", ctypes.c_int32),
4518 ("u32", ctypes.c_uint32),
4519 ("s64", ctypes.c_int64),
4520 ("u64", ctypes.c_uint64),
4521 ("f32", ctypes.c_float),
4522 ("f64", ctypes.c_double),
4523 ("character", ctypes.c_uint32),
4524 ("string", wasm_name_t),
4525 ("list", wasmtime_component_vallist_t),
4526 ("record", wasmtime_component_valrecord_t),
4527 ("tuple", wasmtime_component_valtuple_t),
4528 ("variant", wasmtime_component_valvariant_t),
4529 ("enumeration", wasm_name_t),
4530 ("option", ctypes.POINTER(wasmtime_component_val)),
4531 ("result", wasmtime_component_valresult_t),
4532 ("flags", wasmtime_component_valflags_t),
4533 ("resource", ctypes.POINTER(wasmtime_component_resource_any_t)),
4534 ]
4535 boolean: bool
4536 s8: ctypes.c_int8
4537 u8: ctypes.c_uint8
4538 s16: ctypes.c_int16
4539 u16: ctypes.c_uint16
4540 s32: int
4541 u32: int
4542 s64: int
4543 u64: int
4544 f32: float
4545 f64: float
4546 character: int
4547 string: wasm_name_t
4548 list: wasmtime_component_vallist_t
4549 record: wasmtime_component_valrecord_t
4550 tuple: wasmtime_component_valtuple_t
4551 variant: wasmtime_component_valvariant_t
4552 enumeration: wasm_name_t
4553 option: ctypes._Pointer
4554 result: wasmtime_component_valresult_t
4555 flags: wasmtime_component_valflags_t
4556 resource: ctypes._Pointer
4558wasmtime_component_valunion_t = wasmtime_component_valunion
4560wasmtime_component_val._fields_ = [
4561 ("kind", wasmtime_component_valkind_t),
4562 ("of", wasmtime_component_valunion_t),
4563 ]
4565wasmtime_component_val_t = wasmtime_component_val
4567wasmtime_component_valrecord_entry._fields_ = [
4568 ("name", wasm_name_t),
4569 ("val", wasmtime_component_val_t),
4570 ]
4572wasmtime_component_valrecord_entry_t = wasmtime_component_valrecord_entry
4574_wasmtime_component_val_new = dll.wasmtime_component_val_new
4575_wasmtime_component_val_new.restype = ctypes.POINTER(wasmtime_component_val_t)
4576_wasmtime_component_val_new.argtypes = [ctypes.POINTER(wasmtime_component_val_t)]
4577def wasmtime_component_val_new(val: Any) -> ctypes._Pointer:
4578 return _wasmtime_component_val_new(val) # type: ignore
4580_wasmtime_component_val_free = dll.wasmtime_component_val_free
4581_wasmtime_component_val_free.restype = None
4582_wasmtime_component_val_free.argtypes = [ctypes.POINTER(wasmtime_component_val_t)]
4583def wasmtime_component_val_free(ptr: Any) -> None:
4584 return _wasmtime_component_val_free(ptr) # type: ignore
4586_wasmtime_component_val_clone = dll.wasmtime_component_val_clone
4587_wasmtime_component_val_clone.restype = None
4588_wasmtime_component_val_clone.argtypes = [ctypes.POINTER(wasmtime_component_val_t), ctypes.POINTER(wasmtime_component_val_t)]
4589def wasmtime_component_val_clone(src: Any, dst: Any) -> None:
4590 return _wasmtime_component_val_clone(src, dst) # type: ignore
4592_wasmtime_component_val_delete = dll.wasmtime_component_val_delete
4593_wasmtime_component_val_delete.restype = None
4594_wasmtime_component_val_delete.argtypes = [ctypes.POINTER(wasmtime_component_val_t)]
4595def wasmtime_component_val_delete(value: Any) -> None:
4596 return _wasmtime_component_val_delete(value) # type: ignore
4599class wasmtime_component_func_anon_0(ctypes.Structure):
4600 _fields_ = [
4601 ("store_id", ctypes.c_uint64),
4602 ("__private1", ctypes.c_uint32),
4603 ]
4604 store_id: int
4605 __private1: int
4606class wasmtime_component_func(ctypes.Structure):
4607 _fields_ = [
4608 ("_anon_1", wasmtime_component_func_anon_0),
4609 ("__private2", ctypes.c_uint32),
4610 ]
4611 _anon_1: wasmtime_component_func_anon_0
4612 __private2: int
4614wasmtime_component_func_t = wasmtime_component_func
4616_wasmtime_component_func_type = dll.wasmtime_component_func_type
4617_wasmtime_component_func_type.restype = ctypes.POINTER(wasmtime_component_func_type_t)
4618_wasmtime_component_func_type.argtypes = [ctypes.POINTER(wasmtime_component_func_t), ctypes.POINTER(wasmtime_context_t)]
4619def wasmtime_component_func_type(func: Any, context: Any) -> ctypes._Pointer:
4620 return _wasmtime_component_func_type(func, context) # type: ignore
4622_wasmtime_component_func_call = dll.wasmtime_component_func_call
4623_wasmtime_component_func_call.restype = ctypes.POINTER(wasmtime_error_t)
4624_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]
4625def wasmtime_component_func_call(func: Any, context: Any, args: Any, args_size: Any, results: Any, results_size: Any) -> ctypes._Pointer:
4626 return _wasmtime_component_func_call(func, context, args, args_size, results, results_size) # type: ignore
4628_wasmtime_component_func_post_return = dll.wasmtime_component_func_post_return
4629_wasmtime_component_func_post_return.restype = ctypes.POINTER(wasmtime_error_t)
4630_wasmtime_component_func_post_return.argtypes = [ctypes.POINTER(wasmtime_component_func_t), ctypes.POINTER(wasmtime_context_t)]
4631def wasmtime_component_func_post_return(func: Any, context: Any) -> ctypes._Pointer:
4632 return _wasmtime_component_func_post_return(func, context) # type: ignore
4634class wasmtime_component_instance(ctypes.Structure):
4635 _fields_ = [
4636 ("store_id", ctypes.c_uint64),
4637 ("__private", ctypes.c_uint32),
4638 ]
4639 store_id: int
4640 __private: int
4642wasmtime_component_instance_t = wasmtime_component_instance
4644_wasmtime_component_instance_get_export_index = dll.wasmtime_component_instance_get_export_index
4645_wasmtime_component_instance_get_export_index.restype = ctypes.POINTER(wasmtime_component_export_index_t)
4646_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]
4647def wasmtime_component_instance_get_export_index(instance: Any, context: Any, instance_export_index: Any, name: Any, name_len: Any) -> ctypes._Pointer:
4648 return _wasmtime_component_instance_get_export_index(instance, context, instance_export_index, name, name_len) # type: ignore
4650_wasmtime_component_instance_get_func = dll.wasmtime_component_instance_get_func
4651_wasmtime_component_instance_get_func.restype = ctypes.c_bool
4652_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)]
4653def wasmtime_component_instance_get_func(instance: Any, context: Any, export_index: Any, func_out: Any) -> bool:
4654 return _wasmtime_component_instance_get_func(instance, context, export_index, func_out) # type: ignore
4656class wasmtime_component_linker_t(ctypes.Structure):
4657 pass
4659class wasmtime_component_linker_instance_t(ctypes.Structure):
4660 pass
4662_wasmtime_component_linker_new = dll.wasmtime_component_linker_new
4663_wasmtime_component_linker_new.restype = ctypes.POINTER(wasmtime_component_linker_t)
4664_wasmtime_component_linker_new.argtypes = [ctypes.POINTER(wasm_engine_t)]
4665def wasmtime_component_linker_new(engine: Any) -> ctypes._Pointer:
4666 return _wasmtime_component_linker_new(engine) # type: ignore
4668_wasmtime_component_linker_allow_shadowing = dll.wasmtime_component_linker_allow_shadowing
4669_wasmtime_component_linker_allow_shadowing.restype = None
4670_wasmtime_component_linker_allow_shadowing.argtypes = [ctypes.POINTER(wasmtime_component_linker_t), ctypes.c_bool]
4671def wasmtime_component_linker_allow_shadowing(linker: Any, allow: Any) -> None:
4672 return _wasmtime_component_linker_allow_shadowing(linker, allow) # type: ignore
4674_wasmtime_component_linker_root = dll.wasmtime_component_linker_root
4675_wasmtime_component_linker_root.restype = ctypes.POINTER(wasmtime_component_linker_instance_t)
4676_wasmtime_component_linker_root.argtypes = [ctypes.POINTER(wasmtime_component_linker_t)]
4677def wasmtime_component_linker_root(linker: Any) -> ctypes._Pointer:
4678 return _wasmtime_component_linker_root(linker) # type: ignore
4680_wasmtime_component_linker_instantiate = dll.wasmtime_component_linker_instantiate
4681_wasmtime_component_linker_instantiate.restype = ctypes.POINTER(wasmtime_error_t)
4682_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)]
4683def wasmtime_component_linker_instantiate(linker: Any, context: Any, component: Any, instance_out: Any) -> ctypes._Pointer:
4684 return _wasmtime_component_linker_instantiate(linker, context, component, instance_out) # type: ignore
4686_wasmtime_component_linker_define_unknown_imports_as_traps = dll.wasmtime_component_linker_define_unknown_imports_as_traps
4687_wasmtime_component_linker_define_unknown_imports_as_traps.restype = ctypes.POINTER(wasmtime_error_t)
4688_wasmtime_component_linker_define_unknown_imports_as_traps.argtypes = [ctypes.POINTER(wasmtime_component_linker_t), ctypes.POINTER(wasmtime_component_t)]
4689def wasmtime_component_linker_define_unknown_imports_as_traps(linker: Any, component: Any) -> ctypes._Pointer:
4690 return _wasmtime_component_linker_define_unknown_imports_as_traps(linker, component) # type: ignore
4692_wasmtime_component_linker_delete = dll.wasmtime_component_linker_delete
4693_wasmtime_component_linker_delete.restype = None
4694_wasmtime_component_linker_delete.argtypes = [ctypes.POINTER(wasmtime_component_linker_t)]
4695def wasmtime_component_linker_delete(linker: Any) -> None:
4696 return _wasmtime_component_linker_delete(linker) # type: ignore
4698_wasmtime_component_linker_instance_add_instance = dll.wasmtime_component_linker_instance_add_instance
4699_wasmtime_component_linker_instance_add_instance.restype = ctypes.POINTER(wasmtime_error_t)
4700_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))]
4701def wasmtime_component_linker_instance_add_instance(linker_instance: Any, name: Any, name_len: Any, linker_instance_out: Any) -> ctypes._Pointer:
4702 return _wasmtime_component_linker_instance_add_instance(linker_instance, name, name_len, linker_instance_out) # type: ignore
4704_wasmtime_component_linker_instance_add_module = dll.wasmtime_component_linker_instance_add_module
4705_wasmtime_component_linker_instance_add_module.restype = ctypes.POINTER(wasmtime_error_t)
4706_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)]
4707def wasmtime_component_linker_instance_add_module(linker_instance: Any, name: Any, name_len: Any, module: Any) -> ctypes._Pointer:
4708 return _wasmtime_component_linker_instance_add_module(linker_instance, name, name_len, module) # type: ignore
4710wasmtime_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)
4712_wasmtime_component_linker_instance_add_func = dll.wasmtime_component_linker_instance_add_func
4713_wasmtime_component_linker_instance_add_func.restype = ctypes.POINTER(wasmtime_error_t)
4714_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)]
4715def wasmtime_component_linker_instance_add_func(linker_instance: Any, name: Any, name_len: Any, callback: Any, data: Any, finalizer: Any) -> ctypes._Pointer:
4716 return _wasmtime_component_linker_instance_add_func(linker_instance, name, name_len, callback, data, finalizer) # type: ignore
4718_wasmtime_component_linker_add_wasip2 = dll.wasmtime_component_linker_add_wasip2
4719_wasmtime_component_linker_add_wasip2.restype = ctypes.POINTER(wasmtime_error_t)
4720_wasmtime_component_linker_add_wasip2.argtypes = [ctypes.POINTER(wasmtime_component_linker_t)]
4721def wasmtime_component_linker_add_wasip2(linker: Any) -> ctypes._Pointer:
4722 return _wasmtime_component_linker_add_wasip2(linker) # type: ignore
4724wasmtime_component_resource_destructor_t = ctypes.CFUNCTYPE(ctypes.c_size_t, ctypes.c_void_p, ctypes.POINTER(wasmtime_context_t), ctypes.c_uint32)
4726_wasmtime_component_linker_instance_add_resource = dll.wasmtime_component_linker_instance_add_resource
4727_wasmtime_component_linker_instance_add_resource.restype = ctypes.POINTER(wasmtime_error_t)
4728_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)]
4729def wasmtime_component_linker_instance_add_resource(linker_instance: Any, name: Any, name_len: Any, resource: Any, destructor: Any, data: Any, finalizer: Any) -> ctypes._Pointer:
4730 return _wasmtime_component_linker_instance_add_resource(linker_instance, name, name_len, resource, destructor, data, finalizer) # type: ignore
4732_wasmtime_component_linker_instance_delete = dll.wasmtime_component_linker_instance_delete
4733_wasmtime_component_linker_instance_delete.restype = None
4734_wasmtime_component_linker_instance_delete.argtypes = [ctypes.POINTER(wasmtime_component_linker_instance_t)]
4735def wasmtime_component_linker_instance_delete(linker_instance: Any) -> None:
4736 return _wasmtime_component_linker_instance_delete(linker_instance) # type: ignore
4738_wasmtime_wat2wasm = dll.wasmtime_wat2wasm
4739_wasmtime_wat2wasm.restype = ctypes.POINTER(wasmtime_error_t)
4740_wasmtime_wat2wasm.argtypes = [ctypes.POINTER(ctypes.c_char), ctypes.c_size_t, ctypes.POINTER(wasm_byte_vec_t)]
4741def wasmtime_wat2wasm(wat: Any, wat_len: Any, ret: Any) -> ctypes._Pointer:
4742 return _wasmtime_wat2wasm(wat, wat_len, ret) # type: ignore