Home
last modified time | relevance | path

Searched refs:string (Results 1 – 25 of 218) sorted by relevance

123456789

/wasmtime-44.0.1/crates/component-macro/tests/codegen/
H A Dmany-arguments.wit24 a1: string,
25 a2: string,
26 a3: string,
27 a4: string,
28 a5: string,
29 a6: string,
30 a7: string,
31 a8: string,
32 a9: string,
33 a10: string,
[all …]
H A Dlists.wit27 string-list-arg: func(a: list<string>);
28 string-list-ret: func() -> list<string>;
29 tuple-string-list: func(x: list<tuple<u8, string>>) -> list<tuple<string, u8>>;
30 string-list: func(x: list<string>) -> list<string>;
33 x: string,
46 b: string,
53 a(string),
61 c(string),
66 string,
H A Dstrings.wit4 a: func(x: string);
5 b: func() -> string;
6 c: func(a: string, b: string) -> string;
H A Dshare-types.wit5 method: string
8 body: string
/wasmtime-44.0.1/examples/resource-component/
H A Dkv-store.wit6 get: func(key: string) -> option<string>;
7 set: func(key: string, value: string);
8 remove: func(key: string) -> option<string>;
15 import log: func(msg: string);
16 export replace-value: func(key: string, value: string) -> option<string>;
/wasmtime-44.0.1/crates/wasi-config/wit/deps/config/
H A Dstore.wit6 /// the error message is a string.
7 upstream(string),
10 /// the error message is a string.
14 io(string),
17 /// Gets a configuration value of type `string` associated with the `key`.
19 /// The value is returned as an `option<string>`. If the key is not found,
22 /// A string key to fetch
23 key: string
24 ) -> result<option<string>, error>;
26 /// Gets a list of configuration key-value pairs of type `string`.
[all …]
/wasmtime-44.0.1/crates/misc/component-async-tests/wit/
H A Dtest.wit4 foo: async func(s: string) -> string;
19 foo: async func(a: string,
26 -> tuple<string,
41 import foo: async func(s: string) -> string;
42 export foo: async func(s: string) -> string;
70 read-stream(string),
72 read-future(string),
73 write-stream(string),
75 write-future(string),
81 … caller-future2: future<string>) -> tuple<stream<string>, future<string>, future<string>>;
[all …]
/wasmtime-44.0.1/crates/c-api/include/wasmtime/
H A Dwasi.hh31 void argv(const std::vector<std::string> &args) { in argv()
47 void env(const std::vector<std::pair<std::string, std::string>> &env) { in env() argument
64 [[nodiscard]] bool stdin_file(const std::string &path) { in stdin_file()
74 [[nodiscard]] bool stdout_file(const std::string &path) { in stdout_file()
84 [[nodiscard]] bool stderr_file(const std::string &path) { in stderr_file()
93 [[nodiscard]] bool preopen_dir(const std::string &path, in preopen_dir()
94 const std::string &guest_path, in preopen_dir()
H A Dtrap.hh124 std::string message() const { in message()
127 std::string ret(msg.data, msg.size - 1); in message()
163 std::string message() const { in message()
168 return std::string(error->message()); in message()
H A Derror.hh30 Error(const std::string &s) : ptr(wasmtime_error_new(s.c_str())) {} in Error()
33 std::string message() const { in message()
36 auto ret = std::string(msg_bytes.data, msg_bytes.size); in message()
/wasmtime-44.0.1/tests/misc_testsuite/gc/
H A Dissue-10467.wast4 (type $string (array (mut i8)))
6 (local $s (ref $string))
7 (local.set $s (array.new_default $string (i32.const 1)))
8 (array.fill $string
13 (if (i32.ne (array.get_u $string (local.get $s) (i32.const 0))
/wasmtime-44.0.1/tests/all/
H A Dpulley_provenance_test_component.wat10 (import "host-string" (func $host-string (param "x" string) (result string)))
11 (import "host-list" (func $host-list (param "x" (list string)) (result (list string))))
82 (core func $host-string (canon lower (func $host-string)
97 (import "" "host-string" (func $host-string (param i32 i32 i32)))
117 (func (export "guest-string") (param i32 i32) (result i32)
121 call $host-string
143 (export "host-string" (func $host-string))
158 (func (export "guest-string") (param "x" string) (result string)
159 (canon lift (core func $i "guest-string") (memory $libc "memory")
161 (func (export "guest-list") (param "x" (list string)) (result (list string))
/wasmtime-44.0.1/tests/misc_testsuite/component-model/
H A Dmap-types.wast4 (type (map u32 string))
5 (type (map string u32))
7 (type (map string (map u32 string)))
H A Dstring-transcode-invalid.wast3 ;; Transcode a utf16 string to latin1+utf16, but the original string is
13 (func (export "recv") (param "a" string)
15 string-encoding=latin1+utf16)
20 ;; Passes a string placed near the END of linear memory to $dst.
22 (import "recv" (func $recv (param "a" string)))
29 … (core func $recv_lowered (canon lower (func $recv) string-encoding=utf16 (memory $libc "memory")))
62 (assert_trap (invoke "run") "string content out-of-bounds")
H A Dstrings.wast3 ;; Returning an unaligned utf16 string is invalid
14 (func (export "f1") (result string)
16 (func (export "f2") (result string)
41 (func (export "a") (param "a" string)
46 string-encoding=utf16)
91 (func (export "a") (param "a" string)
96 string-encoding=latin1+utf16)
145 string-encoding=latin1+utf16)
196 string-encoding=latin1+utf16)
276 string-encoding=latin1+utf16)
[all …]
H A Dadapter.wast40 (func (export "thunk") (param "a" string)
48 (func (export "thunk8") (param "a" string)
51 string-encoding=utf8
57 (func (export "thunk16") (param "a" string)
60 string-encoding=utf16
66 (func (export "thunklatin16") (param "a" string)
69 string-encoding=latin1+utf16
H A Dbig-strings.wast4 ;; Sending a massive string
13 (func (export "f") (param "x" string)
24 (import "f" (func $f (param "x" string)))
55 (assert_trap (invoke "run" (u32.const 0x8000_0000)) "string content out-of-bounds")
66 (assert_trap (invoke "run" (u32.const 0x8000_0000)) "string content out-of-bounds")
/wasmtime-44.0.1/examples/
H A Dexternref.cc8 std::string readFile(const char *name) { in readFile()
27 ExternRef externref(store, std::string("Hello, world!")); in main()
29 std::cout << "externref data: " << std::any_cast<std::string>(data) << "\n"; in main()
35 std::cout << "externref data: " << std::any_cast<std::string>(val.data(store)) in main()
42 std::cout << "externref data: " << std::any_cast<std::string>(val.data(store)) in main()
49 std::cout << "externref data: " << std::any_cast<std::string>(val.data(store)) in main()
H A Dasync.cc47 void exit_with_error(std::string msg, wasmtime_error_t *err, in exit_with_error()
56 std::cerr << std::string(error_message.data, error_message.size) << std::endl; in exit_with_error()
90 const std::string &filename) { in compile_wat_module_from_file()
98 const std::string &content = buffer.str(); in compile_wat_module_from_file()
156 std::string msg = ex.what(); in poll_print_finished_state()
189 static std::string host_module_name = "host"; in main()
190 static std::string host_func_name = "print"; in main()
244 static std::string guest_func_name = "print_fibonacci"; in main()
H A Dlinking.cc16 std::string readFile(const char *name) { in readFile()
29 std::string linking1_wat = readFile("examples/linking1.wat"); in main()
30 std::string linking2_wat = readFile("examples/linking2.wat"); in main()
/wasmtime-44.0.1/crates/wiggle/tests/
H A Dstrings.witx7 (param $a_string string)
12 (param $a string)
13 (param $b string)
14 (param $c string)
/wasmtime-44.0.1/crates/wasi/src/p2/wit/
H A Dtest.wit4 export add-strings: func(s: list<string>) -> u32;
5 export get-strings: func() -> list<string>;
12 export pass-an-imported-record: func(d: descriptor-stat) -> string;
/wasmtime-44.0.1/crates/wasi-tls/src/p3/wit/deps/tls/
H A Dtypes.wit3 to-debug-string: func() -> string;
/wasmtime-44.0.1/tests/misc_testsuite/
H A Dempty.wast15 "\00" ;; empty string name
30 "\00" ;; empty string name
45 "\00" ;; empty string name
/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))
91 string-encoding=latin1+utf16
138 string-encoding=latin1+utf16)
143 (type $t0 (tuple (list u16) string string bool s16))
163 string-encoding=utf8

123456789