Debian Codegraph @

crates/wit-component/tests/interfaces/integers.wit

raw
1 package foo:foo;
2
3 interface integers {
4 a1: func(x: u8);
5 a2: func(x: s8);
6 a3: func(x: u16);
7 a4: func(x: s16);
8 a5: func(x: u32);
9 a6: func(x: s32);
10 a7: func(x: u64);
11 a8: func(x: s64);
12 a9: func(p1: u8, p2: s8, p3: u16, p4: s16, p5: u32, p6: s32, p7: u64, p8: s64);
13 r1: func() -> u8;
14 r2: func() -> s8;
15 r3: func() -> u16;
16 r4: func() -> s16;
17 r5: func() -> u32;
18 r6: func() -> s32;
19 r7: func() -> u64;
20 r8: func() -> s64;
21 pair-ret: func() -> tuple<s64, u8>;
22 multi-ret: func() -> tuple<s64, u8>;
23 }
24
25 world integers-world {
26 import integers;
27 }