Home
last modified time | relevance | path

Searched refs:tuple (Results 1 – 25 of 62) sorted by relevance

123

/wasmtime-44.0.1/crates/component-macro/tests/codegen/
H A Dvariants.wit30 b: option<tuple<>>,
36 option-result: func() -> tuple<
38 option<tuple<>>,
71 a(tuple<f32, u32>),
72 b(tuple<u32, u32>),
82 ) -> tuple<
95 d: result<tuple<>, tuple<>>,
99 result-result: func() -> tuple<
103 result<tuple<>, tuple<>>,
116 return-result-sugar4: func() -> result<tuple<s32, u32>, my-errno>;
H A Drecords.wit4 tuple-arg: func(x: tuple<char, u32>);
5 tuple-result: func() -> tuple<char, u32>;
52 type tuple-typedef = tuple<s32>;
54 type tuple-typedef2 = tuple<int-typedef>;
55 typedef-inout: func(e: tuple-typedef2) -> s32;
H A Dlists.wit26 tuple-list: func(x: list<tuple<u8, s8>>) -> list<tuple<s64, u32>>;
29 tuple-string-list: func(x: list<tuple<u8, string>>) -> list<tuple<string, u8>>;
65 type load-store-all-sizes = list<tuple<
H A Dresources-import.wit14 tuple-own-arg: func(x: tuple<own<bar>, u32>);
15 tuple-borrow-arg: func(x: tuple<own<bar>, u32>);
16 tuple-result: func() -> tuple<own<bar>, u32>;
H A Dsimple-functions.wit9 f5: func() -> tuple<u32, u32>;
11 f6: func(a: u32, b: u32, c: u32) -> tuple<u32, u32, u32>;
H A Dworlds-with-types.wit15 export f: func() -> tuple<t, u, r>;
H A Dsimple-lists.wit6 simple-list3: func(a: list<u32>, b: list<u32>) -> tuple<list<u32>, list<u32>>;
H A Dintegers.wit34 pair-ret: func() -> tuple<s64, u8>;
/wasmtime-44.0.1/fuzz/fuzz_targets/
H A Dexception_ops.rs37 let mut tuple: (u64, ExceptionOps) = from_bytes(&data[..size]).ok().unwrap_or_default(); localVariable
41 if session.mutate(&mut tuple).is_ok() {
43 if let Ok(encoded) = to_slice(&tuple, data) {
48 if tuple.1.pop() {
H A Dgc_ops.rs37 let mut tuple: (u64, GcOps) = from_bytes(&data[..size]).ok().unwrap_or_default(); localVariable
41 if session.mutate(&mut tuple).is_ok() {
43 if let Ok(encoded) = to_slice(&tuple, data) {
48 if tuple.1.pop() {
/wasmtime-44.0.1/crates/c-api/tests/
H A Dfunc.cc7 using empty_t = std::tuple<>;
17 EXPECT_FALSE((thunk.typed<float, std::tuple<int32_t, uint32_t>>(store))); in TEST()
26 EXPECT_TRUE((pi32.typed<std::tuple<int32_t>, empty_t>(store))); in TEST()
28 EXPECT_TRUE((pi32.typed<std::tuple<uint32_t>, empty_t>(store))); in TEST()
35 EXPECT_FALSE((rets.typed<empty_t, std::tuple<int, int>>(store))); in TEST()
37 EXPECT_TRUE((rets.typed<empty_t, std::tuple<float, double>>(store))); in TEST()
61 f.typed<std::tuple<int32_t>, empty_t>(store) in TEST()
78 f.typed<std::tuple<float, uint64_t>, std::tuple<uint32_t, double>>( in TEST()
101 std::tuple<std::optional<ExternRef>, std::optional<ExternRef>>; in TEST()
217 return Result<std::tuple<int32_t, int32_t>, Trap>({1, 2}); in TEST()
[all …]
/wasmtime-44.0.1/crates/c-api/include/wasmtime/
H A Dfunc.hh138 return WasmTypeList<std::tuple<T>>::matches(types); in matches()
173 template <typename... T> struct WasmTypeList<std::tuple<T...>> {
184 std::tuple<T...> &&t) { in store()
193 const std::tuple<T...> &t) { in store()
201 static std::tuple<T...> load(Store::Context cx, wasmtime_val_raw_t *storage) { in load()
203 return std::tuple<T...>{WasmType<T>::load(cx, storage++)...}; // NOLINT in load()
225 using Results = WasmTypeList<std::tuple<>>;
263 using Params = WasmTypeList<std::tuple<A...>>;
283 auto params = WasmTypeList<std::tuple<A...>>::load(cx, raw); in invoke()
/wasmtime-44.0.1/crates/misc/component-async-tests/wit/
H A Dtest.wit22 d: tuple<u64, u64>,
26 -> tuple<string,
29 tuple<u64, u64>,
81 … caller-future2: future<string>) -> tuple<stream<string>, future<string>, future<string>>;
171 start: async func(s: stream<u8>, expected: list<u8>) -> tuple<stream<u8>, list<u8>>;
175 …start: async func(s: stream<u8>, s-expected: list<u8>, f: future<u8>, f-expected: u8) -> tuple<str…
/wasmtime-44.0.1/crates/wasi-tls/src/p3/wit/deps/tls/
H A Dclient.wit11 send: func(cleartext: stream<u8>) -> tuple<stream<u8>, future<result<_, error>>>;
16 receive: func(ciphertext: stream<u8>) -> tuple<stream<u8>, future<result<_, error>>>;
/wasmtime-44.0.1/tests/all/component_model/
H A Dimport.rs874 if let Val::Tuple(tuple) = &args[0] { in test_stack_and_heap_args_and_rets()
875 if let Val::String(s) = &tuple[0] { in test_stack_and_heap_args_and_rets()
904 if let Val::Tuple(tuple) = &args[0] { in test_stack_and_heap_args_and_rets()
905 if let Val::String(s) = &tuple[0] { in test_stack_and_heap_args_and_rets()
929 if let Val::Tuple(tuple) = &args[0] { in test_stack_and_heap_args_and_rets()
930 if let Val::String(s) = &tuple[0] { in test_stack_and_heap_args_and_rets()
951 if let Val::Tuple(tuple) = &args[0] { in test_stack_and_heap_args_and_rets()
952 if let Val::String(s) = &tuple[0] { in test_stack_and_heap_args_and_rets()
/wasmtime-44.0.1/tests/misc_testsuite/component-model/async/
H A Dmany-params-with-retptr.wast81 (type $t0 (tuple $t5 string string bool s16))
143 (type $t0 (tuple (list u16) string string bool s16))
179 (tuple.const
186 (tuple.const
/wasmtime-44.0.1/crates/c-api/include/wasmtime/component/types/
H A Dval.hh335 ValType(TupleType tuple) { in ValType() argument
337 ty.of.tuple = tuple.capi_release(); in ValType()
519 const TupleType &tuple() const { in tuple() function in wasmtime::component::ValType
521 return *TupleType::from_capi(&ty.of.tuple); in tuple()
/wasmtime-44.0.1/tests/misc_testsuite/component-model/
H A Denums.wast50 (func (export "return-two") (param "e" $e) (result (tuple $e $e))
55 (tuple.const (enum.const "E1") (enum.const "E1")))
H A Dfixed_length_lists.wast13 ;; from the first module and compares the resulting tuple with a
26 (type (;4;) (tuple 1 3))
381 (type (;4;) (tuple 1 3))
390 (type (;4;) (tuple 1 3))
397 (type (;10;) (tuple 7 9))
/wasmtime-44.0.1/crates/wasi-tls/wit/deps/tls/
H A Dtypes.wit31 …get: func() -> option<result<result<tuple<client-connection, input-stream, output-stream>, io-erro…
/wasmtime-44.0.1/crates/c-api/tests/component/
H A Dtypes.cc228 EXPECT_EQ(ty.tuple().types_count(), 2); in TEST()
229 EXPECT_TRUE(ty.tuple().types_nth(0)->is_u16()); in TEST()
230 EXPECT_TRUE(ty.tuple().types_nth(1)->is_u8()); in TEST()
/wasmtime-44.0.1/examples/
H A Dmulti.cc41 store, [](int32_t a, int64_t b) -> std::tuple<int64_t, int32_t> { in main()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/wave/
H A Dcomponent.rs65 let Self::Tuple(tuple) = self else { in tuple_element_types()
68 Box::new(tuple.types()) in tuple_element_types()
270 let tuple = unwrap_val!(self, Self::Tuple, "tuple"); in unwrap_tuple() localVariable
271 Box::new(tuple.iter().map(cow)) in unwrap_tuple()
/wasmtime-44.0.1/crates/wasi-keyvalue/wit/deps/keyvalue/
H A Dbatch.wit32 …get-many: func(bucket: borrow<bucket>, keys: list<string>) -> result<list<option<tuple<string, lis…
47 …set-many: func(bucket: borrow<bucket>, key-values: list<tuple<string, list<u8>>>) -> result<_, err…
/wasmtime-44.0.1/crates/wasi-config/wit/deps/config/
H A Dstore.wit29 get-all: func() -> result<list<tuple<string, string>>, error>;

123