Coverage for wasmtime/_bindings.py: 89%
3564 statements
« prev ^ index » next coverage.py v7.11.3, created at 2026-04-03 17:12 +0000
« prev ^ index » next coverage.py v7.11.3, created at 2026-04-03 17:12 +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_gc_support_set = dll.wasmtime_config_gc_support_set
2121_wasmtime_config_gc_support_set.restype = None
2122_wasmtime_config_gc_support_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2123def wasmtime_config_gc_support_set(arg0: Any, arg1: Any) -> None:
2124 return _wasmtime_config_gc_support_set(arg0, arg1) # type: ignore
2126_wasmtime_config_wasm_simd_set = dll.wasmtime_config_wasm_simd_set
2127_wasmtime_config_wasm_simd_set.restype = None
2128_wasmtime_config_wasm_simd_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2129def wasmtime_config_wasm_simd_set(arg0: Any, arg1: Any) -> None:
2130 return _wasmtime_config_wasm_simd_set(arg0, arg1) # type: ignore
2132_wasmtime_config_wasm_relaxed_simd_set = dll.wasmtime_config_wasm_relaxed_simd_set
2133_wasmtime_config_wasm_relaxed_simd_set.restype = None
2134_wasmtime_config_wasm_relaxed_simd_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2135def wasmtime_config_wasm_relaxed_simd_set(arg0: Any, arg1: Any) -> None:
2136 return _wasmtime_config_wasm_relaxed_simd_set(arg0, arg1) # type: ignore
2138_wasmtime_config_wasm_relaxed_simd_deterministic_set = dll.wasmtime_config_wasm_relaxed_simd_deterministic_set
2139_wasmtime_config_wasm_relaxed_simd_deterministic_set.restype = None
2140_wasmtime_config_wasm_relaxed_simd_deterministic_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2141def wasmtime_config_wasm_relaxed_simd_deterministic_set(arg0: Any, arg1: Any) -> None:
2142 return _wasmtime_config_wasm_relaxed_simd_deterministic_set(arg0, arg1) # type: ignore
2144_wasmtime_config_wasm_bulk_memory_set = dll.wasmtime_config_wasm_bulk_memory_set
2145_wasmtime_config_wasm_bulk_memory_set.restype = None
2146_wasmtime_config_wasm_bulk_memory_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2147def wasmtime_config_wasm_bulk_memory_set(arg0: Any, arg1: Any) -> None:
2148 return _wasmtime_config_wasm_bulk_memory_set(arg0, arg1) # type: ignore
2150_wasmtime_config_wasm_multi_value_set = dll.wasmtime_config_wasm_multi_value_set
2151_wasmtime_config_wasm_multi_value_set.restype = None
2152_wasmtime_config_wasm_multi_value_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2153def wasmtime_config_wasm_multi_value_set(arg0: Any, arg1: Any) -> None:
2154 return _wasmtime_config_wasm_multi_value_set(arg0, arg1) # type: ignore
2156_wasmtime_config_wasm_multi_memory_set = dll.wasmtime_config_wasm_multi_memory_set
2157_wasmtime_config_wasm_multi_memory_set.restype = None
2158_wasmtime_config_wasm_multi_memory_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2159def wasmtime_config_wasm_multi_memory_set(arg0: Any, arg1: Any) -> None:
2160 return _wasmtime_config_wasm_multi_memory_set(arg0, arg1) # type: ignore
2162_wasmtime_config_wasm_memory64_set = dll.wasmtime_config_wasm_memory64_set
2163_wasmtime_config_wasm_memory64_set.restype = None
2164_wasmtime_config_wasm_memory64_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2165def wasmtime_config_wasm_memory64_set(arg0: Any, arg1: Any) -> None:
2166 return _wasmtime_config_wasm_memory64_set(arg0, arg1) # type: ignore
2168_wasmtime_config_wasm_wide_arithmetic_set = dll.wasmtime_config_wasm_wide_arithmetic_set
2169_wasmtime_config_wasm_wide_arithmetic_set.restype = None
2170_wasmtime_config_wasm_wide_arithmetic_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2171def wasmtime_config_wasm_wide_arithmetic_set(arg0: Any, arg1: Any) -> None:
2172 return _wasmtime_config_wasm_wide_arithmetic_set(arg0, arg1) # type: ignore
2174_wasmtime_config_wasm_exceptions_set = dll.wasmtime_config_wasm_exceptions_set
2175_wasmtime_config_wasm_exceptions_set.restype = None
2176_wasmtime_config_wasm_exceptions_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2177def wasmtime_config_wasm_exceptions_set(arg0: Any, arg1: Any) -> None:
2178 return _wasmtime_config_wasm_exceptions_set(arg0, arg1) # type: ignore
2180_wasmtime_config_wasm_custom_page_sizes_set = dll.wasmtime_config_wasm_custom_page_sizes_set
2181_wasmtime_config_wasm_custom_page_sizes_set.restype = None
2182_wasmtime_config_wasm_custom_page_sizes_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2183def wasmtime_config_wasm_custom_page_sizes_set(arg0: Any, arg1: Any) -> None:
2184 return _wasmtime_config_wasm_custom_page_sizes_set(arg0, arg1) # type: ignore
2186_wasmtime_config_wasm_stack_switching_set = dll.wasmtime_config_wasm_stack_switching_set
2187_wasmtime_config_wasm_stack_switching_set.restype = None
2188_wasmtime_config_wasm_stack_switching_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2189def wasmtime_config_wasm_stack_switching_set(arg0: Any, arg1: Any) -> None:
2190 return _wasmtime_config_wasm_stack_switching_set(arg0, arg1) # type: ignore
2192_wasmtime_config_strategy_set = dll.wasmtime_config_strategy_set
2193_wasmtime_config_strategy_set.restype = None
2194_wasmtime_config_strategy_set.argtypes = [ctypes.POINTER(wasm_config_t), wasmtime_strategy_t]
2195def wasmtime_config_strategy_set(arg0: Any, arg1: Any) -> None:
2196 return _wasmtime_config_strategy_set(arg0, arg1) # type: ignore
2198_wasmtime_config_parallel_compilation_set = dll.wasmtime_config_parallel_compilation_set
2199_wasmtime_config_parallel_compilation_set.restype = None
2200_wasmtime_config_parallel_compilation_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2201def wasmtime_config_parallel_compilation_set(arg0: Any, arg1: Any) -> None:
2202 return _wasmtime_config_parallel_compilation_set(arg0, arg1) # type: ignore
2204_wasmtime_config_cranelift_debug_verifier_set = dll.wasmtime_config_cranelift_debug_verifier_set
2205_wasmtime_config_cranelift_debug_verifier_set.restype = None
2206_wasmtime_config_cranelift_debug_verifier_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2207def wasmtime_config_cranelift_debug_verifier_set(arg0: Any, arg1: Any) -> None:
2208 return _wasmtime_config_cranelift_debug_verifier_set(arg0, arg1) # type: ignore
2210_wasmtime_config_cranelift_nan_canonicalization_set = dll.wasmtime_config_cranelift_nan_canonicalization_set
2211_wasmtime_config_cranelift_nan_canonicalization_set.restype = None
2212_wasmtime_config_cranelift_nan_canonicalization_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2213def wasmtime_config_cranelift_nan_canonicalization_set(arg0: Any, arg1: Any) -> None:
2214 return _wasmtime_config_cranelift_nan_canonicalization_set(arg0, arg1) # type: ignore
2216_wasmtime_config_cranelift_opt_level_set = dll.wasmtime_config_cranelift_opt_level_set
2217_wasmtime_config_cranelift_opt_level_set.restype = None
2218_wasmtime_config_cranelift_opt_level_set.argtypes = [ctypes.POINTER(wasm_config_t), wasmtime_opt_level_t]
2219def wasmtime_config_cranelift_opt_level_set(arg0: Any, arg1: Any) -> None:
2220 return _wasmtime_config_cranelift_opt_level_set(arg0, arg1) # type: ignore
2222_wasmtime_config_profiler_set = dll.wasmtime_config_profiler_set
2223_wasmtime_config_profiler_set.restype = None
2224_wasmtime_config_profiler_set.argtypes = [ctypes.POINTER(wasm_config_t), wasmtime_profiling_strategy_t]
2225def wasmtime_config_profiler_set(arg0: Any, arg1: Any) -> None:
2226 return _wasmtime_config_profiler_set(arg0, arg1) # type: ignore
2228_wasmtime_config_memory_may_move_set = dll.wasmtime_config_memory_may_move_set
2229_wasmtime_config_memory_may_move_set.restype = None
2230_wasmtime_config_memory_may_move_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2231def wasmtime_config_memory_may_move_set(arg0: Any, arg1: Any) -> None:
2232 return _wasmtime_config_memory_may_move_set(arg0, arg1) # type: ignore
2234_wasmtime_config_memory_reservation_set = dll.wasmtime_config_memory_reservation_set
2235_wasmtime_config_memory_reservation_set.restype = None
2236_wasmtime_config_memory_reservation_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_uint64]
2237def wasmtime_config_memory_reservation_set(arg0: Any, arg1: Any) -> None:
2238 return _wasmtime_config_memory_reservation_set(arg0, arg1) # type: ignore
2240_wasmtime_config_memory_guard_size_set = dll.wasmtime_config_memory_guard_size_set
2241_wasmtime_config_memory_guard_size_set.restype = None
2242_wasmtime_config_memory_guard_size_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_uint64]
2243def wasmtime_config_memory_guard_size_set(arg0: Any, arg1: Any) -> None:
2244 return _wasmtime_config_memory_guard_size_set(arg0, arg1) # type: ignore
2246_wasmtime_config_memory_reservation_for_growth_set = dll.wasmtime_config_memory_reservation_for_growth_set
2247_wasmtime_config_memory_reservation_for_growth_set.restype = None
2248_wasmtime_config_memory_reservation_for_growth_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_uint64]
2249def wasmtime_config_memory_reservation_for_growth_set(arg0: Any, arg1: Any) -> None:
2250 return _wasmtime_config_memory_reservation_for_growth_set(arg0, arg1) # type: ignore
2252_wasmtime_config_native_unwind_info_set = dll.wasmtime_config_native_unwind_info_set
2253_wasmtime_config_native_unwind_info_set.restype = None
2254_wasmtime_config_native_unwind_info_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2255def wasmtime_config_native_unwind_info_set(arg0: Any, arg1: Any) -> None:
2256 return _wasmtime_config_native_unwind_info_set(arg0, arg1) # type: ignore
2258_wasmtime_config_cache_config_load = dll.wasmtime_config_cache_config_load
2259_wasmtime_config_cache_config_load.restype = ctypes.POINTER(wasmtime_error_t)
2260_wasmtime_config_cache_config_load.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.POINTER(ctypes.c_char)]
2261def wasmtime_config_cache_config_load(arg0: Any, arg1: Any) -> ctypes._Pointer:
2262 return _wasmtime_config_cache_config_load(arg0, arg1) # type: ignore
2264_wasmtime_config_target_set = dll.wasmtime_config_target_set
2265_wasmtime_config_target_set.restype = ctypes.POINTER(wasmtime_error_t)
2266_wasmtime_config_target_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.POINTER(ctypes.c_char)]
2267def wasmtime_config_target_set(arg0: Any, arg1: Any) -> ctypes._Pointer:
2268 return _wasmtime_config_target_set(arg0, arg1) # type: ignore
2270_wasmtime_config_cranelift_flag_enable = dll.wasmtime_config_cranelift_flag_enable
2271_wasmtime_config_cranelift_flag_enable.restype = None
2272_wasmtime_config_cranelift_flag_enable.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.POINTER(ctypes.c_char)]
2273def wasmtime_config_cranelift_flag_enable(arg0: Any, arg1: Any) -> None:
2274 return _wasmtime_config_cranelift_flag_enable(arg0, arg1) # type: ignore
2276_wasmtime_config_cranelift_flag_set = dll.wasmtime_config_cranelift_flag_set
2277_wasmtime_config_cranelift_flag_set.restype = None
2278_wasmtime_config_cranelift_flag_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_char)]
2279def wasmtime_config_cranelift_flag_set(arg0: Any, key: Any, value: Any) -> None:
2280 return _wasmtime_config_cranelift_flag_set(arg0, key, value) # type: ignore
2282_wasmtime_config_macos_use_mach_ports_set = dll.wasmtime_config_macos_use_mach_ports_set
2283_wasmtime_config_macos_use_mach_ports_set.restype = None
2284_wasmtime_config_macos_use_mach_ports_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2285def wasmtime_config_macos_use_mach_ports_set(arg0: Any, arg1: Any) -> None:
2286 return _wasmtime_config_macos_use_mach_ports_set(arg0, arg1) # type: ignore
2288_wasmtime_config_signals_based_traps_set = dll.wasmtime_config_signals_based_traps_set
2289_wasmtime_config_signals_based_traps_set.restype = None
2290_wasmtime_config_signals_based_traps_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2291def wasmtime_config_signals_based_traps_set(arg0: Any, arg1: Any) -> None:
2292 return _wasmtime_config_signals_based_traps_set(arg0, arg1) # type: ignore
2294wasmtime_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))
2296wasmtime_memory_grow_callback_t = ctypes.CFUNCTYPE(ctypes.c_size_t, ctypes.c_void_p, ctypes.c_size_t)
2298class wasmtime_linear_memory(ctypes.Structure):
2299 _fields_ = [
2300 ("env", ctypes.c_void_p),
2301 ("get_memory", wasmtime_memory_get_callback_t),
2302 ("grow_memory", wasmtime_memory_grow_callback_t),
2303 ("finalizer", ctypes.CFUNCTYPE(None, ctypes.c_void_p)),
2304 ]
2305 env: ctypes._Pointer
2306 get_memory: ctypes._Pointer
2307 grow_memory: ctypes._Pointer
2308 finalizer: ctypes._Pointer
2310wasmtime_linear_memory_t = wasmtime_linear_memory
2312wasmtime_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))
2314class wasmtime_memory_creator(ctypes.Structure):
2315 _fields_ = [
2316 ("env", ctypes.c_void_p),
2317 ("new_memory", wasmtime_new_memory_callback_t),
2318 ("finalizer", ctypes.CFUNCTYPE(None, ctypes.c_void_p)),
2319 ]
2320 env: ctypes._Pointer
2321 new_memory: ctypes._Pointer
2322 finalizer: ctypes._Pointer
2324wasmtime_memory_creator_t = wasmtime_memory_creator
2326_wasmtime_config_host_memory_creator_set = dll.wasmtime_config_host_memory_creator_set
2327_wasmtime_config_host_memory_creator_set.restype = None
2328_wasmtime_config_host_memory_creator_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.POINTER(wasmtime_memory_creator_t)]
2329def wasmtime_config_host_memory_creator_set(arg0: Any, arg1: Any) -> None:
2330 return _wasmtime_config_host_memory_creator_set(arg0, arg1) # type: ignore
2332_wasmtime_config_memory_init_cow_set = dll.wasmtime_config_memory_init_cow_set
2333_wasmtime_config_memory_init_cow_set.restype = None
2334_wasmtime_config_memory_init_cow_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2335def wasmtime_config_memory_init_cow_set(arg0: Any, arg1: Any) -> None:
2336 return _wasmtime_config_memory_init_cow_set(arg0, arg1) # type: ignore
2338class wasmtime_pooling_allocation_config_t(ctypes.Structure):
2339 pass
2341_wasmtime_pooling_allocation_config_new = dll.wasmtime_pooling_allocation_config_new
2342_wasmtime_pooling_allocation_config_new.restype = ctypes.POINTER(wasmtime_pooling_allocation_config_t)
2343_wasmtime_pooling_allocation_config_new.argtypes = []
2344def wasmtime_pooling_allocation_config_new() -> ctypes._Pointer:
2345 return _wasmtime_pooling_allocation_config_new() # type: ignore
2347_wasmtime_pooling_allocation_config_delete = dll.wasmtime_pooling_allocation_config_delete
2348_wasmtime_pooling_allocation_config_delete.restype = None
2349_wasmtime_pooling_allocation_config_delete.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t)]
2350def wasmtime_pooling_allocation_config_delete(arg0: Any) -> None:
2351 return _wasmtime_pooling_allocation_config_delete(arg0) # type: ignore
2353_wasmtime_pooling_allocation_config_max_unused_warm_slots_set = dll.wasmtime_pooling_allocation_config_max_unused_warm_slots_set
2354_wasmtime_pooling_allocation_config_max_unused_warm_slots_set.restype = None
2355_wasmtime_pooling_allocation_config_max_unused_warm_slots_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_uint32]
2356def wasmtime_pooling_allocation_config_max_unused_warm_slots_set(arg0: Any, arg1: Any) -> None:
2357 return _wasmtime_pooling_allocation_config_max_unused_warm_slots_set(arg0, arg1) # type: ignore
2359_wasmtime_pooling_allocation_config_decommit_batch_size_set = dll.wasmtime_pooling_allocation_config_decommit_batch_size_set
2360_wasmtime_pooling_allocation_config_decommit_batch_size_set.restype = None
2361_wasmtime_pooling_allocation_config_decommit_batch_size_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_size_t]
2362def wasmtime_pooling_allocation_config_decommit_batch_size_set(arg0: Any, arg1: Any) -> None:
2363 return _wasmtime_pooling_allocation_config_decommit_batch_size_set(arg0, arg1) # type: ignore
2365_wasmtime_pooling_allocation_config_async_stack_keep_resident_set = dll.wasmtime_pooling_allocation_config_async_stack_keep_resident_set
2366_wasmtime_pooling_allocation_config_async_stack_keep_resident_set.restype = None
2367_wasmtime_pooling_allocation_config_async_stack_keep_resident_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_size_t]
2368def wasmtime_pooling_allocation_config_async_stack_keep_resident_set(arg0: Any, arg1: Any) -> None:
2369 return _wasmtime_pooling_allocation_config_async_stack_keep_resident_set(arg0, arg1) # type: ignore
2371_wasmtime_pooling_allocation_config_linear_memory_keep_resident_set = dll.wasmtime_pooling_allocation_config_linear_memory_keep_resident_set
2372_wasmtime_pooling_allocation_config_linear_memory_keep_resident_set.restype = None
2373_wasmtime_pooling_allocation_config_linear_memory_keep_resident_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_size_t]
2374def wasmtime_pooling_allocation_config_linear_memory_keep_resident_set(arg0: Any, arg1: Any) -> None:
2375 return _wasmtime_pooling_allocation_config_linear_memory_keep_resident_set(arg0, arg1) # type: ignore
2377_wasmtime_pooling_allocation_config_table_keep_resident_set = dll.wasmtime_pooling_allocation_config_table_keep_resident_set
2378_wasmtime_pooling_allocation_config_table_keep_resident_set.restype = None
2379_wasmtime_pooling_allocation_config_table_keep_resident_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_size_t]
2380def wasmtime_pooling_allocation_config_table_keep_resident_set(arg0: Any, arg1: Any) -> None:
2381 return _wasmtime_pooling_allocation_config_table_keep_resident_set(arg0, arg1) # type: ignore
2383_wasmtime_pooling_allocation_config_total_component_instances_set = dll.wasmtime_pooling_allocation_config_total_component_instances_set
2384_wasmtime_pooling_allocation_config_total_component_instances_set.restype = None
2385_wasmtime_pooling_allocation_config_total_component_instances_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_uint32]
2386def wasmtime_pooling_allocation_config_total_component_instances_set(arg0: Any, arg1: Any) -> None:
2387 return _wasmtime_pooling_allocation_config_total_component_instances_set(arg0, arg1) # type: ignore
2389_wasmtime_pooling_allocation_config_max_component_instance_size_set = dll.wasmtime_pooling_allocation_config_max_component_instance_size_set
2390_wasmtime_pooling_allocation_config_max_component_instance_size_set.restype = None
2391_wasmtime_pooling_allocation_config_max_component_instance_size_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_size_t]
2392def wasmtime_pooling_allocation_config_max_component_instance_size_set(arg0: Any, arg1: Any) -> None:
2393 return _wasmtime_pooling_allocation_config_max_component_instance_size_set(arg0, arg1) # type: ignore
2395_wasmtime_pooling_allocation_config_max_core_instances_per_component_set = dll.wasmtime_pooling_allocation_config_max_core_instances_per_component_set
2396_wasmtime_pooling_allocation_config_max_core_instances_per_component_set.restype = None
2397_wasmtime_pooling_allocation_config_max_core_instances_per_component_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_uint32]
2398def wasmtime_pooling_allocation_config_max_core_instances_per_component_set(arg0: Any, arg1: Any) -> None:
2399 return _wasmtime_pooling_allocation_config_max_core_instances_per_component_set(arg0, arg1) # type: ignore
2401_wasmtime_pooling_allocation_config_max_memories_per_component_set = dll.wasmtime_pooling_allocation_config_max_memories_per_component_set
2402_wasmtime_pooling_allocation_config_max_memories_per_component_set.restype = None
2403_wasmtime_pooling_allocation_config_max_memories_per_component_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_uint32]
2404def wasmtime_pooling_allocation_config_max_memories_per_component_set(arg0: Any, arg1: Any) -> None:
2405 return _wasmtime_pooling_allocation_config_max_memories_per_component_set(arg0, arg1) # type: ignore
2407_wasmtime_pooling_allocation_config_max_tables_per_component_set = dll.wasmtime_pooling_allocation_config_max_tables_per_component_set
2408_wasmtime_pooling_allocation_config_max_tables_per_component_set.restype = None
2409_wasmtime_pooling_allocation_config_max_tables_per_component_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_uint32]
2410def wasmtime_pooling_allocation_config_max_tables_per_component_set(arg0: Any, arg1: Any) -> None:
2411 return _wasmtime_pooling_allocation_config_max_tables_per_component_set(arg0, arg1) # type: ignore
2413_wasmtime_pooling_allocation_config_total_memories_set = dll.wasmtime_pooling_allocation_config_total_memories_set
2414_wasmtime_pooling_allocation_config_total_memories_set.restype = None
2415_wasmtime_pooling_allocation_config_total_memories_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_uint32]
2416def wasmtime_pooling_allocation_config_total_memories_set(arg0: Any, arg1: Any) -> None:
2417 return _wasmtime_pooling_allocation_config_total_memories_set(arg0, arg1) # type: ignore
2419_wasmtime_pooling_allocation_config_total_tables_set = dll.wasmtime_pooling_allocation_config_total_tables_set
2420_wasmtime_pooling_allocation_config_total_tables_set.restype = None
2421_wasmtime_pooling_allocation_config_total_tables_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_uint32]
2422def wasmtime_pooling_allocation_config_total_tables_set(arg0: Any, arg1: Any) -> None:
2423 return _wasmtime_pooling_allocation_config_total_tables_set(arg0, arg1) # type: ignore
2425_wasmtime_pooling_allocation_config_total_stacks_set = dll.wasmtime_pooling_allocation_config_total_stacks_set
2426_wasmtime_pooling_allocation_config_total_stacks_set.restype = None
2427_wasmtime_pooling_allocation_config_total_stacks_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_uint32]
2428def wasmtime_pooling_allocation_config_total_stacks_set(arg0: Any, arg1: Any) -> None:
2429 return _wasmtime_pooling_allocation_config_total_stacks_set(arg0, arg1) # type: ignore
2431_wasmtime_pooling_allocation_config_total_core_instances_set = dll.wasmtime_pooling_allocation_config_total_core_instances_set
2432_wasmtime_pooling_allocation_config_total_core_instances_set.restype = None
2433_wasmtime_pooling_allocation_config_total_core_instances_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_uint32]
2434def wasmtime_pooling_allocation_config_total_core_instances_set(arg0: Any, arg1: Any) -> None:
2435 return _wasmtime_pooling_allocation_config_total_core_instances_set(arg0, arg1) # type: ignore
2437_wasmtime_pooling_allocation_config_max_core_instance_size_set = dll.wasmtime_pooling_allocation_config_max_core_instance_size_set
2438_wasmtime_pooling_allocation_config_max_core_instance_size_set.restype = None
2439_wasmtime_pooling_allocation_config_max_core_instance_size_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_size_t]
2440def wasmtime_pooling_allocation_config_max_core_instance_size_set(arg0: Any, arg1: Any) -> None:
2441 return _wasmtime_pooling_allocation_config_max_core_instance_size_set(arg0, arg1) # type: ignore
2443_wasmtime_pooling_allocation_config_max_tables_per_module_set = dll.wasmtime_pooling_allocation_config_max_tables_per_module_set
2444_wasmtime_pooling_allocation_config_max_tables_per_module_set.restype = None
2445_wasmtime_pooling_allocation_config_max_tables_per_module_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_uint32]
2446def wasmtime_pooling_allocation_config_max_tables_per_module_set(arg0: Any, arg1: Any) -> None:
2447 return _wasmtime_pooling_allocation_config_max_tables_per_module_set(arg0, arg1) # type: ignore
2449_wasmtime_pooling_allocation_config_table_elements_set = dll.wasmtime_pooling_allocation_config_table_elements_set
2450_wasmtime_pooling_allocation_config_table_elements_set.restype = None
2451_wasmtime_pooling_allocation_config_table_elements_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_size_t]
2452def wasmtime_pooling_allocation_config_table_elements_set(arg0: Any, arg1: Any) -> None:
2453 return _wasmtime_pooling_allocation_config_table_elements_set(arg0, arg1) # type: ignore
2455_wasmtime_pooling_allocation_config_max_memories_per_module_set = dll.wasmtime_pooling_allocation_config_max_memories_per_module_set
2456_wasmtime_pooling_allocation_config_max_memories_per_module_set.restype = None
2457_wasmtime_pooling_allocation_config_max_memories_per_module_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_uint32]
2458def wasmtime_pooling_allocation_config_max_memories_per_module_set(arg0: Any, arg1: Any) -> None:
2459 return _wasmtime_pooling_allocation_config_max_memories_per_module_set(arg0, arg1) # type: ignore
2461_wasmtime_pooling_allocation_config_max_memory_size_set = dll.wasmtime_pooling_allocation_config_max_memory_size_set
2462_wasmtime_pooling_allocation_config_max_memory_size_set.restype = None
2463_wasmtime_pooling_allocation_config_max_memory_size_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_size_t]
2464def wasmtime_pooling_allocation_config_max_memory_size_set(arg0: Any, arg1: Any) -> None:
2465 return _wasmtime_pooling_allocation_config_max_memory_size_set(arg0, arg1) # type: ignore
2467_wasmtime_pooling_allocation_config_total_gc_heaps_set = dll.wasmtime_pooling_allocation_config_total_gc_heaps_set
2468_wasmtime_pooling_allocation_config_total_gc_heaps_set.restype = None
2469_wasmtime_pooling_allocation_config_total_gc_heaps_set.argtypes = [ctypes.POINTER(wasmtime_pooling_allocation_config_t), ctypes.c_uint32]
2470def wasmtime_pooling_allocation_config_total_gc_heaps_set(arg0: Any, arg1: Any) -> None:
2471 return _wasmtime_pooling_allocation_config_total_gc_heaps_set(arg0, arg1) # type: ignore
2473_wasmtime_pooling_allocation_strategy_set = dll.wasmtime_pooling_allocation_strategy_set
2474_wasmtime_pooling_allocation_strategy_set.restype = None
2475_wasmtime_pooling_allocation_strategy_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.POINTER(wasmtime_pooling_allocation_config_t)]
2476def wasmtime_pooling_allocation_strategy_set(arg0: Any, arg1: Any) -> None:
2477 return _wasmtime_pooling_allocation_strategy_set(arg0, arg1) # type: ignore
2479_wasmtime_config_wasm_component_model_set = dll.wasmtime_config_wasm_component_model_set
2480_wasmtime_config_wasm_component_model_set.restype = None
2481_wasmtime_config_wasm_component_model_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2482def wasmtime_config_wasm_component_model_set(arg0: Any, arg1: Any) -> None:
2483 return _wasmtime_config_wasm_component_model_set(arg0, arg1) # type: ignore
2485_wasmtime_config_concurrency_support_set = dll.wasmtime_config_concurrency_support_set
2486_wasmtime_config_concurrency_support_set.restype = None
2487_wasmtime_config_concurrency_support_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
2488def wasmtime_config_concurrency_support_set(arg0: Any, arg1: Any) -> None:
2489 return _wasmtime_config_concurrency_support_set(arg0, arg1) # type: ignore
2491_wasmtime_engine_clone = dll.wasmtime_engine_clone
2492_wasmtime_engine_clone.restype = ctypes.POINTER(wasm_engine_t)
2493_wasmtime_engine_clone.argtypes = [ctypes.POINTER(wasm_engine_t)]
2494def wasmtime_engine_clone(engine: Any) -> ctypes._Pointer:
2495 return _wasmtime_engine_clone(engine) # type: ignore
2497_wasmtime_engine_increment_epoch = dll.wasmtime_engine_increment_epoch
2498_wasmtime_engine_increment_epoch.restype = None
2499_wasmtime_engine_increment_epoch.argtypes = [ctypes.POINTER(wasm_engine_t)]
2500def wasmtime_engine_increment_epoch(engine: Any) -> None:
2501 return _wasmtime_engine_increment_epoch(engine) # type: ignore
2503_wasmtime_engine_is_pulley = dll.wasmtime_engine_is_pulley
2504_wasmtime_engine_is_pulley.restype = ctypes.c_bool
2505_wasmtime_engine_is_pulley.argtypes = [ctypes.POINTER(wasm_engine_t)]
2506def wasmtime_engine_is_pulley(engine: Any) -> bool:
2507 return _wasmtime_engine_is_pulley(engine) # type: ignore
2509class wasmtime_module(ctypes.Structure):
2510 pass
2512wasmtime_module_t = wasmtime_module
2514_wasmtime_module_new = dll.wasmtime_module_new
2515_wasmtime_module_new.restype = ctypes.POINTER(wasmtime_error_t)
2516_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))]
2517def wasmtime_module_new(engine: Any, wasm: Any, wasm_len: Any, ret: Any) -> ctypes._Pointer:
2518 return _wasmtime_module_new(engine, wasm, wasm_len, ret) # type: ignore
2520_wasmtime_module_delete = dll.wasmtime_module_delete
2521_wasmtime_module_delete.restype = None
2522_wasmtime_module_delete.argtypes = [ctypes.POINTER(wasmtime_module_t)]
2523def wasmtime_module_delete(m: Any) -> None:
2524 return _wasmtime_module_delete(m) # type: ignore
2526_wasmtime_module_clone = dll.wasmtime_module_clone
2527_wasmtime_module_clone.restype = ctypes.POINTER(wasmtime_module_t)
2528_wasmtime_module_clone.argtypes = [ctypes.POINTER(wasmtime_module_t)]
2529def wasmtime_module_clone(m: Any) -> ctypes._Pointer:
2530 return _wasmtime_module_clone(m) # type: ignore
2532_wasmtime_module_imports = dll.wasmtime_module_imports
2533_wasmtime_module_imports.restype = None
2534_wasmtime_module_imports.argtypes = [ctypes.POINTER(wasmtime_module_t), ctypes.POINTER(wasm_importtype_vec_t)]
2535def wasmtime_module_imports(module: Any, out: Any) -> None:
2536 return _wasmtime_module_imports(module, out) # type: ignore
2538_wasmtime_module_exports = dll.wasmtime_module_exports
2539_wasmtime_module_exports.restype = None
2540_wasmtime_module_exports.argtypes = [ctypes.POINTER(wasmtime_module_t), ctypes.POINTER(wasm_exporttype_vec_t)]
2541def wasmtime_module_exports(module: Any, out: Any) -> None:
2542 return _wasmtime_module_exports(module, out) # type: ignore
2544_wasmtime_module_validate = dll.wasmtime_module_validate
2545_wasmtime_module_validate.restype = ctypes.POINTER(wasmtime_error_t)
2546_wasmtime_module_validate.argtypes = [ctypes.POINTER(wasm_engine_t), ctypes.POINTER(ctypes.c_uint8), ctypes.c_size_t]
2547def wasmtime_module_validate(engine: Any, wasm: Any, wasm_len: Any) -> ctypes._Pointer:
2548 return _wasmtime_module_validate(engine, wasm, wasm_len) # type: ignore
2550_wasmtime_module_serialize = dll.wasmtime_module_serialize
2551_wasmtime_module_serialize.restype = ctypes.POINTER(wasmtime_error_t)
2552_wasmtime_module_serialize.argtypes = [ctypes.POINTER(wasmtime_module_t), ctypes.POINTER(wasm_byte_vec_t)]
2553def wasmtime_module_serialize(module: Any, ret: Any) -> ctypes._Pointer:
2554 return _wasmtime_module_serialize(module, ret) # type: ignore
2556_wasmtime_module_deserialize = dll.wasmtime_module_deserialize
2557_wasmtime_module_deserialize.restype = ctypes.POINTER(wasmtime_error_t)
2558_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))]
2559def wasmtime_module_deserialize(engine: Any, bytes: Any, bytes_len: Any, ret: Any) -> ctypes._Pointer:
2560 return _wasmtime_module_deserialize(engine, bytes, bytes_len, ret) # type: ignore
2562_wasmtime_module_deserialize_file = dll.wasmtime_module_deserialize_file
2563_wasmtime_module_deserialize_file.restype = ctypes.POINTER(wasmtime_error_t)
2564_wasmtime_module_deserialize_file.argtypes = [ctypes.POINTER(wasm_engine_t), ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.POINTER(wasmtime_module_t))]
2565def wasmtime_module_deserialize_file(engine: Any, path: Any, ret: Any) -> ctypes._Pointer:
2566 return _wasmtime_module_deserialize_file(engine, path, ret) # type: ignore
2568_wasmtime_module_image_range = dll.wasmtime_module_image_range
2569_wasmtime_module_image_range.restype = None
2570_wasmtime_module_image_range.argtypes = [ctypes.POINTER(wasmtime_module_t), ctypes.POINTER(ctypes.c_void_p), ctypes.POINTER(ctypes.c_void_p)]
2571def wasmtime_module_image_range(module: Any, start: Any, end: Any) -> None:
2572 return _wasmtime_module_image_range(module, start, end) # type: ignore
2574class wasmtime_sharedmemory(ctypes.Structure):
2575 pass
2577wasmtime_sharedmemory_t = wasmtime_sharedmemory
2579_wasmtime_sharedmemory_new = dll.wasmtime_sharedmemory_new
2580_wasmtime_sharedmemory_new.restype = ctypes.POINTER(wasmtime_error_t)
2581_wasmtime_sharedmemory_new.argtypes = [ctypes.POINTER(wasm_engine_t), ctypes.POINTER(wasm_memorytype_t), ctypes.POINTER(ctypes.POINTER(wasmtime_sharedmemory_t))]
2582def wasmtime_sharedmemory_new(engine: Any, ty: Any, ret: Any) -> ctypes._Pointer:
2583 return _wasmtime_sharedmemory_new(engine, ty, ret) # type: ignore
2585_wasmtime_sharedmemory_delete = dll.wasmtime_sharedmemory_delete
2586_wasmtime_sharedmemory_delete.restype = None
2587_wasmtime_sharedmemory_delete.argtypes = [ctypes.POINTER(wasmtime_sharedmemory_t)]
2588def wasmtime_sharedmemory_delete(memory: Any) -> None:
2589 return _wasmtime_sharedmemory_delete(memory) # type: ignore
2591_wasmtime_sharedmemory_clone = dll.wasmtime_sharedmemory_clone
2592_wasmtime_sharedmemory_clone.restype = ctypes.POINTER(wasmtime_sharedmemory_t)
2593_wasmtime_sharedmemory_clone.argtypes = [ctypes.POINTER(wasmtime_sharedmemory_t)]
2594def wasmtime_sharedmemory_clone(memory: Any) -> ctypes._Pointer:
2595 return _wasmtime_sharedmemory_clone(memory) # type: ignore
2597_wasmtime_sharedmemory_type = dll.wasmtime_sharedmemory_type
2598_wasmtime_sharedmemory_type.restype = ctypes.POINTER(wasm_memorytype_t)
2599_wasmtime_sharedmemory_type.argtypes = [ctypes.POINTER(wasmtime_sharedmemory_t)]
2600def wasmtime_sharedmemory_type(memory: Any) -> ctypes._Pointer:
2601 return _wasmtime_sharedmemory_type(memory) # type: ignore
2603_wasmtime_sharedmemory_data = dll.wasmtime_sharedmemory_data
2604_wasmtime_sharedmemory_data.restype = ctypes.POINTER(ctypes.c_uint8)
2605_wasmtime_sharedmemory_data.argtypes = [ctypes.POINTER(wasmtime_sharedmemory_t)]
2606def wasmtime_sharedmemory_data(memory: Any) -> ctypes._Pointer:
2607 return _wasmtime_sharedmemory_data(memory) # type: ignore
2609_wasmtime_sharedmemory_data_size = dll.wasmtime_sharedmemory_data_size
2610_wasmtime_sharedmemory_data_size.restype = ctypes.c_size_t
2611_wasmtime_sharedmemory_data_size.argtypes = [ctypes.POINTER(wasmtime_sharedmemory_t)]
2612def wasmtime_sharedmemory_data_size(memory: Any) -> int:
2613 return _wasmtime_sharedmemory_data_size(memory) # type: ignore
2615_wasmtime_sharedmemory_size = dll.wasmtime_sharedmemory_size
2616_wasmtime_sharedmemory_size.restype = ctypes.c_uint64
2617_wasmtime_sharedmemory_size.argtypes = [ctypes.POINTER(wasmtime_sharedmemory_t)]
2618def wasmtime_sharedmemory_size(memory: Any) -> int:
2619 return _wasmtime_sharedmemory_size(memory) # type: ignore
2621_wasmtime_sharedmemory_grow = dll.wasmtime_sharedmemory_grow
2622_wasmtime_sharedmemory_grow.restype = ctypes.POINTER(wasmtime_error_t)
2623_wasmtime_sharedmemory_grow.argtypes = [ctypes.POINTER(wasmtime_sharedmemory_t), ctypes.c_uint64, ctypes.POINTER(ctypes.c_uint64)]
2624def wasmtime_sharedmemory_grow(memory: Any, delta: Any, prev_size: Any) -> ctypes._Pointer:
2625 return _wasmtime_sharedmemory_grow(memory, delta, prev_size) # type: ignore
2627class wasmtime_store(ctypes.Structure):
2628 pass
2630wasmtime_store_t = wasmtime_store
2632class wasmtime_context(ctypes.Structure):
2633 pass
2635wasmtime_context_t = wasmtime_context
2637_wasmtime_store_new = dll.wasmtime_store_new
2638_wasmtime_store_new.restype = ctypes.POINTER(wasmtime_store_t)
2639_wasmtime_store_new.argtypes = [ctypes.POINTER(wasm_engine_t), ctypes.c_void_p, ctypes.CFUNCTYPE(None, ctypes.c_void_p)]
2640def wasmtime_store_new(engine: Any, data: Any, finalizer: Any) -> ctypes._Pointer:
2641 return _wasmtime_store_new(engine, data, finalizer) # type: ignore
2643_wasmtime_store_context = dll.wasmtime_store_context
2644_wasmtime_store_context.restype = ctypes.POINTER(wasmtime_context_t)
2645_wasmtime_store_context.argtypes = [ctypes.POINTER(wasmtime_store_t)]
2646def wasmtime_store_context(store: Any) -> ctypes._Pointer:
2647 return _wasmtime_store_context(store) # type: ignore
2649_wasmtime_store_limiter = dll.wasmtime_store_limiter
2650_wasmtime_store_limiter.restype = None
2651_wasmtime_store_limiter.argtypes = [ctypes.POINTER(wasmtime_store_t), ctypes.c_int64, ctypes.c_int64, ctypes.c_int64, ctypes.c_int64, ctypes.c_int64]
2652def wasmtime_store_limiter(store: Any, memory_size: Any, table_elements: Any, instances: Any, tables: Any, memories: Any) -> None:
2653 return _wasmtime_store_limiter(store, memory_size, table_elements, instances, tables, memories) # type: ignore
2655_wasmtime_store_delete = dll.wasmtime_store_delete
2656_wasmtime_store_delete.restype = None
2657_wasmtime_store_delete.argtypes = [ctypes.POINTER(wasmtime_store_t)]
2658def wasmtime_store_delete(store: Any) -> None:
2659 return _wasmtime_store_delete(store) # type: ignore
2661_wasmtime_context_get_data = dll.wasmtime_context_get_data
2662_wasmtime_context_get_data.restype = ctypes.c_void_p
2663_wasmtime_context_get_data.argtypes = [ctypes.POINTER(wasmtime_context_t)]
2664def wasmtime_context_get_data(context: Any) -> ctypes._Pointer:
2665 return _wasmtime_context_get_data(context) # type: ignore
2667_wasmtime_context_set_data = dll.wasmtime_context_set_data
2668_wasmtime_context_set_data.restype = None
2669_wasmtime_context_set_data.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.c_void_p]
2670def wasmtime_context_set_data(context: Any, data: Any) -> None:
2671 return _wasmtime_context_set_data(context, data) # type: ignore
2673_wasmtime_context_gc = dll.wasmtime_context_gc
2674_wasmtime_context_gc.restype = ctypes.POINTER(wasmtime_error_t)
2675_wasmtime_context_gc.argtypes = [ctypes.POINTER(wasmtime_context_t)]
2676def wasmtime_context_gc(context: Any) -> ctypes._Pointer:
2677 return _wasmtime_context_gc(context) # type: ignore
2679_wasmtime_context_set_fuel = dll.wasmtime_context_set_fuel
2680_wasmtime_context_set_fuel.restype = ctypes.POINTER(wasmtime_error_t)
2681_wasmtime_context_set_fuel.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.c_uint64]
2682def wasmtime_context_set_fuel(store: Any, fuel: Any) -> ctypes._Pointer:
2683 return _wasmtime_context_set_fuel(store, fuel) # type: ignore
2685_wasmtime_context_get_fuel = dll.wasmtime_context_get_fuel
2686_wasmtime_context_get_fuel.restype = ctypes.POINTER(wasmtime_error_t)
2687_wasmtime_context_get_fuel.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(ctypes.c_uint64)]
2688def wasmtime_context_get_fuel(context: Any, fuel: Any) -> ctypes._Pointer:
2689 return _wasmtime_context_get_fuel(context, fuel) # type: ignore
2691_wasmtime_context_set_wasi = dll.wasmtime_context_set_wasi
2692_wasmtime_context_set_wasi.restype = ctypes.POINTER(wasmtime_error_t)
2693_wasmtime_context_set_wasi.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasi_config_t)]
2694def wasmtime_context_set_wasi(context: Any, wasi: Any) -> ctypes._Pointer:
2695 return _wasmtime_context_set_wasi(context, wasi) # type: ignore
2697_wasmtime_context_set_epoch_deadline = dll.wasmtime_context_set_epoch_deadline
2698_wasmtime_context_set_epoch_deadline.restype = None
2699_wasmtime_context_set_epoch_deadline.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.c_uint64]
2700def wasmtime_context_set_epoch_deadline(context: Any, ticks_beyond_current: Any) -> None:
2701 return _wasmtime_context_set_epoch_deadline(context, ticks_beyond_current) # type: ignore
2703wasmtime_update_deadline_kind_t = ctypes.c_uint8
2705_wasmtime_store_epoch_deadline_callback = dll.wasmtime_store_epoch_deadline_callback
2706_wasmtime_store_epoch_deadline_callback.restype = None
2707_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)]
2708def wasmtime_store_epoch_deadline_callback(store: Any, func: Any, data: Any, finalizer: Any) -> None:
2709 return _wasmtime_store_epoch_deadline_callback(store, func, data, finalizer) # type: ignore
2711class wasmtime_func(ctypes.Structure):
2712 _fields_ = [
2713 ("store_id", ctypes.c_uint64),
2714 ("__private", ctypes.c_void_p),
2715 ]
2716 store_id: int
2717 __private: ctypes._Pointer
2719wasmtime_func_t = wasmtime_func
2722class wasmtime_table_anon_0(ctypes.Structure):
2723 _fields_ = [
2724 ("store_id", ctypes.c_uint64),
2725 ("__private1", ctypes.c_uint32),
2726 ]
2727 store_id: int
2728 __private1: int
2729class wasmtime_table(ctypes.Structure):
2730 _fields_ = [
2731 ("_anon_1", wasmtime_table_anon_0),
2732 ("__private2", ctypes.c_uint32),
2733 ]
2734 _anon_1: wasmtime_table_anon_0
2735 __private2: int
2737wasmtime_table_t = wasmtime_table
2740class wasmtime_memory_anon_0(ctypes.Structure):
2741 _fields_ = [
2742 ("store_id", ctypes.c_uint64),
2743 ("__private1", ctypes.c_uint32),
2744 ]
2745 store_id: int
2746 __private1: int
2747class wasmtime_memory(ctypes.Structure):
2748 _fields_ = [
2749 ("_anon_1", wasmtime_memory_anon_0),
2750 ("__private2", ctypes.c_uint32),
2751 ]
2752 _anon_1: wasmtime_memory_anon_0
2753 __private2: int
2755wasmtime_memory_t = wasmtime_memory
2757class wasmtime_global(ctypes.Structure):
2758 _fields_ = [
2759 ("store_id", ctypes.c_uint64),
2760 ("__private1", ctypes.c_uint32),
2761 ("__private2", ctypes.c_uint32),
2762 ("__private3", ctypes.c_uint32),
2763 ]
2764 store_id: int
2765 __private1: int
2766 __private2: int
2767 __private3: int
2769wasmtime_global_t = wasmtime_global
2771wasmtime_extern_kind_t = ctypes.c_uint8
2773class wasmtime_extern_union(ctypes.Union):
2774 _fields_ = [
2775 ("func", wasmtime_func_t),
2776 ("global_", wasmtime_global_t),
2777 ("table", wasmtime_table_t),
2778 ("memory", wasmtime_memory_t),
2779 ("sharedmemory", ctypes.POINTER(wasmtime_sharedmemory)),
2780 ]
2781 func: wasmtime_func_t
2782 global_: wasmtime_global_t
2783 table: wasmtime_table_t
2784 memory: wasmtime_memory_t
2785 sharedmemory: ctypes._Pointer
2787wasmtime_extern_union_t = wasmtime_extern_union
2789class wasmtime_extern(ctypes.Structure):
2790 _fields_ = [
2791 ("kind", wasmtime_extern_kind_t),
2792 ("of", wasmtime_extern_union_t),
2793 ]
2794 kind: wasmtime_extern_kind_t
2795 of: wasmtime_extern_union_t
2797wasmtime_extern_t = wasmtime_extern
2799_wasmtime_extern_delete = dll.wasmtime_extern_delete
2800_wasmtime_extern_delete.restype = None
2801_wasmtime_extern_delete.argtypes = [ctypes.POINTER(wasmtime_extern_t)]
2802def wasmtime_extern_delete(val: Any) -> None:
2803 return _wasmtime_extern_delete(val) # type: ignore
2805_wasmtime_extern_type = dll.wasmtime_extern_type
2806_wasmtime_extern_type.restype = ctypes.POINTER(wasm_externtype_t)
2807_wasmtime_extern_type.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_extern_t)]
2808def wasmtime_extern_type(context: Any, val: Any) -> ctypes._Pointer:
2809 return _wasmtime_extern_type(context, val) # type: ignore
2811class wasmtime_anyref(ctypes.Structure):
2812 _fields_ = [
2813 ("store_id", ctypes.c_uint64),
2814 ("__private1", ctypes.c_uint32),
2815 ("__private2", ctypes.c_uint32),
2816 ("__private3", ctypes.c_void_p),
2817 ]
2818 store_id: int
2819 __private1: int
2820 __private2: int
2821 __private3: ctypes._Pointer
2823wasmtime_anyref_t = wasmtime_anyref
2825_wasmtime_anyref_clone = dll.wasmtime_anyref_clone
2826_wasmtime_anyref_clone.restype = None
2827_wasmtime_anyref_clone.argtypes = [ctypes.POINTER(wasmtime_anyref_t), ctypes.POINTER(wasmtime_anyref_t)]
2828def wasmtime_anyref_clone(anyref: Any, out: Any) -> None:
2829 return _wasmtime_anyref_clone(anyref, out) # type: ignore
2831_wasmtime_anyref_unroot = dll.wasmtime_anyref_unroot
2832_wasmtime_anyref_unroot.restype = None
2833_wasmtime_anyref_unroot.argtypes = [ctypes.POINTER(wasmtime_anyref_t)]
2834def wasmtime_anyref_unroot(ref: Any) -> None:
2835 return _wasmtime_anyref_unroot(ref) # type: ignore
2837_wasmtime_anyref_from_raw = dll.wasmtime_anyref_from_raw
2838_wasmtime_anyref_from_raw.restype = None
2839_wasmtime_anyref_from_raw.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.c_uint32, ctypes.POINTER(wasmtime_anyref_t)]
2840def wasmtime_anyref_from_raw(context: Any, raw: Any, out: Any) -> None:
2841 return _wasmtime_anyref_from_raw(context, raw, out) # type: ignore
2843_wasmtime_anyref_to_raw = dll.wasmtime_anyref_to_raw
2844_wasmtime_anyref_to_raw.restype = ctypes.c_uint32
2845_wasmtime_anyref_to_raw.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_anyref_t)]
2846def wasmtime_anyref_to_raw(context: Any, ref: Any) -> int:
2847 return _wasmtime_anyref_to_raw(context, ref) # type: ignore
2849_wasmtime_anyref_from_i31 = dll.wasmtime_anyref_from_i31
2850_wasmtime_anyref_from_i31.restype = None
2851_wasmtime_anyref_from_i31.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.c_uint32, ctypes.POINTER(wasmtime_anyref_t)]
2852def wasmtime_anyref_from_i31(context: Any, i31val: Any, out: Any) -> None:
2853 return _wasmtime_anyref_from_i31(context, i31val, out) # type: ignore
2855_wasmtime_anyref_i31_get_u = dll.wasmtime_anyref_i31_get_u
2856_wasmtime_anyref_i31_get_u.restype = ctypes.c_bool
2857_wasmtime_anyref_i31_get_u.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_anyref_t), ctypes.POINTER(ctypes.c_uint32)]
2858def wasmtime_anyref_i31_get_u(context: Any, anyref: Any, dst: Any) -> bool:
2859 return _wasmtime_anyref_i31_get_u(context, anyref, dst) # type: ignore
2861_wasmtime_anyref_i31_get_s = dll.wasmtime_anyref_i31_get_s
2862_wasmtime_anyref_i31_get_s.restype = ctypes.c_bool
2863_wasmtime_anyref_i31_get_s.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_anyref_t), ctypes.POINTER(ctypes.c_int32)]
2864def wasmtime_anyref_i31_get_s(context: Any, anyref: Any, dst: Any) -> bool:
2865 return _wasmtime_anyref_i31_get_s(context, anyref, dst) # type: ignore
2867class wasmtime_externref(ctypes.Structure):
2868 _fields_ = [
2869 ("store_id", ctypes.c_uint64),
2870 ("__private1", ctypes.c_uint32),
2871 ("__private2", ctypes.c_uint32),
2872 ("__private3", ctypes.c_void_p),
2873 ]
2874 store_id: int
2875 __private1: int
2876 __private2: int
2877 __private3: ctypes._Pointer
2879wasmtime_externref_t = wasmtime_externref
2881_wasmtime_externref_new = dll.wasmtime_externref_new
2882_wasmtime_externref_new.restype = ctypes.c_bool
2883_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)]
2884def wasmtime_externref_new(context: Any, data: Any, finalizer: Any, out: Any) -> bool:
2885 return _wasmtime_externref_new(context, data, finalizer, out) # type: ignore
2887_wasmtime_externref_data = dll.wasmtime_externref_data
2888_wasmtime_externref_data.restype = ctypes.c_void_p
2889_wasmtime_externref_data.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_externref_t)]
2890def wasmtime_externref_data(context: Any, data: Any) -> ctypes._Pointer:
2891 return _wasmtime_externref_data(context, data) # type: ignore
2893_wasmtime_externref_clone = dll.wasmtime_externref_clone
2894_wasmtime_externref_clone.restype = None
2895_wasmtime_externref_clone.argtypes = [ctypes.POINTER(wasmtime_externref_t), ctypes.POINTER(wasmtime_externref_t)]
2896def wasmtime_externref_clone(ref: Any, out: Any) -> None:
2897 return _wasmtime_externref_clone(ref, out) # type: ignore
2899_wasmtime_externref_unroot = dll.wasmtime_externref_unroot
2900_wasmtime_externref_unroot.restype = None
2901_wasmtime_externref_unroot.argtypes = [ctypes.POINTER(wasmtime_externref_t)]
2902def wasmtime_externref_unroot(ref: Any) -> None:
2903 return _wasmtime_externref_unroot(ref) # type: ignore
2905_wasmtime_externref_from_raw = dll.wasmtime_externref_from_raw
2906_wasmtime_externref_from_raw.restype = None
2907_wasmtime_externref_from_raw.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.c_uint32, ctypes.POINTER(wasmtime_externref_t)]
2908def wasmtime_externref_from_raw(context: Any, raw: Any, out: Any) -> None:
2909 return _wasmtime_externref_from_raw(context, raw, out) # type: ignore
2911_wasmtime_externref_to_raw = dll.wasmtime_externref_to_raw
2912_wasmtime_externref_to_raw.restype = ctypes.c_uint32
2913_wasmtime_externref_to_raw.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_externref_t)]
2914def wasmtime_externref_to_raw(context: Any, ref: Any) -> int:
2915 return _wasmtime_externref_to_raw(context, ref) # type: ignore
2917wasmtime_valkind_t = ctypes.c_uint8
2919wasmtime_v128 = ctypes.c_uint8 * 16
2921class wasmtime_valunion(ctypes.Union):
2922 _fields_ = [
2923 ("i32", ctypes.c_int32),
2924 ("i64", ctypes.c_int64),
2925 ("f32", ctypes.c_float),
2926 ("f64", ctypes.c_double),
2927 ("anyref", wasmtime_anyref_t),
2928 ("externref", wasmtime_externref_t),
2929 ("funcref", wasmtime_func_t),
2930 ("v128", wasmtime_v128),
2931 ]
2932 i32: int
2933 i64: int
2934 f32: float
2935 f64: float
2936 anyref: wasmtime_anyref_t
2937 externref: wasmtime_externref_t
2938 funcref: wasmtime_func_t
2939 v128: wasmtime_v128 # type: ignore
2941wasmtime_valunion_t = wasmtime_valunion
2943class wasmtime_val_raw(ctypes.Union):
2944 _fields_ = [
2945 ("i32", ctypes.c_int32),
2946 ("i64", ctypes.c_int64),
2947 ("f32", ctypes.c_float),
2948 ("f64", ctypes.c_double),
2949 ("v128", wasmtime_v128),
2950 ("anyref", ctypes.c_uint32),
2951 ("externref", ctypes.c_uint32),
2952 ("funcref", ctypes.c_void_p),
2953 ]
2954 i32: int
2955 i64: int
2956 f32: float
2957 f64: float
2958 v128: wasmtime_v128 # type: ignore
2959 anyref: int
2960 externref: int
2961 funcref: ctypes._Pointer
2963wasmtime_val_raw_t = wasmtime_val_raw
2965class wasmtime_val(ctypes.Structure):
2966 _fields_ = [
2967 ("kind", wasmtime_valkind_t),
2968 ("of", wasmtime_valunion_t),
2969 ]
2970 kind: wasmtime_valkind_t
2971 of: wasmtime_valunion_t
2973wasmtime_val_t = wasmtime_val
2975_wasmtime_val_unroot = dll.wasmtime_val_unroot
2976_wasmtime_val_unroot.restype = None
2977_wasmtime_val_unroot.argtypes = [ctypes.POINTER(wasmtime_val_t)]
2978def wasmtime_val_unroot(val: Any) -> None:
2979 return _wasmtime_val_unroot(val) # type: ignore
2981_wasmtime_val_clone = dll.wasmtime_val_clone
2982_wasmtime_val_clone.restype = None
2983_wasmtime_val_clone.argtypes = [ctypes.POINTER(wasmtime_val_t), ctypes.POINTER(wasmtime_val_t)]
2984def wasmtime_val_clone(src: Any, dst: Any) -> None:
2985 return _wasmtime_val_clone(src, dst) # type: ignore
2987class wasmtime_caller(ctypes.Structure):
2988 pass
2990wasmtime_caller_t = wasmtime_caller
2992wasmtime_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)
2994_wasmtime_func_new = dll.wasmtime_func_new
2995_wasmtime_func_new.restype = None
2996_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)]
2997def wasmtime_func_new(store: Any, type: Any, callback: Any, env: Any, finalizer: Any, ret: Any) -> None:
2998 return _wasmtime_func_new(store, type, callback, env, finalizer, ret) # type: ignore
3000wasmtime_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)
3002_wasmtime_func_new_unchecked = dll.wasmtime_func_new_unchecked
3003_wasmtime_func_new_unchecked.restype = None
3004_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)]
3005def wasmtime_func_new_unchecked(store: Any, type: Any, callback: Any, env: Any, finalizer: Any, ret: Any) -> None:
3006 return _wasmtime_func_new_unchecked(store, type, callback, env, finalizer, ret) # type: ignore
3008_wasmtime_func_type = dll.wasmtime_func_type
3009_wasmtime_func_type.restype = ctypes.POINTER(wasm_functype_t)
3010_wasmtime_func_type.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_func_t)]
3011def wasmtime_func_type(store: Any, func: Any) -> ctypes._Pointer:
3012 return _wasmtime_func_type(store, func) # type: ignore
3014_wasmtime_func_call = dll.wasmtime_func_call
3015_wasmtime_func_call.restype = ctypes.POINTER(wasmtime_error_t)
3016_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))]
3017def wasmtime_func_call(store: Any, func: Any, args: Any, nargs: Any, results: Any, nresults: Any, trap: Any) -> ctypes._Pointer:
3018 return _wasmtime_func_call(store, func, args, nargs, results, nresults, trap) # type: ignore
3020_wasmtime_func_call_unchecked = dll.wasmtime_func_call_unchecked
3021_wasmtime_func_call_unchecked.restype = ctypes.POINTER(wasmtime_error_t)
3022_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))]
3023def wasmtime_func_call_unchecked(store: Any, func: Any, args_and_results: Any, args_and_results_len: Any, trap: Any) -> ctypes._Pointer:
3024 return _wasmtime_func_call_unchecked(store, func, args_and_results, args_and_results_len, trap) # type: ignore
3026_wasmtime_caller_export_get = dll.wasmtime_caller_export_get
3027_wasmtime_caller_export_get.restype = ctypes.c_bool
3028_wasmtime_caller_export_get.argtypes = [ctypes.POINTER(wasmtime_caller_t), ctypes.POINTER(ctypes.c_char), ctypes.c_size_t, ctypes.POINTER(wasmtime_extern_t)]
3029def wasmtime_caller_export_get(caller: Any, name: Any, name_len: Any, item: Any) -> bool:
3030 return _wasmtime_caller_export_get(caller, name, name_len, item) # type: ignore
3032_wasmtime_caller_context = dll.wasmtime_caller_context
3033_wasmtime_caller_context.restype = ctypes.POINTER(wasmtime_context_t)
3034_wasmtime_caller_context.argtypes = [ctypes.POINTER(wasmtime_caller_t)]
3035def wasmtime_caller_context(caller: Any) -> ctypes._Pointer:
3036 return _wasmtime_caller_context(caller) # type: ignore
3038_wasmtime_func_from_raw = dll.wasmtime_func_from_raw
3039_wasmtime_func_from_raw.restype = None
3040_wasmtime_func_from_raw.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.c_void_p, ctypes.POINTER(wasmtime_func_t)]
3041def wasmtime_func_from_raw(context: Any, raw: Any, ret: Any) -> None:
3042 return _wasmtime_func_from_raw(context, raw, ret) # type: ignore
3044_wasmtime_func_to_raw = dll.wasmtime_func_to_raw
3045_wasmtime_func_to_raw.restype = ctypes.c_void_p
3046_wasmtime_func_to_raw.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_func_t)]
3047def wasmtime_func_to_raw(context: Any, func: Any) -> ctypes._Pointer:
3048 return _wasmtime_func_to_raw(context, func) # type: ignore
3050_wasmtime_global_new = dll.wasmtime_global_new
3051_wasmtime_global_new.restype = ctypes.POINTER(wasmtime_error_t)
3052_wasmtime_global_new.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasm_globaltype_t), ctypes.POINTER(wasmtime_val_t), ctypes.POINTER(wasmtime_global_t)]
3053def wasmtime_global_new(store: Any, type: Any, val: Any, ret: Any) -> ctypes._Pointer:
3054 return _wasmtime_global_new(store, type, val, ret) # type: ignore
3056_wasmtime_global_type = dll.wasmtime_global_type
3057_wasmtime_global_type.restype = ctypes.POINTER(wasm_globaltype_t)
3058_wasmtime_global_type.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_global_t)]
3059def wasmtime_global_type(store: Any, arg1: Any) -> ctypes._Pointer:
3060 return _wasmtime_global_type(store, arg1) # type: ignore
3062_wasmtime_global_get = dll.wasmtime_global_get
3063_wasmtime_global_get.restype = None
3064_wasmtime_global_get.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_global_t), ctypes.POINTER(wasmtime_val_t)]
3065def wasmtime_global_get(store: Any, arg1: Any, out: Any) -> None:
3066 return _wasmtime_global_get(store, arg1, out) # type: ignore
3068_wasmtime_global_set = dll.wasmtime_global_set
3069_wasmtime_global_set.restype = ctypes.POINTER(wasmtime_error_t)
3070_wasmtime_global_set.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_global_t), ctypes.POINTER(wasmtime_val_t)]
3071def wasmtime_global_set(store: Any, arg1: Any, val: Any) -> ctypes._Pointer:
3072 return _wasmtime_global_set(store, arg1, val) # type: ignore
3074class wasmtime_instance(ctypes.Structure):
3075 _fields_ = [
3076 ("store_id", ctypes.c_uint64),
3077 ("__private", ctypes.c_size_t),
3078 ]
3079 store_id: int
3080 __private: int
3082wasmtime_instance_t = wasmtime_instance
3084_wasmtime_instance_new = dll.wasmtime_instance_new
3085_wasmtime_instance_new.restype = ctypes.POINTER(wasmtime_error_t)
3086_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))]
3087def wasmtime_instance_new(store: Any, module: Any, imports: Any, nimports: Any, instance: Any, trap: Any) -> ctypes._Pointer:
3088 return _wasmtime_instance_new(store, module, imports, nimports, instance, trap) # type: ignore
3090_wasmtime_instance_export_get = dll.wasmtime_instance_export_get
3091_wasmtime_instance_export_get.restype = ctypes.c_bool
3092_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)]
3093def wasmtime_instance_export_get(store: Any, instance: Any, name: Any, name_len: Any, item: Any) -> bool:
3094 return _wasmtime_instance_export_get(store, instance, name, name_len, item) # type: ignore
3096_wasmtime_instance_export_nth = dll.wasmtime_instance_export_nth
3097_wasmtime_instance_export_nth.restype = ctypes.c_bool
3098_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)]
3099def wasmtime_instance_export_nth(store: Any, instance: Any, index: Any, name: Any, name_len: Any, item: Any) -> bool:
3100 return _wasmtime_instance_export_nth(store, instance, index, name, name_len, item) # type: ignore
3102class wasmtime_instance_pre(ctypes.Structure):
3103 pass
3105wasmtime_instance_pre_t = wasmtime_instance_pre
3107_wasmtime_instance_pre_delete = dll.wasmtime_instance_pre_delete
3108_wasmtime_instance_pre_delete.restype = None
3109_wasmtime_instance_pre_delete.argtypes = [ctypes.POINTER(wasmtime_instance_pre_t)]
3110def wasmtime_instance_pre_delete(instance_pre: Any) -> None:
3111 return _wasmtime_instance_pre_delete(instance_pre) # type: ignore
3113_wasmtime_instance_pre_instantiate = dll.wasmtime_instance_pre_instantiate
3114_wasmtime_instance_pre_instantiate.restype = ctypes.POINTER(wasmtime_error_t)
3115_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))]
3116def wasmtime_instance_pre_instantiate(instance_pre: Any, store: Any, instance: Any, trap_ptr: Any) -> ctypes._Pointer:
3117 return _wasmtime_instance_pre_instantiate(instance_pre, store, instance, trap_ptr) # type: ignore
3119_wasmtime_instance_pre_module = dll.wasmtime_instance_pre_module
3120_wasmtime_instance_pre_module.restype = ctypes.POINTER(wasmtime_module_t)
3121_wasmtime_instance_pre_module.argtypes = [ctypes.POINTER(wasmtime_instance_pre_t)]
3122def wasmtime_instance_pre_module(instance_pre: Any) -> ctypes._Pointer:
3123 return _wasmtime_instance_pre_module(instance_pre) # type: ignore
3125class wasmtime_linker(ctypes.Structure):
3126 pass
3128wasmtime_linker_t = wasmtime_linker
3130_wasmtime_linker_new = dll.wasmtime_linker_new
3131_wasmtime_linker_new.restype = ctypes.POINTER(wasmtime_linker_t)
3132_wasmtime_linker_new.argtypes = [ctypes.POINTER(wasm_engine_t)]
3133def wasmtime_linker_new(engine: Any) -> ctypes._Pointer:
3134 return _wasmtime_linker_new(engine) # type: ignore
3136_wasmtime_linker_clone = dll.wasmtime_linker_clone
3137_wasmtime_linker_clone.restype = ctypes.POINTER(wasmtime_linker_t)
3138_wasmtime_linker_clone.argtypes = [ctypes.POINTER(wasmtime_linker_t)]
3139def wasmtime_linker_clone(linker: Any) -> ctypes._Pointer:
3140 return _wasmtime_linker_clone(linker) # type: ignore
3142_wasmtime_linker_delete = dll.wasmtime_linker_delete
3143_wasmtime_linker_delete.restype = None
3144_wasmtime_linker_delete.argtypes = [ctypes.POINTER(wasmtime_linker_t)]
3145def wasmtime_linker_delete(linker: Any) -> None:
3146 return _wasmtime_linker_delete(linker) # type: ignore
3148_wasmtime_linker_allow_shadowing = dll.wasmtime_linker_allow_shadowing
3149_wasmtime_linker_allow_shadowing.restype = None
3150_wasmtime_linker_allow_shadowing.argtypes = [ctypes.POINTER(wasmtime_linker_t), ctypes.c_bool]
3151def wasmtime_linker_allow_shadowing(linker: Any, allow_shadowing: Any) -> None:
3152 return _wasmtime_linker_allow_shadowing(linker, allow_shadowing) # type: ignore
3154_wasmtime_linker_define_unknown_imports_as_traps = dll.wasmtime_linker_define_unknown_imports_as_traps
3155_wasmtime_linker_define_unknown_imports_as_traps.restype = ctypes.POINTER(wasmtime_error_t)
3156_wasmtime_linker_define_unknown_imports_as_traps.argtypes = [ctypes.POINTER(wasmtime_linker_t), ctypes.POINTER(wasmtime_module_t)]
3157def wasmtime_linker_define_unknown_imports_as_traps(linker: Any, module: Any) -> ctypes._Pointer:
3158 return _wasmtime_linker_define_unknown_imports_as_traps(linker, module) # type: ignore
3160_wasmtime_linker_define_unknown_imports_as_default_values = dll.wasmtime_linker_define_unknown_imports_as_default_values
3161_wasmtime_linker_define_unknown_imports_as_default_values.restype = ctypes.POINTER(wasmtime_error_t)
3162_wasmtime_linker_define_unknown_imports_as_default_values.argtypes = [ctypes.POINTER(wasmtime_linker_t), ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_module_t)]
3163def wasmtime_linker_define_unknown_imports_as_default_values(linker: Any, store: Any, module: Any) -> ctypes._Pointer:
3164 return _wasmtime_linker_define_unknown_imports_as_default_values(linker, store, module) # type: ignore
3166_wasmtime_linker_define = dll.wasmtime_linker_define
3167_wasmtime_linker_define.restype = ctypes.POINTER(wasmtime_error_t)
3168_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)]
3169def wasmtime_linker_define(linker: Any, store: Any, module: Any, module_len: Any, name: Any, name_len: Any, item: Any) -> ctypes._Pointer:
3170 return _wasmtime_linker_define(linker, store, module, module_len, name, name_len, item) # type: ignore
3172_wasmtime_linker_define_func = dll.wasmtime_linker_define_func
3173_wasmtime_linker_define_func.restype = ctypes.POINTER(wasmtime_error_t)
3174_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)]
3175def 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:
3176 return _wasmtime_linker_define_func(linker, module, module_len, name, name_len, ty, cb, data, finalizer) # type: ignore
3178_wasmtime_linker_define_func_unchecked = dll.wasmtime_linker_define_func_unchecked
3179_wasmtime_linker_define_func_unchecked.restype = ctypes.POINTER(wasmtime_error_t)
3180_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)]
3181def 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:
3182 return _wasmtime_linker_define_func_unchecked(linker, module, module_len, name, name_len, ty, cb, data, finalizer) # type: ignore
3184_wasmtime_linker_define_wasi = dll.wasmtime_linker_define_wasi
3185_wasmtime_linker_define_wasi.restype = ctypes.POINTER(wasmtime_error_t)
3186_wasmtime_linker_define_wasi.argtypes = [ctypes.POINTER(wasmtime_linker_t)]
3187def wasmtime_linker_define_wasi(linker: Any) -> ctypes._Pointer:
3188 return _wasmtime_linker_define_wasi(linker) # type: ignore
3190_wasmtime_linker_define_instance = dll.wasmtime_linker_define_instance
3191_wasmtime_linker_define_instance.restype = ctypes.POINTER(wasmtime_error_t)
3192_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)]
3193def wasmtime_linker_define_instance(linker: Any, store: Any, name: Any, name_len: Any, instance: Any) -> ctypes._Pointer:
3194 return _wasmtime_linker_define_instance(linker, store, name, name_len, instance) # type: ignore
3196_wasmtime_linker_instantiate = dll.wasmtime_linker_instantiate
3197_wasmtime_linker_instantiate.restype = ctypes.POINTER(wasmtime_error_t)
3198_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))]
3199def wasmtime_linker_instantiate(linker: Any, store: Any, module: Any, instance: Any, trap: Any) -> ctypes._Pointer:
3200 return _wasmtime_linker_instantiate(linker, store, module, instance, trap) # type: ignore
3202_wasmtime_linker_module = dll.wasmtime_linker_module
3203_wasmtime_linker_module.restype = ctypes.POINTER(wasmtime_error_t)
3204_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)]
3205def wasmtime_linker_module(linker: Any, store: Any, name: Any, name_len: Any, module: Any) -> ctypes._Pointer:
3206 return _wasmtime_linker_module(linker, store, name, name_len, module) # type: ignore
3208_wasmtime_linker_get_default = dll.wasmtime_linker_get_default
3209_wasmtime_linker_get_default.restype = ctypes.POINTER(wasmtime_error_t)
3210_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)]
3211def wasmtime_linker_get_default(linker: Any, store: Any, name: Any, name_len: Any, func: Any) -> ctypes._Pointer:
3212 return _wasmtime_linker_get_default(linker, store, name, name_len, func) # type: ignore
3214_wasmtime_linker_get = dll.wasmtime_linker_get
3215_wasmtime_linker_get.restype = ctypes.c_bool
3216_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)]
3217def wasmtime_linker_get(linker: Any, store: Any, module: Any, module_len: Any, name: Any, name_len: Any, item: Any) -> bool:
3218 return _wasmtime_linker_get(linker, store, module, module_len, name, name_len, item) # type: ignore
3220_wasmtime_linker_instantiate_pre = dll.wasmtime_linker_instantiate_pre
3221_wasmtime_linker_instantiate_pre.restype = ctypes.POINTER(wasmtime_error_t)
3222_wasmtime_linker_instantiate_pre.argtypes = [ctypes.POINTER(wasmtime_linker_t), ctypes.POINTER(wasmtime_module_t), ctypes.POINTER(ctypes.POINTER(wasmtime_instance_pre_t))]
3223def wasmtime_linker_instantiate_pre(linker: Any, module: Any, instance_pre: Any) -> ctypes._Pointer:
3224 return _wasmtime_linker_instantiate_pre(linker, module, instance_pre) # type: ignore
3226_wasmtime_memorytype_new = dll.wasmtime_memorytype_new
3227_wasmtime_memorytype_new.restype = ctypes.POINTER(wasmtime_error_t)
3228_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))]
3229def wasmtime_memorytype_new(min: Any, max_present: Any, max: Any, is_64: Any, shared: Any, page_size_log2: Any, ret: Any) -> ctypes._Pointer:
3230 return _wasmtime_memorytype_new(min, max_present, max, is_64, shared, page_size_log2, ret) # type: ignore
3232_wasmtime_memorytype_minimum = dll.wasmtime_memorytype_minimum
3233_wasmtime_memorytype_minimum.restype = ctypes.c_uint64
3234_wasmtime_memorytype_minimum.argtypes = [ctypes.POINTER(wasm_memorytype_t)]
3235def wasmtime_memorytype_minimum(ty: Any) -> int:
3236 return _wasmtime_memorytype_minimum(ty) # type: ignore
3238_wasmtime_memorytype_maximum = dll.wasmtime_memorytype_maximum
3239_wasmtime_memorytype_maximum.restype = ctypes.c_bool
3240_wasmtime_memorytype_maximum.argtypes = [ctypes.POINTER(wasm_memorytype_t), ctypes.POINTER(ctypes.c_uint64)]
3241def wasmtime_memorytype_maximum(ty: Any, max: Any) -> bool:
3242 return _wasmtime_memorytype_maximum(ty, max) # type: ignore
3244_wasmtime_memorytype_is64 = dll.wasmtime_memorytype_is64
3245_wasmtime_memorytype_is64.restype = ctypes.c_bool
3246_wasmtime_memorytype_is64.argtypes = [ctypes.POINTER(wasm_memorytype_t)]
3247def wasmtime_memorytype_is64(ty: Any) -> bool:
3248 return _wasmtime_memorytype_is64(ty) # type: ignore
3250_wasmtime_memorytype_isshared = dll.wasmtime_memorytype_isshared
3251_wasmtime_memorytype_isshared.restype = ctypes.c_bool
3252_wasmtime_memorytype_isshared.argtypes = [ctypes.POINTER(wasm_memorytype_t)]
3253def wasmtime_memorytype_isshared(ty: Any) -> bool:
3254 return _wasmtime_memorytype_isshared(ty) # type: ignore
3256_wasmtime_memorytype_page_size = dll.wasmtime_memorytype_page_size
3257_wasmtime_memorytype_page_size.restype = ctypes.c_uint64
3258_wasmtime_memorytype_page_size.argtypes = [ctypes.POINTER(wasm_memorytype_t)]
3259def wasmtime_memorytype_page_size(ty: Any) -> int:
3260 return _wasmtime_memorytype_page_size(ty) # type: ignore
3262_wasmtime_memorytype_page_size_log2 = dll.wasmtime_memorytype_page_size_log2
3263_wasmtime_memorytype_page_size_log2.restype = ctypes.c_uint8
3264_wasmtime_memorytype_page_size_log2.argtypes = [ctypes.POINTER(wasm_memorytype_t)]
3265def wasmtime_memorytype_page_size_log2(ty: Any) -> ctypes.c_uint8:
3266 return _wasmtime_memorytype_page_size_log2(ty) # type: ignore
3268_wasmtime_memory_new = dll.wasmtime_memory_new
3269_wasmtime_memory_new.restype = ctypes.POINTER(wasmtime_error_t)
3270_wasmtime_memory_new.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasm_memorytype_t), ctypes.POINTER(wasmtime_memory_t)]
3271def wasmtime_memory_new(store: Any, ty: Any, ret: Any) -> ctypes._Pointer:
3272 return _wasmtime_memory_new(store, ty, ret) # type: ignore
3274_wasmtime_memory_type = dll.wasmtime_memory_type
3275_wasmtime_memory_type.restype = ctypes.POINTER(wasm_memorytype_t)
3276_wasmtime_memory_type.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_memory_t)]
3277def wasmtime_memory_type(store: Any, memory: Any) -> ctypes._Pointer:
3278 return _wasmtime_memory_type(store, memory) # type: ignore
3280_wasmtime_memory_data = dll.wasmtime_memory_data
3281_wasmtime_memory_data.restype = ctypes.POINTER(ctypes.c_uint8)
3282_wasmtime_memory_data.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_memory_t)]
3283def wasmtime_memory_data(store: Any, memory: Any) -> ctypes._Pointer:
3284 return _wasmtime_memory_data(store, memory) # type: ignore
3286_wasmtime_memory_data_size = dll.wasmtime_memory_data_size
3287_wasmtime_memory_data_size.restype = ctypes.c_size_t
3288_wasmtime_memory_data_size.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_memory_t)]
3289def wasmtime_memory_data_size(store: Any, memory: Any) -> int:
3290 return _wasmtime_memory_data_size(store, memory) # type: ignore
3292_wasmtime_memory_size = dll.wasmtime_memory_size
3293_wasmtime_memory_size.restype = ctypes.c_uint64
3294_wasmtime_memory_size.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_memory_t)]
3295def wasmtime_memory_size(store: Any, memory: Any) -> int:
3296 return _wasmtime_memory_size(store, memory) # type: ignore
3298_wasmtime_memory_grow = dll.wasmtime_memory_grow
3299_wasmtime_memory_grow.restype = ctypes.POINTER(wasmtime_error_t)
3300_wasmtime_memory_grow.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_memory_t), ctypes.c_uint64, ctypes.POINTER(ctypes.c_uint64)]
3301def wasmtime_memory_grow(store: Any, memory: Any, delta: Any, prev_size: Any) -> ctypes._Pointer:
3302 return _wasmtime_memory_grow(store, memory, delta, prev_size) # type: ignore
3304_wasmtime_memory_page_size = dll.wasmtime_memory_page_size
3305_wasmtime_memory_page_size.restype = ctypes.c_uint64
3306_wasmtime_memory_page_size.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_memory_t)]
3307def wasmtime_memory_page_size(store: Any, memory: Any) -> int:
3308 return _wasmtime_memory_page_size(store, memory) # type: ignore
3310_wasmtime_memory_page_size_log2 = dll.wasmtime_memory_page_size_log2
3311_wasmtime_memory_page_size_log2.restype = ctypes.c_uint8
3312_wasmtime_memory_page_size_log2.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_memory_t)]
3313def wasmtime_memory_page_size_log2(store: Any, memory: Any) -> ctypes.c_uint8:
3314 return _wasmtime_memory_page_size_log2(store, memory) # type: ignore
3316class wasmtime_guestprofiler(ctypes.Structure):
3317 pass
3319wasmtime_guestprofiler_t = wasmtime_guestprofiler
3321_wasmtime_guestprofiler_delete = dll.wasmtime_guestprofiler_delete
3322_wasmtime_guestprofiler_delete.restype = None
3323_wasmtime_guestprofiler_delete.argtypes = [ctypes.POINTER(wasmtime_guestprofiler_t)]
3324def wasmtime_guestprofiler_delete(guestprofiler: Any) -> None:
3325 return _wasmtime_guestprofiler_delete(guestprofiler) # type: ignore
3327class wasmtime_guestprofiler_modules(ctypes.Structure):
3328 _fields_ = [
3329 ("name", ctypes.POINTER(wasm_name_t)),
3330 ("mod", ctypes.POINTER(wasmtime_module_t)),
3331 ]
3332 name: ctypes._Pointer
3333 mod: ctypes._Pointer
3335wasmtime_guestprofiler_modules_t = wasmtime_guestprofiler_modules
3337_wasmtime_guestprofiler_new = dll.wasmtime_guestprofiler_new
3338_wasmtime_guestprofiler_new.restype = ctypes.POINTER(wasmtime_guestprofiler_t)
3339_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]
3340def wasmtime_guestprofiler_new(engine: Any, module_name: Any, interval_nanos: Any, modules: Any, modules_len: Any) -> ctypes._Pointer:
3341 return _wasmtime_guestprofiler_new(engine, module_name, interval_nanos, modules, modules_len) # type: ignore
3343_wasmtime_guestprofiler_sample = dll.wasmtime_guestprofiler_sample
3344_wasmtime_guestprofiler_sample.restype = None
3345_wasmtime_guestprofiler_sample.argtypes = [ctypes.POINTER(wasmtime_guestprofiler_t), ctypes.POINTER(wasmtime_store_t), ctypes.c_uint64]
3346def wasmtime_guestprofiler_sample(guestprofiler: Any, store: Any, delta_nanos: Any) -> None:
3347 return _wasmtime_guestprofiler_sample(guestprofiler, store, delta_nanos) # type: ignore
3349_wasmtime_guestprofiler_finish = dll.wasmtime_guestprofiler_finish
3350_wasmtime_guestprofiler_finish.restype = ctypes.POINTER(wasmtime_error_t)
3351_wasmtime_guestprofiler_finish.argtypes = [ctypes.POINTER(wasmtime_guestprofiler_t), ctypes.POINTER(wasm_byte_vec_t)]
3352def wasmtime_guestprofiler_finish(guestprofiler: Any, out: Any) -> ctypes._Pointer:
3353 return _wasmtime_guestprofiler_finish(guestprofiler, out) # type: ignore
3355_wasmtime_table_new = dll.wasmtime_table_new
3356_wasmtime_table_new.restype = ctypes.POINTER(wasmtime_error_t)
3357_wasmtime_table_new.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasm_tabletype_t), ctypes.POINTER(wasmtime_val_t), ctypes.POINTER(wasmtime_table_t)]
3358def wasmtime_table_new(store: Any, ty: Any, init: Any, table: Any) -> ctypes._Pointer:
3359 return _wasmtime_table_new(store, ty, init, table) # type: ignore
3361_wasmtime_table_type = dll.wasmtime_table_type
3362_wasmtime_table_type.restype = ctypes.POINTER(wasm_tabletype_t)
3363_wasmtime_table_type.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_table_t)]
3364def wasmtime_table_type(store: Any, table: Any) -> ctypes._Pointer:
3365 return _wasmtime_table_type(store, table) # type: ignore
3367_wasmtime_table_get = dll.wasmtime_table_get
3368_wasmtime_table_get.restype = ctypes.c_bool
3369_wasmtime_table_get.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_table_t), ctypes.c_uint64, ctypes.POINTER(wasmtime_val_t)]
3370def wasmtime_table_get(store: Any, table: Any, index: Any, val: Any) -> bool:
3371 return _wasmtime_table_get(store, table, index, val) # type: ignore
3373_wasmtime_table_set = dll.wasmtime_table_set
3374_wasmtime_table_set.restype = ctypes.POINTER(wasmtime_error_t)
3375_wasmtime_table_set.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_table_t), ctypes.c_uint64, ctypes.POINTER(wasmtime_val_t)]
3376def wasmtime_table_set(store: Any, table: Any, index: Any, value: Any) -> ctypes._Pointer:
3377 return _wasmtime_table_set(store, table, index, value) # type: ignore
3379_wasmtime_table_size = dll.wasmtime_table_size
3380_wasmtime_table_size.restype = ctypes.c_uint64
3381_wasmtime_table_size.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_table_t)]
3382def wasmtime_table_size(store: Any, table: Any) -> int:
3383 return _wasmtime_table_size(store, table) # type: ignore
3385_wasmtime_table_grow = dll.wasmtime_table_grow
3386_wasmtime_table_grow.restype = ctypes.POINTER(wasmtime_error_t)
3387_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)]
3388def wasmtime_table_grow(store: Any, table: Any, delta: Any, init: Any, prev_size: Any) -> ctypes._Pointer:
3389 return _wasmtime_table_grow(store, table, delta, init, prev_size) # type: ignore
3391wasmtime_trap_code_t = ctypes.c_uint8
3393class wasmtime_trap_code_enum(Enum):
3394 WASMTIME_TRAP_CODE_STACK_OVERFLOW = 0
3395 WASMTIME_TRAP_CODE_MEMORY_OUT_OF_BOUNDS = 1
3396 WASMTIME_TRAP_CODE_HEAP_MISALIGNED = 2
3397 WASMTIME_TRAP_CODE_TABLE_OUT_OF_BOUNDS = 3
3398 WASMTIME_TRAP_CODE_INDIRECT_CALL_TO_NULL = 4
3399 WASMTIME_TRAP_CODE_BAD_SIGNATURE = 5
3400 WASMTIME_TRAP_CODE_INTEGER_OVERFLOW = 6
3401 WASMTIME_TRAP_CODE_INTEGER_DIVISION_BY_ZERO = 7
3402 WASMTIME_TRAP_CODE_BAD_CONVERSION_TO_INTEGER = 8
3403 WASMTIME_TRAP_CODE_UNREACHABLE_CODE_REACHED = 9
3404 WASMTIME_TRAP_CODE_INTERRUPT = 10
3405 WASMTIME_TRAP_CODE_OUT_OF_FUEL = 11
3406 WASMTIME_TRAP_CODE_ATOMIC_WAIT_NON_SHARED_MEMORY = 12
3407 WASMTIME_TRAP_CODE_NULL_REFERENCE = 13
3408 WASMTIME_TRAP_CODE_ARRAY_OUT_OF_BOUNDS = 14
3409 WASMTIME_TRAP_CODE_ALLOCATION_TOO_LARGE = 15
3410 WASMTIME_TRAP_CODE_CAST_FAILURE = 16
3411 WASMTIME_TRAP_CODE_CANNOT_ENTER_COMPONENT = 17
3412 WASMTIME_TRAP_CODE_NO_ASYNC_RESULT = 18
3413 WASMTIME_TRAP_CODE_UNHANDLED_TAG = 19
3414 WASMTIME_TRAP_CODE_CONTINUATION_ALREADY_CONSUMED = 20
3415 WASMTIME_TRAP_CODE_DISABLED_OPCODE = 21
3416 WASMTIME_TRAP_CODE_ASYNC_DEADLOCK = 22
3417 WASMTIME_TRAP_CODE_CANNOT_LEAVE_COMPONENT = 23
3418 WASMTIME_TRAP_CODE_CANNOT_BLOCK_SYNC_TASK = 24
3419 WASMTIME_TRAP_CODE_INVALID_CHAR = 25
3420 WASMTIME_TRAP_CODE_DEBUG_ASSERT_STRING_ENCODING_FINISHED = 26
3421 WASMTIME_TRAP_CODE_DEBUG_ASSERT_EQUAL_CODE_UNITS = 27
3422 WASMTIME_TRAP_CODE_DEBUG_ASSERT_POINTER_ALIGNED = 28
3423 WASMTIME_TRAP_CODE_DEBUG_ASSERT_UPPER_BITS_UNSET = 29
3424 WASMTIME_TRAP_CODE_STRING_OUT_OF_BOUNDS = 30
3425 WASMTIME_TRAP_CODE_LIST_OUT_OF_BOUNDS = 31
3426 WASMTIME_TRAP_CODE_INVALID_DISCRIMINANT = 32
3427 WASMTIME_TRAP_CODE_UNALIGNED_POINTER = 33
3428 WASMTIME_TRAP_CODE_TASK_CANCEL_NOT_CANCELLED = 34
3429 WASMTIME_TRAP_CODE_TASK_CANCEL_OR_RETURN_TWICE = 35
3430 WASMTIME_TRAP_CODE_SUBTASK_CANCEL_AFTER_TERMINAL = 36
3431 WASMTIME_TRAP_CODE_TASK_RETURN_INVALID = 37
3432 WASMTIME_TRAP_CODE_WAITABLE_SET_DROP_HAS_WAITERS = 38
3433 WASMTIME_TRAP_CODE_SUBTASK_DROP_NOT_RESOLVED = 39
3434 WASMTIME_TRAP_CODE_THREAD_NEW_INDIRECT_INVALID_TYPE = 40
3435 WASMTIME_TRAP_CODE_THREAD_NEW_INDIRECT_UNINITIALIZED = 41
3436 WASMTIME_TRAP_CODE_BACKPRESSURE_OVERFLOW = 42
3437 WASMTIME_TRAP_CODE_UNSUPPORTED_CALLBACK_CODE = 43
3438 WASMTIME_TRAP_CODE_CANNOT_RESUME_THREAD = 44
3440_wasmtime_trap_new = dll.wasmtime_trap_new
3441_wasmtime_trap_new.restype = ctypes.POINTER(wasm_trap_t)
3442_wasmtime_trap_new.argtypes = [ctypes.POINTER(ctypes.c_char), ctypes.c_size_t]
3443def wasmtime_trap_new(msg: Any, msg_len: Any) -> ctypes._Pointer:
3444 return _wasmtime_trap_new(msg, msg_len) # type: ignore
3446_wasmtime_trap_new_code = dll.wasmtime_trap_new_code
3447_wasmtime_trap_new_code.restype = ctypes.POINTER(wasm_trap_t)
3448_wasmtime_trap_new_code.argtypes = [wasmtime_trap_code_t]
3449def wasmtime_trap_new_code(code: Any) -> ctypes._Pointer:
3450 return _wasmtime_trap_new_code(code) # type: ignore
3452_wasmtime_trap_code = dll.wasmtime_trap_code
3453_wasmtime_trap_code.restype = ctypes.c_bool
3454_wasmtime_trap_code.argtypes = [ctypes.POINTER(wasm_trap_t), ctypes.POINTER(wasmtime_trap_code_t)]
3455def wasmtime_trap_code(arg0: Any, code: Any) -> bool:
3456 return _wasmtime_trap_code(arg0, code) # type: ignore
3458_wasmtime_frame_func_name = dll.wasmtime_frame_func_name
3459_wasmtime_frame_func_name.restype = ctypes.POINTER(wasm_name_t)
3460_wasmtime_frame_func_name.argtypes = [ctypes.POINTER(wasm_frame_t)]
3461def wasmtime_frame_func_name(arg0: Any) -> ctypes._Pointer:
3462 return _wasmtime_frame_func_name(arg0) # type: ignore
3464_wasmtime_frame_module_name = dll.wasmtime_frame_module_name
3465_wasmtime_frame_module_name.restype = ctypes.POINTER(wasm_name_t)
3466_wasmtime_frame_module_name.argtypes = [ctypes.POINTER(wasm_frame_t)]
3467def wasmtime_frame_module_name(arg0: Any) -> ctypes._Pointer:
3468 return _wasmtime_frame_module_name(arg0) # type: ignore
3470_wasmtime_config_async_stack_size_set = dll.wasmtime_config_async_stack_size_set
3471_wasmtime_config_async_stack_size_set.restype = None
3472_wasmtime_config_async_stack_size_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_uint64]
3473def wasmtime_config_async_stack_size_set(arg0: Any, arg1: Any) -> None:
3474 return _wasmtime_config_async_stack_size_set(arg0, arg1) # type: ignore
3476_wasmtime_context_fuel_async_yield_interval = dll.wasmtime_context_fuel_async_yield_interval
3477_wasmtime_context_fuel_async_yield_interval.restype = ctypes.POINTER(wasmtime_error_t)
3478_wasmtime_context_fuel_async_yield_interval.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.c_uint64]
3479def wasmtime_context_fuel_async_yield_interval(context: Any, interval: Any) -> ctypes._Pointer:
3480 return _wasmtime_context_fuel_async_yield_interval(context, interval) # type: ignore
3482_wasmtime_context_epoch_deadline_async_yield_and_update = dll.wasmtime_context_epoch_deadline_async_yield_and_update
3483_wasmtime_context_epoch_deadline_async_yield_and_update.restype = ctypes.POINTER(wasmtime_error_t)
3484_wasmtime_context_epoch_deadline_async_yield_and_update.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.c_uint64]
3485def wasmtime_context_epoch_deadline_async_yield_and_update(context: Any, delta: Any) -> ctypes._Pointer:
3486 return _wasmtime_context_epoch_deadline_async_yield_and_update(context, delta) # type: ignore
3488wasmtime_func_async_continuation_callback_t = ctypes.CFUNCTYPE(ctypes.c_bool, ctypes.c_void_p)
3490class wasmtime_async_continuation_t(ctypes.Structure):
3491 _fields_ = [
3492 ("callback", wasmtime_func_async_continuation_callback_t),
3493 ("env", ctypes.c_void_p),
3494 ("finalizer", ctypes.CFUNCTYPE(None, ctypes.c_void_p)),
3495 ]
3496 callback: ctypes._Pointer
3497 env: ctypes._Pointer
3498 finalizer: ctypes._Pointer
3500wasmtime_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))
3502class wasmtime_call_future(ctypes.Structure):
3503 pass
3505wasmtime_call_future_t = wasmtime_call_future
3507_wasmtime_call_future_poll = dll.wasmtime_call_future_poll
3508_wasmtime_call_future_poll.restype = ctypes.c_bool
3509_wasmtime_call_future_poll.argtypes = [ctypes.POINTER(wasmtime_call_future_t)]
3510def wasmtime_call_future_poll(future: Any) -> bool:
3511 return _wasmtime_call_future_poll(future) # type: ignore
3513_wasmtime_call_future_delete = dll.wasmtime_call_future_delete
3514_wasmtime_call_future_delete.restype = None
3515_wasmtime_call_future_delete.argtypes = [ctypes.POINTER(wasmtime_call_future_t)]
3516def wasmtime_call_future_delete(future: Any) -> None:
3517 return _wasmtime_call_future_delete(future) # type: ignore
3519_wasmtime_func_call_async = dll.wasmtime_func_call_async
3520_wasmtime_func_call_async.restype = ctypes.POINTER(wasmtime_call_future_t)
3521_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))]
3522def wasmtime_func_call_async(context: Any, func: Any, args: Any, nargs: Any, results: Any, nresults: Any, trap_ret: Any, error_ret: Any) -> ctypes._Pointer:
3523 return _wasmtime_func_call_async(context, func, args, nargs, results, nresults, trap_ret, error_ret) # type: ignore
3525_wasmtime_linker_define_async_func = dll.wasmtime_linker_define_async_func
3526_wasmtime_linker_define_async_func.restype = ctypes.POINTER(wasmtime_error_t)
3527_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)]
3528def 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:
3529 return _wasmtime_linker_define_async_func(linker, module, module_len, name, name_len, ty, cb, data, finalizer) # type: ignore
3531_wasmtime_linker_instantiate_async = dll.wasmtime_linker_instantiate_async
3532_wasmtime_linker_instantiate_async.restype = ctypes.POINTER(wasmtime_call_future_t)
3533_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))]
3534def wasmtime_linker_instantiate_async(linker: Any, store: Any, module: Any, instance: Any, trap_ret: Any, error_ret: Any) -> ctypes._Pointer:
3535 return _wasmtime_linker_instantiate_async(linker, store, module, instance, trap_ret, error_ret) # type: ignore
3537_wasmtime_instance_pre_instantiate_async = dll.wasmtime_instance_pre_instantiate_async
3538_wasmtime_instance_pre_instantiate_async.restype = ctypes.POINTER(wasmtime_call_future_t)
3539_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))]
3540def wasmtime_instance_pre_instantiate_async(instance_pre: Any, store: Any, instance: Any, trap_ret: Any, error_ret: Any) -> ctypes._Pointer:
3541 return _wasmtime_instance_pre_instantiate_async(instance_pre, store, instance, trap_ret, error_ret) # type: ignore
3543wasmtime_stack_memory_get_callback_t = ctypes.CFUNCTYPE(ctypes.c_size_t, ctypes.c_void_p, ctypes.POINTER(ctypes.c_size_t))
3545class wasmtime_stack_memory(ctypes.Structure):
3546 _fields_ = [
3547 ("env", ctypes.c_void_p),
3548 ("get_stack_memory", wasmtime_stack_memory_get_callback_t),
3549 ("finalizer", ctypes.CFUNCTYPE(None, ctypes.c_void_p)),
3550 ]
3551 env: ctypes._Pointer
3552 get_stack_memory: ctypes._Pointer
3553 finalizer: ctypes._Pointer
3555wasmtime_stack_memory_t = wasmtime_stack_memory
3557wasmtime_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))
3559class wasmtime_stack_creator(ctypes.Structure):
3560 _fields_ = [
3561 ("env", ctypes.c_void_p),
3562 ("new_stack", wasmtime_new_stack_memory_callback_t),
3563 ("finalizer", ctypes.CFUNCTYPE(None, ctypes.c_void_p)),
3564 ]
3565 env: ctypes._Pointer
3566 new_stack: ctypes._Pointer
3567 finalizer: ctypes._Pointer
3569wasmtime_stack_creator_t = wasmtime_stack_creator
3571_wasmtime_config_host_stack_creator_set = dll.wasmtime_config_host_stack_creator_set
3572_wasmtime_config_host_stack_creator_set.restype = None
3573_wasmtime_config_host_stack_creator_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.POINTER(wasmtime_stack_creator_t)]
3574def wasmtime_config_host_stack_creator_set(arg0: Any, arg1: Any) -> None:
3575 return _wasmtime_config_host_stack_creator_set(arg0, arg1) # type: ignore
3577class wasmtime_component_resource_type(ctypes.Structure):
3578 pass
3580wasmtime_component_resource_type_t = wasmtime_component_resource_type
3582_wasmtime_component_resource_type_new_host = dll.wasmtime_component_resource_type_new_host
3583_wasmtime_component_resource_type_new_host.restype = ctypes.POINTER(wasmtime_component_resource_type_t)
3584_wasmtime_component_resource_type_new_host.argtypes = [ctypes.c_uint32]
3585def wasmtime_component_resource_type_new_host(ty: Any) -> ctypes._Pointer:
3586 return _wasmtime_component_resource_type_new_host(ty) # type: ignore
3588_wasmtime_component_resource_type_clone = dll.wasmtime_component_resource_type_clone
3589_wasmtime_component_resource_type_clone.restype = ctypes.POINTER(wasmtime_component_resource_type_t)
3590_wasmtime_component_resource_type_clone.argtypes = [ctypes.POINTER(wasmtime_component_resource_type_t)]
3591def wasmtime_component_resource_type_clone(ty: Any) -> ctypes._Pointer:
3592 return _wasmtime_component_resource_type_clone(ty) # type: ignore
3594_wasmtime_component_resource_type_equal = dll.wasmtime_component_resource_type_equal
3595_wasmtime_component_resource_type_equal.restype = ctypes.c_bool
3596_wasmtime_component_resource_type_equal.argtypes = [ctypes.POINTER(wasmtime_component_resource_type_t), ctypes.POINTER(wasmtime_component_resource_type_t)]
3597def wasmtime_component_resource_type_equal(a: Any, b: Any) -> bool:
3598 return _wasmtime_component_resource_type_equal(a, b) # type: ignore
3600_wasmtime_component_resource_type_delete = dll.wasmtime_component_resource_type_delete
3601_wasmtime_component_resource_type_delete.restype = None
3602_wasmtime_component_resource_type_delete.argtypes = [ctypes.POINTER(wasmtime_component_resource_type_t)]
3603def wasmtime_component_resource_type_delete(resource: Any) -> None:
3604 return _wasmtime_component_resource_type_delete(resource) # type: ignore
3606class wasmtime_component_valtype_t(ctypes.Structure):
3607 pass
3609class wasmtime_component_list_type(ctypes.Structure):
3610 pass
3612wasmtime_component_list_type_t = wasmtime_component_list_type
3614_wasmtime_component_list_type_clone = dll.wasmtime_component_list_type_clone
3615_wasmtime_component_list_type_clone.restype = ctypes.POINTER(wasmtime_component_list_type_t)
3616_wasmtime_component_list_type_clone.argtypes = [ctypes.POINTER(wasmtime_component_list_type_t)]
3617def wasmtime_component_list_type_clone(ty: Any) -> ctypes._Pointer:
3618 return _wasmtime_component_list_type_clone(ty) # type: ignore
3620_wasmtime_component_list_type_equal = dll.wasmtime_component_list_type_equal
3621_wasmtime_component_list_type_equal.restype = ctypes.c_bool
3622_wasmtime_component_list_type_equal.argtypes = [ctypes.POINTER(wasmtime_component_list_type_t), ctypes.POINTER(wasmtime_component_list_type_t)]
3623def wasmtime_component_list_type_equal(a: Any, b: Any) -> bool:
3624 return _wasmtime_component_list_type_equal(a, b) # type: ignore
3626_wasmtime_component_list_type_delete = dll.wasmtime_component_list_type_delete
3627_wasmtime_component_list_type_delete.restype = None
3628_wasmtime_component_list_type_delete.argtypes = [ctypes.POINTER(wasmtime_component_list_type_t)]
3629def wasmtime_component_list_type_delete(ptr: Any) -> None:
3630 return _wasmtime_component_list_type_delete(ptr) # type: ignore
3632_wasmtime_component_list_type_element = dll.wasmtime_component_list_type_element
3633_wasmtime_component_list_type_element.restype = None
3634_wasmtime_component_list_type_element.argtypes = [ctypes.POINTER(wasmtime_component_list_type_t), ctypes.POINTER(wasmtime_component_valtype_t)]
3635def wasmtime_component_list_type_element(ty: Any, type_ret: Any) -> None:
3636 return _wasmtime_component_list_type_element(ty, type_ret) # type: ignore
3638class wasmtime_component_record_type(ctypes.Structure):
3639 pass
3641wasmtime_component_record_type_t = wasmtime_component_record_type
3643_wasmtime_component_record_type_clone = dll.wasmtime_component_record_type_clone
3644_wasmtime_component_record_type_clone.restype = ctypes.POINTER(wasmtime_component_record_type_t)
3645_wasmtime_component_record_type_clone.argtypes = [ctypes.POINTER(wasmtime_component_record_type_t)]
3646def wasmtime_component_record_type_clone(ty: Any) -> ctypes._Pointer:
3647 return _wasmtime_component_record_type_clone(ty) # type: ignore
3649_wasmtime_component_record_type_equal = dll.wasmtime_component_record_type_equal
3650_wasmtime_component_record_type_equal.restype = ctypes.c_bool
3651_wasmtime_component_record_type_equal.argtypes = [ctypes.POINTER(wasmtime_component_record_type_t), ctypes.POINTER(wasmtime_component_record_type_t)]
3652def wasmtime_component_record_type_equal(a: Any, b: Any) -> bool:
3653 return _wasmtime_component_record_type_equal(a, b) # type: ignore
3655_wasmtime_component_record_type_delete = dll.wasmtime_component_record_type_delete
3656_wasmtime_component_record_type_delete.restype = None
3657_wasmtime_component_record_type_delete.argtypes = [ctypes.POINTER(wasmtime_component_record_type_t)]
3658def wasmtime_component_record_type_delete(ptr: Any) -> None:
3659 return _wasmtime_component_record_type_delete(ptr) # type: ignore
3661_wasmtime_component_record_type_field_count = dll.wasmtime_component_record_type_field_count
3662_wasmtime_component_record_type_field_count.restype = ctypes.c_size_t
3663_wasmtime_component_record_type_field_count.argtypes = [ctypes.POINTER(wasmtime_component_record_type_t)]
3664def wasmtime_component_record_type_field_count(ty: Any) -> int:
3665 return _wasmtime_component_record_type_field_count(ty) # type: ignore
3667_wasmtime_component_record_type_field_nth = dll.wasmtime_component_record_type_field_nth
3668_wasmtime_component_record_type_field_nth.restype = ctypes.c_bool
3669_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)]
3670def wasmtime_component_record_type_field_nth(ty: Any, nth: Any, name_ret: Any, name_len_ret: Any, type_ret: Any) -> bool:
3671 return _wasmtime_component_record_type_field_nth(ty, nth, name_ret, name_len_ret, type_ret) # type: ignore
3673class wasmtime_component_tuple_type(ctypes.Structure):
3674 pass
3676wasmtime_component_tuple_type_t = wasmtime_component_tuple_type
3678_wasmtime_component_tuple_type_clone = dll.wasmtime_component_tuple_type_clone
3679_wasmtime_component_tuple_type_clone.restype = ctypes.POINTER(wasmtime_component_tuple_type_t)
3680_wasmtime_component_tuple_type_clone.argtypes = [ctypes.POINTER(wasmtime_component_tuple_type_t)]
3681def wasmtime_component_tuple_type_clone(ty: Any) -> ctypes._Pointer:
3682 return _wasmtime_component_tuple_type_clone(ty) # type: ignore
3684_wasmtime_component_tuple_type_equal = dll.wasmtime_component_tuple_type_equal
3685_wasmtime_component_tuple_type_equal.restype = ctypes.c_bool
3686_wasmtime_component_tuple_type_equal.argtypes = [ctypes.POINTER(wasmtime_component_tuple_type_t), ctypes.POINTER(wasmtime_component_tuple_type_t)]
3687def wasmtime_component_tuple_type_equal(a: Any, b: Any) -> bool:
3688 return _wasmtime_component_tuple_type_equal(a, b) # type: ignore
3690_wasmtime_component_tuple_type_delete = dll.wasmtime_component_tuple_type_delete
3691_wasmtime_component_tuple_type_delete.restype = None
3692_wasmtime_component_tuple_type_delete.argtypes = [ctypes.POINTER(wasmtime_component_tuple_type_t)]
3693def wasmtime_component_tuple_type_delete(ptr: Any) -> None:
3694 return _wasmtime_component_tuple_type_delete(ptr) # type: ignore
3696_wasmtime_component_tuple_type_types_count = dll.wasmtime_component_tuple_type_types_count
3697_wasmtime_component_tuple_type_types_count.restype = ctypes.c_size_t
3698_wasmtime_component_tuple_type_types_count.argtypes = [ctypes.POINTER(wasmtime_component_tuple_type_t)]
3699def wasmtime_component_tuple_type_types_count(ty: Any) -> int:
3700 return _wasmtime_component_tuple_type_types_count(ty) # type: ignore
3702_wasmtime_component_tuple_type_types_nth = dll.wasmtime_component_tuple_type_types_nth
3703_wasmtime_component_tuple_type_types_nth.restype = ctypes.c_bool
3704_wasmtime_component_tuple_type_types_nth.argtypes = [ctypes.POINTER(wasmtime_component_tuple_type_t), ctypes.c_size_t, ctypes.POINTER(wasmtime_component_valtype_t)]
3705def wasmtime_component_tuple_type_types_nth(ty: Any, nth: Any, type_ret: Any) -> bool:
3706 return _wasmtime_component_tuple_type_types_nth(ty, nth, type_ret) # type: ignore
3708class wasmtime_component_variant_type(ctypes.Structure):
3709 pass
3711wasmtime_component_variant_type_t = wasmtime_component_variant_type
3713_wasmtime_component_variant_type_clone = dll.wasmtime_component_variant_type_clone
3714_wasmtime_component_variant_type_clone.restype = ctypes.POINTER(wasmtime_component_variant_type_t)
3715_wasmtime_component_variant_type_clone.argtypes = [ctypes.POINTER(wasmtime_component_variant_type_t)]
3716def wasmtime_component_variant_type_clone(ty: Any) -> ctypes._Pointer:
3717 return _wasmtime_component_variant_type_clone(ty) # type: ignore
3719_wasmtime_component_variant_type_equal = dll.wasmtime_component_variant_type_equal
3720_wasmtime_component_variant_type_equal.restype = ctypes.c_bool
3721_wasmtime_component_variant_type_equal.argtypes = [ctypes.POINTER(wasmtime_component_variant_type_t), ctypes.POINTER(wasmtime_component_variant_type_t)]
3722def wasmtime_component_variant_type_equal(a: Any, b: Any) -> bool:
3723 return _wasmtime_component_variant_type_equal(a, b) # type: ignore
3725_wasmtime_component_variant_type_delete = dll.wasmtime_component_variant_type_delete
3726_wasmtime_component_variant_type_delete.restype = None
3727_wasmtime_component_variant_type_delete.argtypes = [ctypes.POINTER(wasmtime_component_variant_type_t)]
3728def wasmtime_component_variant_type_delete(ptr: Any) -> None:
3729 return _wasmtime_component_variant_type_delete(ptr) # type: ignore
3731_wasmtime_component_variant_type_case_count = dll.wasmtime_component_variant_type_case_count
3732_wasmtime_component_variant_type_case_count.restype = ctypes.c_size_t
3733_wasmtime_component_variant_type_case_count.argtypes = [ctypes.POINTER(wasmtime_component_variant_type_t)]
3734def wasmtime_component_variant_type_case_count(ty: Any) -> int:
3735 return _wasmtime_component_variant_type_case_count(ty) # type: ignore
3737_wasmtime_component_variant_type_case_nth = dll.wasmtime_component_variant_type_case_nth
3738_wasmtime_component_variant_type_case_nth.restype = ctypes.c_bool
3739_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)]
3740def 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:
3741 return _wasmtime_component_variant_type_case_nth(ty, nth, name_ret, name_len_ret, has_payload_ret, payload_ret) # type: ignore
3743class wasmtime_component_enum_type(ctypes.Structure):
3744 pass
3746wasmtime_component_enum_type_t = wasmtime_component_enum_type
3748_wasmtime_component_enum_type_clone = dll.wasmtime_component_enum_type_clone
3749_wasmtime_component_enum_type_clone.restype = ctypes.POINTER(wasmtime_component_enum_type_t)
3750_wasmtime_component_enum_type_clone.argtypes = [ctypes.POINTER(wasmtime_component_enum_type_t)]
3751def wasmtime_component_enum_type_clone(ty: Any) -> ctypes._Pointer:
3752 return _wasmtime_component_enum_type_clone(ty) # type: ignore
3754_wasmtime_component_enum_type_equal = dll.wasmtime_component_enum_type_equal
3755_wasmtime_component_enum_type_equal.restype = ctypes.c_bool
3756_wasmtime_component_enum_type_equal.argtypes = [ctypes.POINTER(wasmtime_component_enum_type_t), ctypes.POINTER(wasmtime_component_enum_type_t)]
3757def wasmtime_component_enum_type_equal(a: Any, b: Any) -> bool:
3758 return _wasmtime_component_enum_type_equal(a, b) # type: ignore
3760_wasmtime_component_enum_type_delete = dll.wasmtime_component_enum_type_delete
3761_wasmtime_component_enum_type_delete.restype = None
3762_wasmtime_component_enum_type_delete.argtypes = [ctypes.POINTER(wasmtime_component_enum_type_t)]
3763def wasmtime_component_enum_type_delete(ptr: Any) -> None:
3764 return _wasmtime_component_enum_type_delete(ptr) # type: ignore
3766_wasmtime_component_enum_type_names_count = dll.wasmtime_component_enum_type_names_count
3767_wasmtime_component_enum_type_names_count.restype = ctypes.c_size_t
3768_wasmtime_component_enum_type_names_count.argtypes = [ctypes.POINTER(wasmtime_component_enum_type_t)]
3769def wasmtime_component_enum_type_names_count(ty: Any) -> int:
3770 return _wasmtime_component_enum_type_names_count(ty) # type: ignore
3772_wasmtime_component_enum_type_names_nth = dll.wasmtime_component_enum_type_names_nth
3773_wasmtime_component_enum_type_names_nth.restype = ctypes.c_bool
3774_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)]
3775def wasmtime_component_enum_type_names_nth(ty: Any, nth: Any, name_ret: Any, name_len_ret: Any) -> bool:
3776 return _wasmtime_component_enum_type_names_nth(ty, nth, name_ret, name_len_ret) # type: ignore
3778class wasmtime_component_option_type(ctypes.Structure):
3779 pass
3781wasmtime_component_option_type_t = wasmtime_component_option_type
3783_wasmtime_component_option_type_clone = dll.wasmtime_component_option_type_clone
3784_wasmtime_component_option_type_clone.restype = ctypes.POINTER(wasmtime_component_option_type_t)
3785_wasmtime_component_option_type_clone.argtypes = [ctypes.POINTER(wasmtime_component_option_type_t)]
3786def wasmtime_component_option_type_clone(ty: Any) -> ctypes._Pointer:
3787 return _wasmtime_component_option_type_clone(ty) # type: ignore
3789_wasmtime_component_option_type_equal = dll.wasmtime_component_option_type_equal
3790_wasmtime_component_option_type_equal.restype = ctypes.c_bool
3791_wasmtime_component_option_type_equal.argtypes = [ctypes.POINTER(wasmtime_component_option_type_t), ctypes.POINTER(wasmtime_component_option_type_t)]
3792def wasmtime_component_option_type_equal(a: Any, b: Any) -> bool:
3793 return _wasmtime_component_option_type_equal(a, b) # type: ignore
3795_wasmtime_component_option_type_delete = dll.wasmtime_component_option_type_delete
3796_wasmtime_component_option_type_delete.restype = None
3797_wasmtime_component_option_type_delete.argtypes = [ctypes.POINTER(wasmtime_component_option_type_t)]
3798def wasmtime_component_option_type_delete(ptr: Any) -> None:
3799 return _wasmtime_component_option_type_delete(ptr) # type: ignore
3801_wasmtime_component_option_type_ty = dll.wasmtime_component_option_type_ty
3802_wasmtime_component_option_type_ty.restype = None
3803_wasmtime_component_option_type_ty.argtypes = [ctypes.POINTER(wasmtime_component_option_type_t), ctypes.POINTER(wasmtime_component_valtype_t)]
3804def wasmtime_component_option_type_ty(ty: Any, type_ret: Any) -> None:
3805 return _wasmtime_component_option_type_ty(ty, type_ret) # type: ignore
3807class wasmtime_component_result_type(ctypes.Structure):
3808 pass
3810wasmtime_component_result_type_t = wasmtime_component_result_type
3812_wasmtime_component_result_type_clone = dll.wasmtime_component_result_type_clone
3813_wasmtime_component_result_type_clone.restype = ctypes.POINTER(wasmtime_component_result_type_t)
3814_wasmtime_component_result_type_clone.argtypes = [ctypes.POINTER(wasmtime_component_result_type_t)]
3815def wasmtime_component_result_type_clone(ty: Any) -> ctypes._Pointer:
3816 return _wasmtime_component_result_type_clone(ty) # type: ignore
3818_wasmtime_component_result_type_equal = dll.wasmtime_component_result_type_equal
3819_wasmtime_component_result_type_equal.restype = ctypes.c_bool
3820_wasmtime_component_result_type_equal.argtypes = [ctypes.POINTER(wasmtime_component_result_type_t), ctypes.POINTER(wasmtime_component_result_type_t)]
3821def wasmtime_component_result_type_equal(a: Any, b: Any) -> bool:
3822 return _wasmtime_component_result_type_equal(a, b) # type: ignore
3824_wasmtime_component_result_type_delete = dll.wasmtime_component_result_type_delete
3825_wasmtime_component_result_type_delete.restype = None
3826_wasmtime_component_result_type_delete.argtypes = [ctypes.POINTER(wasmtime_component_result_type_t)]
3827def wasmtime_component_result_type_delete(ptr: Any) -> None:
3828 return _wasmtime_component_result_type_delete(ptr) # type: ignore
3830_wasmtime_component_result_type_ok = dll.wasmtime_component_result_type_ok
3831_wasmtime_component_result_type_ok.restype = ctypes.c_bool
3832_wasmtime_component_result_type_ok.argtypes = [ctypes.POINTER(wasmtime_component_result_type_t), ctypes.POINTER(wasmtime_component_valtype_t)]
3833def wasmtime_component_result_type_ok(ty: Any, type_ret: Any) -> bool:
3834 return _wasmtime_component_result_type_ok(ty, type_ret) # type: ignore
3836_wasmtime_component_result_type_err = dll.wasmtime_component_result_type_err
3837_wasmtime_component_result_type_err.restype = ctypes.c_bool
3838_wasmtime_component_result_type_err.argtypes = [ctypes.POINTER(wasmtime_component_result_type_t), ctypes.POINTER(wasmtime_component_valtype_t)]
3839def wasmtime_component_result_type_err(ty: Any, type_ret: Any) -> bool:
3840 return _wasmtime_component_result_type_err(ty, type_ret) # type: ignore
3842class wasmtime_component_flags_type(ctypes.Structure):
3843 pass
3845wasmtime_component_flags_type_t = wasmtime_component_flags_type
3847_wasmtime_component_flags_type_clone = dll.wasmtime_component_flags_type_clone
3848_wasmtime_component_flags_type_clone.restype = ctypes.POINTER(wasmtime_component_flags_type_t)
3849_wasmtime_component_flags_type_clone.argtypes = [ctypes.POINTER(wasmtime_component_flags_type_t)]
3850def wasmtime_component_flags_type_clone(ty: Any) -> ctypes._Pointer:
3851 return _wasmtime_component_flags_type_clone(ty) # type: ignore
3853_wasmtime_component_flags_type_equal = dll.wasmtime_component_flags_type_equal
3854_wasmtime_component_flags_type_equal.restype = ctypes.c_bool
3855_wasmtime_component_flags_type_equal.argtypes = [ctypes.POINTER(wasmtime_component_flags_type_t), ctypes.POINTER(wasmtime_component_flags_type_t)]
3856def wasmtime_component_flags_type_equal(a: Any, b: Any) -> bool:
3857 return _wasmtime_component_flags_type_equal(a, b) # type: ignore
3859_wasmtime_component_flags_type_delete = dll.wasmtime_component_flags_type_delete
3860_wasmtime_component_flags_type_delete.restype = None
3861_wasmtime_component_flags_type_delete.argtypes = [ctypes.POINTER(wasmtime_component_flags_type_t)]
3862def wasmtime_component_flags_type_delete(ptr: Any) -> None:
3863 return _wasmtime_component_flags_type_delete(ptr) # type: ignore
3865_wasmtime_component_flags_type_names_count = dll.wasmtime_component_flags_type_names_count
3866_wasmtime_component_flags_type_names_count.restype = ctypes.c_size_t
3867_wasmtime_component_flags_type_names_count.argtypes = [ctypes.POINTER(wasmtime_component_flags_type_t)]
3868def wasmtime_component_flags_type_names_count(ty: Any) -> int:
3869 return _wasmtime_component_flags_type_names_count(ty) # type: ignore
3871_wasmtime_component_flags_type_names_nth = dll.wasmtime_component_flags_type_names_nth
3872_wasmtime_component_flags_type_names_nth.restype = ctypes.c_bool
3873_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)]
3874def wasmtime_component_flags_type_names_nth(ty: Any, nth: Any, name_ret: Any, name_len_ret: Any) -> bool:
3875 return _wasmtime_component_flags_type_names_nth(ty, nth, name_ret, name_len_ret) # type: ignore
3877class wasmtime_component_future_type(ctypes.Structure):
3878 pass
3880wasmtime_component_future_type_t = wasmtime_component_future_type
3882_wasmtime_component_future_type_clone = dll.wasmtime_component_future_type_clone
3883_wasmtime_component_future_type_clone.restype = ctypes.POINTER(wasmtime_component_future_type_t)
3884_wasmtime_component_future_type_clone.argtypes = [ctypes.POINTER(wasmtime_component_future_type_t)]
3885def wasmtime_component_future_type_clone(ty: Any) -> ctypes._Pointer:
3886 return _wasmtime_component_future_type_clone(ty) # type: ignore
3888_wasmtime_component_future_type_equal = dll.wasmtime_component_future_type_equal
3889_wasmtime_component_future_type_equal.restype = ctypes.c_bool
3890_wasmtime_component_future_type_equal.argtypes = [ctypes.POINTER(wasmtime_component_future_type_t), ctypes.POINTER(wasmtime_component_future_type_t)]
3891def wasmtime_component_future_type_equal(a: Any, b: Any) -> bool:
3892 return _wasmtime_component_future_type_equal(a, b) # type: ignore
3894_wasmtime_component_future_type_delete = dll.wasmtime_component_future_type_delete
3895_wasmtime_component_future_type_delete.restype = None
3896_wasmtime_component_future_type_delete.argtypes = [ctypes.POINTER(wasmtime_component_future_type_t)]
3897def wasmtime_component_future_type_delete(ptr: Any) -> None:
3898 return _wasmtime_component_future_type_delete(ptr) # type: ignore
3900_wasmtime_component_future_type_ty = dll.wasmtime_component_future_type_ty
3901_wasmtime_component_future_type_ty.restype = ctypes.c_bool
3902_wasmtime_component_future_type_ty.argtypes = [ctypes.POINTER(wasmtime_component_future_type_t), ctypes.POINTER(wasmtime_component_valtype_t)]
3903def wasmtime_component_future_type_ty(ty: Any, type_ret: Any) -> bool:
3904 return _wasmtime_component_future_type_ty(ty, type_ret) # type: ignore
3906class wasmtime_component_stream_type(ctypes.Structure):
3907 pass
3909wasmtime_component_stream_type_t = wasmtime_component_stream_type
3911_wasmtime_component_stream_type_clone = dll.wasmtime_component_stream_type_clone
3912_wasmtime_component_stream_type_clone.restype = ctypes.POINTER(wasmtime_component_stream_type_t)
3913_wasmtime_component_stream_type_clone.argtypes = [ctypes.POINTER(wasmtime_component_stream_type_t)]
3914def wasmtime_component_stream_type_clone(ty: Any) -> ctypes._Pointer:
3915 return _wasmtime_component_stream_type_clone(ty) # type: ignore
3917_wasmtime_component_stream_type_equal = dll.wasmtime_component_stream_type_equal
3918_wasmtime_component_stream_type_equal.restype = ctypes.c_bool
3919_wasmtime_component_stream_type_equal.argtypes = [ctypes.POINTER(wasmtime_component_stream_type_t), ctypes.POINTER(wasmtime_component_stream_type_t)]
3920def wasmtime_component_stream_type_equal(a: Any, b: Any) -> bool:
3921 return _wasmtime_component_stream_type_equal(a, b) # type: ignore
3923_wasmtime_component_stream_type_delete = dll.wasmtime_component_stream_type_delete
3924_wasmtime_component_stream_type_delete.restype = None
3925_wasmtime_component_stream_type_delete.argtypes = [ctypes.POINTER(wasmtime_component_stream_type_t)]
3926def wasmtime_component_stream_type_delete(ptr: Any) -> None:
3927 return _wasmtime_component_stream_type_delete(ptr) # type: ignore
3929_wasmtime_component_stream_type_ty = dll.wasmtime_component_stream_type_ty
3930_wasmtime_component_stream_type_ty.restype = ctypes.c_bool
3931_wasmtime_component_stream_type_ty.argtypes = [ctypes.POINTER(wasmtime_component_stream_type_t), ctypes.POINTER(wasmtime_component_valtype_t)]
3932def wasmtime_component_stream_type_ty(ty: Any, type_ret: Any) -> bool:
3933 return _wasmtime_component_stream_type_ty(ty, type_ret) # type: ignore
3935wasmtime_component_valtype_kind_t = ctypes.c_uint8
3937class wasmtime_component_valtype_union(ctypes.Union):
3938 _fields_ = [
3939 ("list", ctypes.POINTER(wasmtime_component_list_type_t)),
3940 ("record", ctypes.POINTER(wasmtime_component_record_type_t)),
3941 ("tuple", ctypes.POINTER(wasmtime_component_tuple_type_t)),
3942 ("variant", ctypes.POINTER(wasmtime_component_variant_type_t)),
3943 ("enum_", ctypes.POINTER(wasmtime_component_enum_type_t)),
3944 ("option", ctypes.POINTER(wasmtime_component_option_type_t)),
3945 ("result", ctypes.POINTER(wasmtime_component_result_type_t)),
3946 ("flags", ctypes.POINTER(wasmtime_component_flags_type_t)),
3947 ("own", ctypes.POINTER(wasmtime_component_resource_type_t)),
3948 ("borrow", ctypes.POINTER(wasmtime_component_resource_type_t)),
3949 ("future", ctypes.POINTER(wasmtime_component_future_type_t)),
3950 ("stream", ctypes.POINTER(wasmtime_component_stream_type_t)),
3951 ]
3952 list: ctypes._Pointer
3953 record: ctypes._Pointer
3954 tuple: ctypes._Pointer
3955 variant: ctypes._Pointer
3956 enum_: ctypes._Pointer
3957 option: ctypes._Pointer
3958 result: ctypes._Pointer
3959 flags: ctypes._Pointer
3960 own: ctypes._Pointer
3961 borrow: ctypes._Pointer
3962 future: ctypes._Pointer
3963 stream: ctypes._Pointer
3965wasmtime_component_valtype_union_t = wasmtime_component_valtype_union
3967wasmtime_component_valtype_t._fields_ = [
3968 ("kind", wasmtime_component_valtype_kind_t),
3969 ("of", wasmtime_component_valtype_union_t),
3970 ]
3972_wasmtime_component_valtype_clone = dll.wasmtime_component_valtype_clone
3973_wasmtime_component_valtype_clone.restype = None
3974_wasmtime_component_valtype_clone.argtypes = [ctypes.POINTER(wasmtime_component_valtype_t), ctypes.POINTER(wasmtime_component_valtype_t)]
3975def wasmtime_component_valtype_clone(ty: Any, out: Any) -> None:
3976 return _wasmtime_component_valtype_clone(ty, out) # type: ignore
3978_wasmtime_component_valtype_equal = dll.wasmtime_component_valtype_equal
3979_wasmtime_component_valtype_equal.restype = ctypes.c_bool
3980_wasmtime_component_valtype_equal.argtypes = [ctypes.POINTER(wasmtime_component_valtype_t), ctypes.POINTER(wasmtime_component_valtype_t)]
3981def wasmtime_component_valtype_equal(a: Any, b: Any) -> bool:
3982 return _wasmtime_component_valtype_equal(a, b) # type: ignore
3984_wasmtime_component_valtype_delete = dll.wasmtime_component_valtype_delete
3985_wasmtime_component_valtype_delete.restype = None
3986_wasmtime_component_valtype_delete.argtypes = [ctypes.POINTER(wasmtime_component_valtype_t)]
3987def wasmtime_component_valtype_delete(ptr: Any) -> None:
3988 return _wasmtime_component_valtype_delete(ptr) # type: ignore
3990class wasmtime_component_func_type_t(ctypes.Structure):
3991 pass
3993_wasmtime_component_func_type_clone = dll.wasmtime_component_func_type_clone
3994_wasmtime_component_func_type_clone.restype = ctypes.POINTER(wasmtime_component_func_type_t)
3995_wasmtime_component_func_type_clone.argtypes = [ctypes.POINTER(wasmtime_component_func_type_t)]
3996def wasmtime_component_func_type_clone(ty: Any) -> ctypes._Pointer:
3997 return _wasmtime_component_func_type_clone(ty) # type: ignore
3999_wasmtime_component_func_type_delete = dll.wasmtime_component_func_type_delete
4000_wasmtime_component_func_type_delete.restype = None
4001_wasmtime_component_func_type_delete.argtypes = [ctypes.POINTER(wasmtime_component_func_type_t)]
4002def wasmtime_component_func_type_delete(ty: Any) -> None:
4003 return _wasmtime_component_func_type_delete(ty) # type: ignore
4005_wasmtime_component_func_type_async = dll.wasmtime_component_func_type_async
4006_wasmtime_component_func_type_async.restype = ctypes.c_bool
4007_wasmtime_component_func_type_async.argtypes = [ctypes.POINTER(wasmtime_component_func_type_t)]
4008def wasmtime_component_func_type_async(ty: Any) -> bool:
4009 return _wasmtime_component_func_type_async(ty) # type: ignore
4011_wasmtime_component_func_type_param_count = dll.wasmtime_component_func_type_param_count
4012_wasmtime_component_func_type_param_count.restype = ctypes.c_size_t
4013_wasmtime_component_func_type_param_count.argtypes = [ctypes.POINTER(wasmtime_component_func_type_t)]
4014def wasmtime_component_func_type_param_count(ty: Any) -> int:
4015 return _wasmtime_component_func_type_param_count(ty) # type: ignore
4017_wasmtime_component_func_type_param_nth = dll.wasmtime_component_func_type_param_nth
4018_wasmtime_component_func_type_param_nth.restype = ctypes.c_bool
4019_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)]
4020def wasmtime_component_func_type_param_nth(ty: Any, nth: Any, name_ret: Any, name_len_ret: Any, type_ret: Any) -> bool:
4021 return _wasmtime_component_func_type_param_nth(ty, nth, name_ret, name_len_ret, type_ret) # type: ignore
4023_wasmtime_component_func_type_result = dll.wasmtime_component_func_type_result
4024_wasmtime_component_func_type_result.restype = ctypes.c_bool
4025_wasmtime_component_func_type_result.argtypes = [ctypes.POINTER(wasmtime_component_func_type_t), ctypes.POINTER(wasmtime_component_valtype_t)]
4026def wasmtime_component_func_type_result(ty: Any, type_ret: Any) -> bool:
4027 return _wasmtime_component_func_type_result(ty, type_ret) # type: ignore
4029class wasmtime_component_item_t(ctypes.Structure):
4030 pass
4032class wasmtime_component_instance_type(ctypes.Structure):
4033 pass
4035wasmtime_component_instance_type_t = wasmtime_component_instance_type
4037_wasmtime_component_instance_type_clone = dll.wasmtime_component_instance_type_clone
4038_wasmtime_component_instance_type_clone.restype = ctypes.POINTER(wasmtime_component_instance_type_t)
4039_wasmtime_component_instance_type_clone.argtypes = [ctypes.POINTER(wasmtime_component_instance_type_t)]
4040def wasmtime_component_instance_type_clone(ty: Any) -> ctypes._Pointer:
4041 return _wasmtime_component_instance_type_clone(ty) # type: ignore
4043_wasmtime_component_instance_type_delete = dll.wasmtime_component_instance_type_delete
4044_wasmtime_component_instance_type_delete.restype = None
4045_wasmtime_component_instance_type_delete.argtypes = [ctypes.POINTER(wasmtime_component_instance_type_t)]
4046def wasmtime_component_instance_type_delete(ty: Any) -> None:
4047 return _wasmtime_component_instance_type_delete(ty) # type: ignore
4049_wasmtime_component_instance_type_export_count = dll.wasmtime_component_instance_type_export_count
4050_wasmtime_component_instance_type_export_count.restype = ctypes.c_size_t
4051_wasmtime_component_instance_type_export_count.argtypes = [ctypes.POINTER(wasmtime_component_instance_type_t), ctypes.POINTER(wasm_engine_t)]
4052def wasmtime_component_instance_type_export_count(ty: Any, engine: Any) -> int:
4053 return _wasmtime_component_instance_type_export_count(ty, engine) # type: ignore
4055_wasmtime_component_instance_type_export_get = dll.wasmtime_component_instance_type_export_get
4056_wasmtime_component_instance_type_export_get.restype = ctypes.c_bool
4057_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)]
4058def wasmtime_component_instance_type_export_get(ty: Any, engine: Any, name: Any, name_len: Any, ret: Any) -> bool:
4059 return _wasmtime_component_instance_type_export_get(ty, engine, name, name_len, ret) # type: ignore
4061_wasmtime_component_instance_type_export_nth = dll.wasmtime_component_instance_type_export_nth
4062_wasmtime_component_instance_type_export_nth.restype = ctypes.c_bool
4063_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)]
4064def wasmtime_component_instance_type_export_nth(ty: Any, engine: Any, nth: Any, name_ret: Any, name_len_ret: Any, type_ret: Any) -> bool:
4065 return _wasmtime_component_instance_type_export_nth(ty, engine, nth, name_ret, name_len_ret, type_ret) # type: ignore
4067class wasmtime_module_type(ctypes.Structure):
4068 pass
4070wasmtime_module_type_t = wasmtime_module_type
4072_wasmtime_module_type_clone = dll.wasmtime_module_type_clone
4073_wasmtime_module_type_clone.restype = ctypes.POINTER(wasmtime_module_type_t)
4074_wasmtime_module_type_clone.argtypes = [ctypes.POINTER(wasmtime_module_type_t)]
4075def wasmtime_module_type_clone(ty: Any) -> ctypes._Pointer:
4076 return _wasmtime_module_type_clone(ty) # type: ignore
4078_wasmtime_module_type_delete = dll.wasmtime_module_type_delete
4079_wasmtime_module_type_delete.restype = None
4080_wasmtime_module_type_delete.argtypes = [ctypes.POINTER(wasmtime_module_type_t)]
4081def wasmtime_module_type_delete(ty: Any) -> None:
4082 return _wasmtime_module_type_delete(ty) # type: ignore
4084_wasmtime_module_type_import_count = dll.wasmtime_module_type_import_count
4085_wasmtime_module_type_import_count.restype = ctypes.c_size_t
4086_wasmtime_module_type_import_count.argtypes = [ctypes.POINTER(wasmtime_module_type_t), ctypes.POINTER(wasm_engine_t)]
4087def wasmtime_module_type_import_count(ty: Any, engine: Any) -> int:
4088 return _wasmtime_module_type_import_count(ty, engine) # type: ignore
4090_wasmtime_module_type_import_nth = dll.wasmtime_module_type_import_nth
4091_wasmtime_module_type_import_nth.restype = ctypes.POINTER(wasm_importtype_t)
4092_wasmtime_module_type_import_nth.argtypes = [ctypes.POINTER(wasmtime_module_type_t), ctypes.POINTER(wasm_engine_t), ctypes.c_size_t]
4093def wasmtime_module_type_import_nth(ty: Any, engine: Any, nth: Any) -> ctypes._Pointer:
4094 return _wasmtime_module_type_import_nth(ty, engine, nth) # type: ignore
4096_wasmtime_module_type_export_count = dll.wasmtime_module_type_export_count
4097_wasmtime_module_type_export_count.restype = ctypes.c_size_t
4098_wasmtime_module_type_export_count.argtypes = [ctypes.POINTER(wasmtime_module_type_t), ctypes.POINTER(wasm_engine_t)]
4099def wasmtime_module_type_export_count(ty: Any, engine: Any) -> int:
4100 return _wasmtime_module_type_export_count(ty, engine) # type: ignore
4102_wasmtime_module_type_export_nth = dll.wasmtime_module_type_export_nth
4103_wasmtime_module_type_export_nth.restype = ctypes.POINTER(wasm_exporttype_t)
4104_wasmtime_module_type_export_nth.argtypes = [ctypes.POINTER(wasmtime_module_type_t), ctypes.POINTER(wasm_engine_t), ctypes.c_size_t]
4105def wasmtime_module_type_export_nth(ty: Any, engine: Any, nth: Any) -> ctypes._Pointer:
4106 return _wasmtime_module_type_export_nth(ty, engine, nth) # type: ignore
4108class wasmtime_component_type_t(ctypes.Structure):
4109 pass
4111_wasmtime_component_type_clone = dll.wasmtime_component_type_clone
4112_wasmtime_component_type_clone.restype = ctypes.POINTER(wasmtime_component_type_t)
4113_wasmtime_component_type_clone.argtypes = [ctypes.POINTER(wasmtime_component_type_t)]
4114def wasmtime_component_type_clone(ty: Any) -> ctypes._Pointer:
4115 return _wasmtime_component_type_clone(ty) # type: ignore
4117_wasmtime_component_type_delete = dll.wasmtime_component_type_delete
4118_wasmtime_component_type_delete.restype = None
4119_wasmtime_component_type_delete.argtypes = [ctypes.POINTER(wasmtime_component_type_t)]
4120def wasmtime_component_type_delete(ty: Any) -> None:
4121 return _wasmtime_component_type_delete(ty) # type: ignore
4123_wasmtime_component_type_import_count = dll.wasmtime_component_type_import_count
4124_wasmtime_component_type_import_count.restype = ctypes.c_size_t
4125_wasmtime_component_type_import_count.argtypes = [ctypes.POINTER(wasmtime_component_type_t), ctypes.POINTER(wasm_engine_t)]
4126def wasmtime_component_type_import_count(ty: Any, engine: Any) -> int:
4127 return _wasmtime_component_type_import_count(ty, engine) # type: ignore
4129_wasmtime_component_type_import_get = dll.wasmtime_component_type_import_get
4130_wasmtime_component_type_import_get.restype = ctypes.c_bool
4131_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)]
4132def wasmtime_component_type_import_get(ty: Any, engine: Any, name: Any, name_len: Any, ret: Any) -> bool:
4133 return _wasmtime_component_type_import_get(ty, engine, name, name_len, ret) # type: ignore
4135_wasmtime_component_type_import_nth = dll.wasmtime_component_type_import_nth
4136_wasmtime_component_type_import_nth.restype = ctypes.c_bool
4137_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)]
4138def wasmtime_component_type_import_nth(ty: Any, engine: Any, nth: Any, name_ret: Any, name_len_ret: Any, type_ret: Any) -> bool:
4139 return _wasmtime_component_type_import_nth(ty, engine, nth, name_ret, name_len_ret, type_ret) # type: ignore
4141_wasmtime_component_type_export_count = dll.wasmtime_component_type_export_count
4142_wasmtime_component_type_export_count.restype = ctypes.c_size_t
4143_wasmtime_component_type_export_count.argtypes = [ctypes.POINTER(wasmtime_component_type_t), ctypes.POINTER(wasm_engine_t)]
4144def wasmtime_component_type_export_count(ty: Any, engine: Any) -> int:
4145 return _wasmtime_component_type_export_count(ty, engine) # type: ignore
4147_wasmtime_component_type_export_get = dll.wasmtime_component_type_export_get
4148_wasmtime_component_type_export_get.restype = ctypes.c_bool
4149_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)]
4150def wasmtime_component_type_export_get(ty: Any, engine: Any, name: Any, name_len: Any, ret: Any) -> bool:
4151 return _wasmtime_component_type_export_get(ty, engine, name, name_len, ret) # type: ignore
4153_wasmtime_component_type_export_nth = dll.wasmtime_component_type_export_nth
4154_wasmtime_component_type_export_nth.restype = ctypes.c_bool
4155_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)]
4156def wasmtime_component_type_export_nth(ty: Any, engine: Any, nth: Any, name_ret: Any, name_len_ret: Any, type_ret: Any) -> bool:
4157 return _wasmtime_component_type_export_nth(ty, engine, nth, name_ret, name_len_ret, type_ret) # type: ignore
4159wasmtime_component_item_kind_t = ctypes.c_uint8
4161class wasmtime_component_item_union(ctypes.Union):
4162 _fields_ = [
4163 ("component", ctypes.POINTER(wasmtime_component_type_t)),
4164 ("component_instance", ctypes.POINTER(wasmtime_component_instance_type_t)),
4165 ("module", ctypes.POINTER(wasmtime_module_type_t)),
4166 ("component_func", ctypes.POINTER(wasmtime_component_func_type_t)),
4167 ("resource", ctypes.POINTER(wasmtime_component_resource_type_t)),
4168 ("core_func", ctypes.POINTER(wasm_functype_t)),
4169 ("type", wasmtime_component_valtype_t),
4170 ]
4171 component: ctypes._Pointer
4172 component_instance: ctypes._Pointer
4173 module: ctypes._Pointer
4174 component_func: ctypes._Pointer
4175 resource: ctypes._Pointer
4176 core_func: ctypes._Pointer
4177 type: wasmtime_component_valtype_t
4179wasmtime_component_item_union_t = wasmtime_component_item_union
4181wasmtime_component_item_t._fields_ = [
4182 ("kind", wasmtime_component_item_kind_t),
4183 ("of", wasmtime_component_item_union_t),
4184 ]
4186_wasmtime_component_item_clone = dll.wasmtime_component_item_clone
4187_wasmtime_component_item_clone.restype = None
4188_wasmtime_component_item_clone.argtypes = [ctypes.POINTER(wasmtime_component_item_t), ctypes.POINTER(wasmtime_component_item_t)]
4189def wasmtime_component_item_clone(item: Any, out: Any) -> None:
4190 return _wasmtime_component_item_clone(item, out) # type: ignore
4192_wasmtime_component_item_delete = dll.wasmtime_component_item_delete
4193_wasmtime_component_item_delete.restype = None
4194_wasmtime_component_item_delete.argtypes = [ctypes.POINTER(wasmtime_component_item_t)]
4195def wasmtime_component_item_delete(ptr: Any) -> None:
4196 return _wasmtime_component_item_delete(ptr) # type: ignore
4198class wasmtime_component_t(ctypes.Structure):
4199 pass
4201_wasmtime_component_new = dll.wasmtime_component_new
4202_wasmtime_component_new.restype = ctypes.POINTER(wasmtime_error_t)
4203_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))]
4204def wasmtime_component_new(engine: Any, buf: Any, len: Any, component_out: Any) -> ctypes._Pointer:
4205 return _wasmtime_component_new(engine, buf, len, component_out) # type: ignore
4207_wasmtime_component_serialize = dll.wasmtime_component_serialize
4208_wasmtime_component_serialize.restype = ctypes.POINTER(wasmtime_error_t)
4209_wasmtime_component_serialize.argtypes = [ctypes.POINTER(wasmtime_component_t), ctypes.POINTER(wasm_byte_vec_t)]
4210def wasmtime_component_serialize(component: Any, ret: Any) -> ctypes._Pointer:
4211 return _wasmtime_component_serialize(component, ret) # type: ignore
4213_wasmtime_component_deserialize = dll.wasmtime_component_deserialize
4214_wasmtime_component_deserialize.restype = ctypes.POINTER(wasmtime_error_t)
4215_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))]
4216def wasmtime_component_deserialize(engine: Any, buf: Any, len: Any, component_out: Any) -> ctypes._Pointer:
4217 return _wasmtime_component_deserialize(engine, buf, len, component_out) # type: ignore
4219_wasmtime_component_deserialize_file = dll.wasmtime_component_deserialize_file
4220_wasmtime_component_deserialize_file.restype = ctypes.POINTER(wasmtime_error_t)
4221_wasmtime_component_deserialize_file.argtypes = [ctypes.POINTER(wasm_engine_t), ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.POINTER(wasmtime_component_t))]
4222def wasmtime_component_deserialize_file(engine: Any, path: Any, component_out: Any) -> ctypes._Pointer:
4223 return _wasmtime_component_deserialize_file(engine, path, component_out) # type: ignore
4225_wasmtime_component_clone = dll.wasmtime_component_clone
4226_wasmtime_component_clone.restype = ctypes.POINTER(wasmtime_component_t)
4227_wasmtime_component_clone.argtypes = [ctypes.POINTER(wasmtime_component_t)]
4228def wasmtime_component_clone(component: Any) -> ctypes._Pointer:
4229 return _wasmtime_component_clone(component) # type: ignore
4231_wasmtime_component_type = dll.wasmtime_component_type
4232_wasmtime_component_type.restype = ctypes.POINTER(wasmtime_component_type_t)
4233_wasmtime_component_type.argtypes = [ctypes.POINTER(wasmtime_component_t)]
4234def wasmtime_component_type(component: Any) -> ctypes._Pointer:
4235 return _wasmtime_component_type(component) # type: ignore
4237_wasmtime_component_delete = dll.wasmtime_component_delete
4238_wasmtime_component_delete.restype = None
4239_wasmtime_component_delete.argtypes = [ctypes.POINTER(wasmtime_component_t)]
4240def wasmtime_component_delete(component: Any) -> None:
4241 return _wasmtime_component_delete(component) # type: ignore
4243class wasmtime_component_export_index_t(ctypes.Structure):
4244 pass
4246_wasmtime_component_get_export_index = dll.wasmtime_component_get_export_index
4247_wasmtime_component_get_export_index.restype = ctypes.POINTER(wasmtime_component_export_index_t)
4248_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]
4249def wasmtime_component_get_export_index(component: Any, instance_export_index: Any, name: Any, name_len: Any) -> ctypes._Pointer:
4250 return _wasmtime_component_get_export_index(component, instance_export_index, name, name_len) # type: ignore
4252_wasmtime_component_export_index_clone = dll.wasmtime_component_export_index_clone
4253_wasmtime_component_export_index_clone.restype = ctypes.POINTER(wasmtime_component_export_index_t)
4254_wasmtime_component_export_index_clone.argtypes = [ctypes.POINTER(wasmtime_component_export_index_t)]
4255def wasmtime_component_export_index_clone(index: Any) -> ctypes._Pointer:
4256 return _wasmtime_component_export_index_clone(index) # type: ignore
4258_wasmtime_component_export_index_delete = dll.wasmtime_component_export_index_delete
4259_wasmtime_component_export_index_delete.restype = None
4260_wasmtime_component_export_index_delete.argtypes = [ctypes.POINTER(wasmtime_component_export_index_t)]
4261def wasmtime_component_export_index_delete(export_index: Any) -> None:
4262 return _wasmtime_component_export_index_delete(export_index) # type: ignore
4264class wasmtime_component_resource_any(ctypes.Structure):
4265 pass
4267wasmtime_component_resource_any_t = wasmtime_component_resource_any
4269_wasmtime_component_resource_any_type = dll.wasmtime_component_resource_any_type
4270_wasmtime_component_resource_any_type.restype = ctypes.POINTER(wasmtime_component_resource_type_t)
4271_wasmtime_component_resource_any_type.argtypes = [ctypes.POINTER(wasmtime_component_resource_any_t)]
4272def wasmtime_component_resource_any_type(resource: Any) -> ctypes._Pointer:
4273 return _wasmtime_component_resource_any_type(resource) # type: ignore
4275_wasmtime_component_resource_any_clone = dll.wasmtime_component_resource_any_clone
4276_wasmtime_component_resource_any_clone.restype = ctypes.POINTER(wasmtime_component_resource_any_t)
4277_wasmtime_component_resource_any_clone.argtypes = [ctypes.POINTER(wasmtime_component_resource_any_t)]
4278def wasmtime_component_resource_any_clone(resource: Any) -> ctypes._Pointer:
4279 return _wasmtime_component_resource_any_clone(resource) # type: ignore
4281_wasmtime_component_resource_any_owned = dll.wasmtime_component_resource_any_owned
4282_wasmtime_component_resource_any_owned.restype = ctypes.c_bool
4283_wasmtime_component_resource_any_owned.argtypes = [ctypes.POINTER(wasmtime_component_resource_any_t)]
4284def wasmtime_component_resource_any_owned(resource: Any) -> bool:
4285 return _wasmtime_component_resource_any_owned(resource) # type: ignore
4287_wasmtime_component_resource_any_drop = dll.wasmtime_component_resource_any_drop
4288_wasmtime_component_resource_any_drop.restype = ctypes.POINTER(wasmtime_error_t)
4289_wasmtime_component_resource_any_drop.argtypes = [ctypes.POINTER(wasmtime_context_t), ctypes.POINTER(wasmtime_component_resource_any_t)]
4290def wasmtime_component_resource_any_drop(ctx: Any, resource: Any) -> ctypes._Pointer:
4291 return _wasmtime_component_resource_any_drop(ctx, resource) # type: ignore
4293_wasmtime_component_resource_any_delete = dll.wasmtime_component_resource_any_delete
4294_wasmtime_component_resource_any_delete.restype = None
4295_wasmtime_component_resource_any_delete.argtypes = [ctypes.POINTER(wasmtime_component_resource_any_t)]
4296def wasmtime_component_resource_any_delete(resource: Any) -> None:
4297 return _wasmtime_component_resource_any_delete(resource) # type: ignore
4299class wasmtime_component_resource_host(ctypes.Structure):
4300 pass
4302wasmtime_component_resource_host_t = wasmtime_component_resource_host
4304_wasmtime_component_resource_host_new = dll.wasmtime_component_resource_host_new
4305_wasmtime_component_resource_host_new.restype = ctypes.POINTER(wasmtime_component_resource_host_t)
4306_wasmtime_component_resource_host_new.argtypes = [ctypes.c_bool, ctypes.c_uint32, ctypes.c_uint32]
4307def wasmtime_component_resource_host_new(owned: Any, rep: Any, ty: Any) -> ctypes._Pointer:
4308 return _wasmtime_component_resource_host_new(owned, rep, ty) # type: ignore
4310_wasmtime_component_resource_host_clone = dll.wasmtime_component_resource_host_clone
4311_wasmtime_component_resource_host_clone.restype = ctypes.POINTER(wasmtime_component_resource_host_t)
4312_wasmtime_component_resource_host_clone.argtypes = [ctypes.POINTER(wasmtime_component_resource_host_t)]
4313def wasmtime_component_resource_host_clone(resource: Any) -> ctypes._Pointer:
4314 return _wasmtime_component_resource_host_clone(resource) # type: ignore
4316_wasmtime_component_resource_host_rep = dll.wasmtime_component_resource_host_rep
4317_wasmtime_component_resource_host_rep.restype = ctypes.c_uint32
4318_wasmtime_component_resource_host_rep.argtypes = [ctypes.POINTER(wasmtime_component_resource_host_t)]
4319def wasmtime_component_resource_host_rep(resource: Any) -> int:
4320 return _wasmtime_component_resource_host_rep(resource) # type: ignore
4322_wasmtime_component_resource_host_type = dll.wasmtime_component_resource_host_type
4323_wasmtime_component_resource_host_type.restype = ctypes.c_uint32
4324_wasmtime_component_resource_host_type.argtypes = [ctypes.POINTER(wasmtime_component_resource_host_t)]
4325def wasmtime_component_resource_host_type(resource: Any) -> int:
4326 return _wasmtime_component_resource_host_type(resource) # type: ignore
4328_wasmtime_component_resource_host_owned = dll.wasmtime_component_resource_host_owned
4329_wasmtime_component_resource_host_owned.restype = ctypes.c_bool
4330_wasmtime_component_resource_host_owned.argtypes = [ctypes.POINTER(wasmtime_component_resource_host_t)]
4331def wasmtime_component_resource_host_owned(resource: Any) -> bool:
4332 return _wasmtime_component_resource_host_owned(resource) # type: ignore
4334_wasmtime_component_resource_host_delete = dll.wasmtime_component_resource_host_delete
4335_wasmtime_component_resource_host_delete.restype = None
4336_wasmtime_component_resource_host_delete.argtypes = [ctypes.POINTER(wasmtime_component_resource_host_t)]
4337def wasmtime_component_resource_host_delete(resource: Any) -> None:
4338 return _wasmtime_component_resource_host_delete(resource) # type: ignore
4340_wasmtime_component_resource_any_to_host = dll.wasmtime_component_resource_any_to_host
4341_wasmtime_component_resource_any_to_host.restype = ctypes.POINTER(wasmtime_error_t)
4342_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))]
4343def wasmtime_component_resource_any_to_host(ctx: Any, resource: Any, ret: Any) -> ctypes._Pointer:
4344 return _wasmtime_component_resource_any_to_host(ctx, resource, ret) # type: ignore
4346_wasmtime_component_resource_host_to_any = dll.wasmtime_component_resource_host_to_any
4347_wasmtime_component_resource_host_to_any.restype = ctypes.POINTER(wasmtime_error_t)
4348_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))]
4349def wasmtime_component_resource_host_to_any(ctx: Any, resource: Any, ret: Any) -> ctypes._Pointer:
4350 return _wasmtime_component_resource_host_to_any(ctx, resource, ret) # type: ignore
4352wasmtime_component_valkind_t = ctypes.c_uint8
4354class wasmtime_component_val(ctypes.Structure):
4355 pass
4357class wasmtime_component_valrecord_entry(ctypes.Structure):
4358 pass
4360class wasmtime_component_vallist(ctypes.Structure):
4361 _fields_ = [
4362 ("size", ctypes.c_size_t),
4363 ("data", ctypes.POINTER(wasmtime_component_val)),
4364 ]
4365 size: int
4366 data: ctypes._Pointer
4368wasmtime_component_vallist_t = wasmtime_component_vallist
4370_wasmtime_component_vallist_new = dll.wasmtime_component_vallist_new
4371_wasmtime_component_vallist_new.restype = None
4372_wasmtime_component_vallist_new.argtypes = [ctypes.POINTER(wasmtime_component_vallist_t), ctypes.c_size_t, ctypes.POINTER(wasmtime_component_val)]
4373def wasmtime_component_vallist_new(out: Any, size: Any, ptr: Any) -> None:
4374 return _wasmtime_component_vallist_new(out, size, ptr) # type: ignore
4376_wasmtime_component_vallist_new_empty = dll.wasmtime_component_vallist_new_empty
4377_wasmtime_component_vallist_new_empty.restype = None
4378_wasmtime_component_vallist_new_empty.argtypes = [ctypes.POINTER(wasmtime_component_vallist_t)]
4379def wasmtime_component_vallist_new_empty(out: Any) -> None:
4380 return _wasmtime_component_vallist_new_empty(out) # type: ignore
4382_wasmtime_component_vallist_new_uninit = dll.wasmtime_component_vallist_new_uninit
4383_wasmtime_component_vallist_new_uninit.restype = None
4384_wasmtime_component_vallist_new_uninit.argtypes = [ctypes.POINTER(wasmtime_component_vallist_t), ctypes.c_size_t]
4385def wasmtime_component_vallist_new_uninit(out: Any, size: Any) -> None:
4386 return _wasmtime_component_vallist_new_uninit(out, size) # type: ignore
4388_wasmtime_component_vallist_copy = dll.wasmtime_component_vallist_copy
4389_wasmtime_component_vallist_copy.restype = None
4390_wasmtime_component_vallist_copy.argtypes = [ctypes.POINTER(wasmtime_component_vallist_t), ctypes.POINTER(wasmtime_component_vallist_t)]
4391def wasmtime_component_vallist_copy(dst: Any, src: Any) -> None:
4392 return _wasmtime_component_vallist_copy(dst, src) # type: ignore
4394_wasmtime_component_vallist_delete = dll.wasmtime_component_vallist_delete
4395_wasmtime_component_vallist_delete.restype = None
4396_wasmtime_component_vallist_delete.argtypes = [ctypes.POINTER(wasmtime_component_vallist_t)]
4397def wasmtime_component_vallist_delete(value: Any) -> None:
4398 return _wasmtime_component_vallist_delete(value) # type: ignore
4400class wasmtime_component_valrecord(ctypes.Structure):
4401 _fields_ = [
4402 ("size", ctypes.c_size_t),
4403 ("data", ctypes.POINTER(wasmtime_component_valrecord_entry)),
4404 ]
4405 size: int
4406 data: ctypes._Pointer
4408wasmtime_component_valrecord_t = wasmtime_component_valrecord
4410_wasmtime_component_valrecord_new = dll.wasmtime_component_valrecord_new
4411_wasmtime_component_valrecord_new.restype = None
4412_wasmtime_component_valrecord_new.argtypes = [ctypes.POINTER(wasmtime_component_valrecord_t), ctypes.c_size_t, ctypes.POINTER(wasmtime_component_valrecord_entry)]
4413def wasmtime_component_valrecord_new(out: Any, size: Any, ptr: Any) -> None:
4414 return _wasmtime_component_valrecord_new(out, size, ptr) # type: ignore
4416_wasmtime_component_valrecord_new_empty = dll.wasmtime_component_valrecord_new_empty
4417_wasmtime_component_valrecord_new_empty.restype = None
4418_wasmtime_component_valrecord_new_empty.argtypes = [ctypes.POINTER(wasmtime_component_valrecord_t)]
4419def wasmtime_component_valrecord_new_empty(out: Any) -> None:
4420 return _wasmtime_component_valrecord_new_empty(out) # type: ignore
4422_wasmtime_component_valrecord_new_uninit = dll.wasmtime_component_valrecord_new_uninit
4423_wasmtime_component_valrecord_new_uninit.restype = None
4424_wasmtime_component_valrecord_new_uninit.argtypes = [ctypes.POINTER(wasmtime_component_valrecord_t), ctypes.c_size_t]
4425def wasmtime_component_valrecord_new_uninit(out: Any, size: Any) -> None:
4426 return _wasmtime_component_valrecord_new_uninit(out, size) # type: ignore
4428_wasmtime_component_valrecord_copy = dll.wasmtime_component_valrecord_copy
4429_wasmtime_component_valrecord_copy.restype = None
4430_wasmtime_component_valrecord_copy.argtypes = [ctypes.POINTER(wasmtime_component_valrecord_t), ctypes.POINTER(wasmtime_component_valrecord_t)]
4431def wasmtime_component_valrecord_copy(dst: Any, src: Any) -> None:
4432 return _wasmtime_component_valrecord_copy(dst, src) # type: ignore
4434_wasmtime_component_valrecord_delete = dll.wasmtime_component_valrecord_delete
4435_wasmtime_component_valrecord_delete.restype = None
4436_wasmtime_component_valrecord_delete.argtypes = [ctypes.POINTER(wasmtime_component_valrecord_t)]
4437def wasmtime_component_valrecord_delete(value: Any) -> None:
4438 return _wasmtime_component_valrecord_delete(value) # type: ignore
4440class wasmtime_component_valtuple(ctypes.Structure):
4441 _fields_ = [
4442 ("size", ctypes.c_size_t),
4443 ("data", ctypes.POINTER(wasmtime_component_val)),
4444 ]
4445 size: int
4446 data: ctypes._Pointer
4448wasmtime_component_valtuple_t = wasmtime_component_valtuple
4450_wasmtime_component_valtuple_new = dll.wasmtime_component_valtuple_new
4451_wasmtime_component_valtuple_new.restype = None
4452_wasmtime_component_valtuple_new.argtypes = [ctypes.POINTER(wasmtime_component_valtuple_t), ctypes.c_size_t, ctypes.POINTER(wasmtime_component_val)]
4453def wasmtime_component_valtuple_new(out: Any, size: Any, ptr: Any) -> None:
4454 return _wasmtime_component_valtuple_new(out, size, ptr) # type: ignore
4456_wasmtime_component_valtuple_new_empty = dll.wasmtime_component_valtuple_new_empty
4457_wasmtime_component_valtuple_new_empty.restype = None
4458_wasmtime_component_valtuple_new_empty.argtypes = [ctypes.POINTER(wasmtime_component_valtuple_t)]
4459def wasmtime_component_valtuple_new_empty(out: Any) -> None:
4460 return _wasmtime_component_valtuple_new_empty(out) # type: ignore
4462_wasmtime_component_valtuple_new_uninit = dll.wasmtime_component_valtuple_new_uninit
4463_wasmtime_component_valtuple_new_uninit.restype = None
4464_wasmtime_component_valtuple_new_uninit.argtypes = [ctypes.POINTER(wasmtime_component_valtuple_t), ctypes.c_size_t]
4465def wasmtime_component_valtuple_new_uninit(out: Any, size: Any) -> None:
4466 return _wasmtime_component_valtuple_new_uninit(out, size) # type: ignore
4468_wasmtime_component_valtuple_copy = dll.wasmtime_component_valtuple_copy
4469_wasmtime_component_valtuple_copy.restype = None
4470_wasmtime_component_valtuple_copy.argtypes = [ctypes.POINTER(wasmtime_component_valtuple_t), ctypes.POINTER(wasmtime_component_valtuple_t)]
4471def wasmtime_component_valtuple_copy(dst: Any, src: Any) -> None:
4472 return _wasmtime_component_valtuple_copy(dst, src) # type: ignore
4474_wasmtime_component_valtuple_delete = dll.wasmtime_component_valtuple_delete
4475_wasmtime_component_valtuple_delete.restype = None
4476_wasmtime_component_valtuple_delete.argtypes = [ctypes.POINTER(wasmtime_component_valtuple_t)]
4477def wasmtime_component_valtuple_delete(value: Any) -> None:
4478 return _wasmtime_component_valtuple_delete(value) # type: ignore
4480class wasmtime_component_valflags(ctypes.Structure):
4481 _fields_ = [
4482 ("size", ctypes.c_size_t),
4483 ("data", ctypes.POINTER(wasm_name_t)),
4484 ]
4485 size: int
4486 data: ctypes._Pointer
4488wasmtime_component_valflags_t = wasmtime_component_valflags
4490_wasmtime_component_valflags_new = dll.wasmtime_component_valflags_new
4491_wasmtime_component_valflags_new.restype = None
4492_wasmtime_component_valflags_new.argtypes = [ctypes.POINTER(wasmtime_component_valflags_t), ctypes.c_size_t, ctypes.POINTER(wasm_name_t)]
4493def wasmtime_component_valflags_new(out: Any, size: Any, ptr: Any) -> None:
4494 return _wasmtime_component_valflags_new(out, size, ptr) # type: ignore
4496_wasmtime_component_valflags_new_empty = dll.wasmtime_component_valflags_new_empty
4497_wasmtime_component_valflags_new_empty.restype = None
4498_wasmtime_component_valflags_new_empty.argtypes = [ctypes.POINTER(wasmtime_component_valflags_t)]
4499def wasmtime_component_valflags_new_empty(out: Any) -> None:
4500 return _wasmtime_component_valflags_new_empty(out) # type: ignore
4502_wasmtime_component_valflags_new_uninit = dll.wasmtime_component_valflags_new_uninit
4503_wasmtime_component_valflags_new_uninit.restype = None
4504_wasmtime_component_valflags_new_uninit.argtypes = [ctypes.POINTER(wasmtime_component_valflags_t), ctypes.c_size_t]
4505def wasmtime_component_valflags_new_uninit(out: Any, size: Any) -> None:
4506 return _wasmtime_component_valflags_new_uninit(out, size) # type: ignore
4508_wasmtime_component_valflags_copy = dll.wasmtime_component_valflags_copy
4509_wasmtime_component_valflags_copy.restype = None
4510_wasmtime_component_valflags_copy.argtypes = [ctypes.POINTER(wasmtime_component_valflags_t), ctypes.POINTER(wasmtime_component_valflags_t)]
4511def wasmtime_component_valflags_copy(dst: Any, src: Any) -> None:
4512 return _wasmtime_component_valflags_copy(dst, src) # type: ignore
4514_wasmtime_component_valflags_delete = dll.wasmtime_component_valflags_delete
4515_wasmtime_component_valflags_delete.restype = None
4516_wasmtime_component_valflags_delete.argtypes = [ctypes.POINTER(wasmtime_component_valflags_t)]
4517def wasmtime_component_valflags_delete(value: Any) -> None:
4518 return _wasmtime_component_valflags_delete(value) # type: ignore
4520class wasmtime_component_valvariant(ctypes.Structure):
4521 _fields_ = [
4522 ("discriminant", wasm_name_t),
4523 ("val", ctypes.POINTER(wasmtime_component_val)),
4524 ]
4525 discriminant: wasm_name_t
4526 val: ctypes._Pointer
4528wasmtime_component_valvariant_t = wasmtime_component_valvariant
4530class wasmtime_component_valresult(ctypes.Structure):
4531 _fields_ = [
4532 ("is_ok", ctypes.c_bool),
4533 ("val", ctypes.POINTER(wasmtime_component_val)),
4534 ]
4535 is_ok: bool
4536 val: ctypes._Pointer
4538wasmtime_component_valresult_t = wasmtime_component_valresult
4540class wasmtime_component_valunion(ctypes.Union):
4541 _fields_ = [
4542 ("boolean", ctypes.c_bool),
4543 ("s8", ctypes.c_int8),
4544 ("u8", ctypes.c_uint8),
4545 ("s16", ctypes.c_int16),
4546 ("u16", ctypes.c_uint16),
4547 ("s32", ctypes.c_int32),
4548 ("u32", ctypes.c_uint32),
4549 ("s64", ctypes.c_int64),
4550 ("u64", ctypes.c_uint64),
4551 ("f32", ctypes.c_float),
4552 ("f64", ctypes.c_double),
4553 ("character", ctypes.c_uint32),
4554 ("string", wasm_name_t),
4555 ("list", wasmtime_component_vallist_t),
4556 ("record", wasmtime_component_valrecord_t),
4557 ("tuple", wasmtime_component_valtuple_t),
4558 ("variant", wasmtime_component_valvariant_t),
4559 ("enumeration", wasm_name_t),
4560 ("option", ctypes.POINTER(wasmtime_component_val)),
4561 ("result", wasmtime_component_valresult_t),
4562 ("flags", wasmtime_component_valflags_t),
4563 ("resource", ctypes.POINTER(wasmtime_component_resource_any_t)),
4564 ]
4565 boolean: bool
4566 s8: ctypes.c_int8
4567 u8: ctypes.c_uint8
4568 s16: ctypes.c_int16
4569 u16: ctypes.c_uint16
4570 s32: int
4571 u32: int
4572 s64: int
4573 u64: int
4574 f32: float
4575 f64: float
4576 character: int
4577 string: wasm_name_t
4578 list: wasmtime_component_vallist_t
4579 record: wasmtime_component_valrecord_t
4580 tuple: wasmtime_component_valtuple_t
4581 variant: wasmtime_component_valvariant_t
4582 enumeration: wasm_name_t
4583 option: ctypes._Pointer
4584 result: wasmtime_component_valresult_t
4585 flags: wasmtime_component_valflags_t
4586 resource: ctypes._Pointer
4588wasmtime_component_valunion_t = wasmtime_component_valunion
4590wasmtime_component_val._fields_ = [
4591 ("kind", wasmtime_component_valkind_t),
4592 ("of", wasmtime_component_valunion_t),
4593 ]
4595wasmtime_component_val_t = wasmtime_component_val
4597wasmtime_component_valrecord_entry._fields_ = [
4598 ("name", wasm_name_t),
4599 ("val", wasmtime_component_val_t),
4600 ]
4602wasmtime_component_valrecord_entry_t = wasmtime_component_valrecord_entry
4604_wasmtime_component_val_new = dll.wasmtime_component_val_new
4605_wasmtime_component_val_new.restype = ctypes.POINTER(wasmtime_component_val_t)
4606_wasmtime_component_val_new.argtypes = [ctypes.POINTER(wasmtime_component_val_t)]
4607def wasmtime_component_val_new(val: Any) -> ctypes._Pointer:
4608 return _wasmtime_component_val_new(val) # type: ignore
4610_wasmtime_component_val_free = dll.wasmtime_component_val_free
4611_wasmtime_component_val_free.restype = None
4612_wasmtime_component_val_free.argtypes = [ctypes.POINTER(wasmtime_component_val_t)]
4613def wasmtime_component_val_free(ptr: Any) -> None:
4614 return _wasmtime_component_val_free(ptr) # type: ignore
4616_wasmtime_component_val_clone = dll.wasmtime_component_val_clone
4617_wasmtime_component_val_clone.restype = None
4618_wasmtime_component_val_clone.argtypes = [ctypes.POINTER(wasmtime_component_val_t), ctypes.POINTER(wasmtime_component_val_t)]
4619def wasmtime_component_val_clone(src: Any, dst: Any) -> None:
4620 return _wasmtime_component_val_clone(src, dst) # type: ignore
4622_wasmtime_component_val_delete = dll.wasmtime_component_val_delete
4623_wasmtime_component_val_delete.restype = None
4624_wasmtime_component_val_delete.argtypes = [ctypes.POINTER(wasmtime_component_val_t)]
4625def wasmtime_component_val_delete(value: Any) -> None:
4626 return _wasmtime_component_val_delete(value) # type: ignore
4629class wasmtime_component_func_anon_0(ctypes.Structure):
4630 _fields_ = [
4631 ("store_id", ctypes.c_uint64),
4632 ("__private1", ctypes.c_uint32),
4633 ]
4634 store_id: int
4635 __private1: int
4636class wasmtime_component_func(ctypes.Structure):
4637 _fields_ = [
4638 ("_anon_1", wasmtime_component_func_anon_0),
4639 ("__private2", ctypes.c_uint32),
4640 ]
4641 _anon_1: wasmtime_component_func_anon_0
4642 __private2: int
4644wasmtime_component_func_t = wasmtime_component_func
4646_wasmtime_component_func_type = dll.wasmtime_component_func_type
4647_wasmtime_component_func_type.restype = ctypes.POINTER(wasmtime_component_func_type_t)
4648_wasmtime_component_func_type.argtypes = [ctypes.POINTER(wasmtime_component_func_t), ctypes.POINTER(wasmtime_context_t)]
4649def wasmtime_component_func_type(func: Any, context: Any) -> ctypes._Pointer:
4650 return _wasmtime_component_func_type(func, context) # type: ignore
4652_wasmtime_component_func_call = dll.wasmtime_component_func_call
4653_wasmtime_component_func_call.restype = ctypes.POINTER(wasmtime_error_t)
4654_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]
4655def wasmtime_component_func_call(func: Any, context: Any, args: Any, args_size: Any, results: Any, results_size: Any) -> ctypes._Pointer:
4656 return _wasmtime_component_func_call(func, context, args, args_size, results, results_size) # type: ignore
4658_wasmtime_component_func_post_return = dll.wasmtime_component_func_post_return
4659_wasmtime_component_func_post_return.restype = ctypes.POINTER(wasmtime_error_t)
4660_wasmtime_component_func_post_return.argtypes = [ctypes.POINTER(wasmtime_component_func_t), ctypes.POINTER(wasmtime_context_t)]
4661def wasmtime_component_func_post_return(func: Any, context: Any) -> ctypes._Pointer:
4662 return _wasmtime_component_func_post_return(func, context) # type: ignore
4664class wasmtime_component_instance(ctypes.Structure):
4665 _fields_ = [
4666 ("store_id", ctypes.c_uint64),
4667 ("__private", ctypes.c_uint32),
4668 ]
4669 store_id: int
4670 __private: int
4672wasmtime_component_instance_t = wasmtime_component_instance
4674_wasmtime_component_instance_get_export_index = dll.wasmtime_component_instance_get_export_index
4675_wasmtime_component_instance_get_export_index.restype = ctypes.POINTER(wasmtime_component_export_index_t)
4676_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]
4677def wasmtime_component_instance_get_export_index(instance: Any, context: Any, instance_export_index: Any, name: Any, name_len: Any) -> ctypes._Pointer:
4678 return _wasmtime_component_instance_get_export_index(instance, context, instance_export_index, name, name_len) # type: ignore
4680_wasmtime_component_instance_get_func = dll.wasmtime_component_instance_get_func
4681_wasmtime_component_instance_get_func.restype = ctypes.c_bool
4682_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)]
4683def wasmtime_component_instance_get_func(instance: Any, context: Any, export_index: Any, func_out: Any) -> bool:
4684 return _wasmtime_component_instance_get_func(instance, context, export_index, func_out) # type: ignore
4686class wasmtime_component_linker_t(ctypes.Structure):
4687 pass
4689class wasmtime_component_linker_instance_t(ctypes.Structure):
4690 pass
4692_wasmtime_component_linker_new = dll.wasmtime_component_linker_new
4693_wasmtime_component_linker_new.restype = ctypes.POINTER(wasmtime_component_linker_t)
4694_wasmtime_component_linker_new.argtypes = [ctypes.POINTER(wasm_engine_t)]
4695def wasmtime_component_linker_new(engine: Any) -> ctypes._Pointer:
4696 return _wasmtime_component_linker_new(engine) # type: ignore
4698_wasmtime_component_linker_allow_shadowing = dll.wasmtime_component_linker_allow_shadowing
4699_wasmtime_component_linker_allow_shadowing.restype = None
4700_wasmtime_component_linker_allow_shadowing.argtypes = [ctypes.POINTER(wasmtime_component_linker_t), ctypes.c_bool]
4701def wasmtime_component_linker_allow_shadowing(linker: Any, allow: Any) -> None:
4702 return _wasmtime_component_linker_allow_shadowing(linker, allow) # type: ignore
4704_wasmtime_component_linker_root = dll.wasmtime_component_linker_root
4705_wasmtime_component_linker_root.restype = ctypes.POINTER(wasmtime_component_linker_instance_t)
4706_wasmtime_component_linker_root.argtypes = [ctypes.POINTER(wasmtime_component_linker_t)]
4707def wasmtime_component_linker_root(linker: Any) -> ctypes._Pointer:
4708 return _wasmtime_component_linker_root(linker) # type: ignore
4710_wasmtime_component_linker_instantiate = dll.wasmtime_component_linker_instantiate
4711_wasmtime_component_linker_instantiate.restype = ctypes.POINTER(wasmtime_error_t)
4712_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)]
4713def wasmtime_component_linker_instantiate(linker: Any, context: Any, component: Any, instance_out: Any) -> ctypes._Pointer:
4714 return _wasmtime_component_linker_instantiate(linker, context, component, instance_out) # type: ignore
4716_wasmtime_component_linker_define_unknown_imports_as_traps = dll.wasmtime_component_linker_define_unknown_imports_as_traps
4717_wasmtime_component_linker_define_unknown_imports_as_traps.restype = ctypes.POINTER(wasmtime_error_t)
4718_wasmtime_component_linker_define_unknown_imports_as_traps.argtypes = [ctypes.POINTER(wasmtime_component_linker_t), ctypes.POINTER(wasmtime_component_t)]
4719def wasmtime_component_linker_define_unknown_imports_as_traps(linker: Any, component: Any) -> ctypes._Pointer:
4720 return _wasmtime_component_linker_define_unknown_imports_as_traps(linker, component) # type: ignore
4722_wasmtime_component_linker_delete = dll.wasmtime_component_linker_delete
4723_wasmtime_component_linker_delete.restype = None
4724_wasmtime_component_linker_delete.argtypes = [ctypes.POINTER(wasmtime_component_linker_t)]
4725def wasmtime_component_linker_delete(linker: Any) -> None:
4726 return _wasmtime_component_linker_delete(linker) # type: ignore
4728_wasmtime_component_linker_instance_add_instance = dll.wasmtime_component_linker_instance_add_instance
4729_wasmtime_component_linker_instance_add_instance.restype = ctypes.POINTER(wasmtime_error_t)
4730_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))]
4731def wasmtime_component_linker_instance_add_instance(linker_instance: Any, name: Any, name_len: Any, linker_instance_out: Any) -> ctypes._Pointer:
4732 return _wasmtime_component_linker_instance_add_instance(linker_instance, name, name_len, linker_instance_out) # type: ignore
4734_wasmtime_component_linker_instance_add_module = dll.wasmtime_component_linker_instance_add_module
4735_wasmtime_component_linker_instance_add_module.restype = ctypes.POINTER(wasmtime_error_t)
4736_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)]
4737def wasmtime_component_linker_instance_add_module(linker_instance: Any, name: Any, name_len: Any, module: Any) -> ctypes._Pointer:
4738 return _wasmtime_component_linker_instance_add_module(linker_instance, name, name_len, module) # type: ignore
4740wasmtime_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)
4742_wasmtime_component_linker_instance_add_func = dll.wasmtime_component_linker_instance_add_func
4743_wasmtime_component_linker_instance_add_func.restype = ctypes.POINTER(wasmtime_error_t)
4744_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)]
4745def wasmtime_component_linker_instance_add_func(linker_instance: Any, name: Any, name_len: Any, callback: Any, data: Any, finalizer: Any) -> ctypes._Pointer:
4746 return _wasmtime_component_linker_instance_add_func(linker_instance, name, name_len, callback, data, finalizer) # type: ignore
4748_wasmtime_component_linker_add_wasip2 = dll.wasmtime_component_linker_add_wasip2
4749_wasmtime_component_linker_add_wasip2.restype = ctypes.POINTER(wasmtime_error_t)
4750_wasmtime_component_linker_add_wasip2.argtypes = [ctypes.POINTER(wasmtime_component_linker_t)]
4751def wasmtime_component_linker_add_wasip2(linker: Any) -> ctypes._Pointer:
4752 return _wasmtime_component_linker_add_wasip2(linker) # type: ignore
4754wasmtime_component_resource_destructor_t = ctypes.CFUNCTYPE(ctypes.c_size_t, ctypes.c_void_p, ctypes.POINTER(wasmtime_context_t), ctypes.c_uint32)
4756_wasmtime_component_linker_instance_add_resource = dll.wasmtime_component_linker_instance_add_resource
4757_wasmtime_component_linker_instance_add_resource.restype = ctypes.POINTER(wasmtime_error_t)
4758_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)]
4759def wasmtime_component_linker_instance_add_resource(linker_instance: Any, name: Any, name_len: Any, resource: Any, destructor: Any, data: Any, finalizer: Any) -> ctypes._Pointer:
4760 return _wasmtime_component_linker_instance_add_resource(linker_instance, name, name_len, resource, destructor, data, finalizer) # type: ignore
4762_wasmtime_component_linker_instance_delete = dll.wasmtime_component_linker_instance_delete
4763_wasmtime_component_linker_instance_delete.restype = None
4764_wasmtime_component_linker_instance_delete.argtypes = [ctypes.POINTER(wasmtime_component_linker_instance_t)]
4765def wasmtime_component_linker_instance_delete(linker_instance: Any) -> None:
4766 return _wasmtime_component_linker_instance_delete(linker_instance) # type: ignore
4768_wasmtime_wat2wasm = dll.wasmtime_wat2wasm
4769_wasmtime_wat2wasm.restype = ctypes.POINTER(wasmtime_error_t)
4770_wasmtime_wat2wasm.argtypes = [ctypes.POINTER(ctypes.c_char), ctypes.c_size_t, ctypes.POINTER(wasm_byte_vec_t)]
4771def wasmtime_wat2wasm(wat: Any, wat_len: Any, ret: Any) -> ctypes._Pointer:
4772 return _wasmtime_wat2wasm(wat, wat_len, ret) # type: ignore