Home
last modified time | relevance | path

Searched refs:string_view (Results 1 – 24 of 24) sorted by relevance

/wasmtime-44.0.1/crates/c-api/include/wasmtime/
H A Dlinker.hh40 Result<std::monostate> define(Store::Context cx, std::string_view module, in define()
41 std::string_view name, const Extern &item) { in define()
70 define_instance(Store::Context cx, std::string_view name, Instance instance) { in define_instance()
97 Result<std::monostate> module(Store::Context cx, std::string_view name, in module()
110 get(Store::Context cx, std::string_view module, std::string_view name) { in get()
126 Result<std::monostate> func_new(std::string_view module, in func_new()
127 std::string_view name, const FuncType &ty, in func_new()
149 Result<std::monostate> func_wrap(std::string_view module, in func_wrap()
150 std::string_view name, F &&f) { in func_wrap()
171 Result<Func> get_default(Store::Context cx, std::string_view name) { in get_default()
H A Dtrap.hh38 std::optional<std::string_view> func_name() const { in func_name()
41 return std::string_view(name->data, name->size); in func_name()
50 std::optional<std::string_view> module_name() const { in module_name()
53 return std::string_view(name->data, name->size); in module_name()
117 explicit Trap(std::string_view msg) in Trap()
H A Dinstance.hh85 std::optional<Extern> get(Store::Context cx, std::string_view name) { in get()
100 std::optional<std::pair<std::string_view, Extern>> get(Store::Context cx, in get()
112 std::string_view n(name, len); in get()
H A Dwat.hh30 inline Result<std::vector<uint8_t>> wat2wasm(std::string_view wat) { in wat2wasm()
H A Dextern.hh59 inline std::optional<Extern> Caller::get_export(std::string_view name) { in get_export()
H A Dmodule.hh40 static Result<Module> compile(Engine &engine, std::string_view wat) { in compile()
H A Dfunc.hh39 std::optional<Extern> get_export(std::string_view name);
/wasmtime-44.0.1/crates/c-api/include/wasmtime/component/types/
H A Dcomponent.hh39 std::string_view name) const;
42 std::optional<std::pair<std::string_view, ComponentItem>>
52 std::string_view name) const;
55 std::optional<std::pair<std::string_view, ComponentItem>>
183 std::string_view name) const { in import_get()
194 std::pair<std::string_view, wasmtime::component::ComponentItem>>
205 return std::make_pair(std::string_view(name_data, name_size), in import_nth()
211 std::string_view name) const { in export_get()
222 std::pair<std::string_view, wasmtime::component::ComponentItem>>
233 return std::make_pair(std::string_view(name_data, name_size), in export_nth()
H A Dinstance.hh38 std::string_view name) const;
41 std::optional<std::pair<std::string_view, ComponentItem>>
52 const wasmtime::Engine &engine, std::string_view name) const { in export_get()
63 std::pair<std::string_view, wasmtime::component::ComponentItem>>
74 return std::make_pair(std::string_view(name_data, name_size), in export_nth()
H A Dval.hh45 std::optional<std::pair<std::string_view, ValType>>
76 std::optional<std::pair<std::string_view, std::optional<ValType>>>
92 std::optional<std::string_view> names_nth(size_t nth) const { in names_nth()
97 return std::string_view(name_ptr, name_len); in names_nth()
138 std::optional<std::string_view> names_nth(size_t nth) const { in names_nth()
143 return std::string_view(name_ptr, name_len); in names_nth()
596 inline std::optional<std::pair<std::string_view, ValType>>
603 return std::make_pair(std::string_view(name_ptr, name_len), in field_nth()
617 inline std::optional<std::pair<std::string_view, std::optional<ValType>>>
628 std::string_view(name_ptr, name_len), in case_nth()
H A Dfunc.hh33 std::optional<std::pair<std::string_view, ValType>>
40 return std::make_pair(std::string_view(name_ptr, name_len), in param_nth()
/wasmtime-44.0.1/crates/c-api/include/wasmtime/types/
H A Dimport.hh38 std::string_view module() { in module()
40 return std::string_view(name->data, name->size); in module()
44 std::string_view name() { in name()
46 return std::string_view(name->data, name->size); in name()
H A Dexport.hh38 std::string_view name() { in name()
40 return std::string_view(name->data, name->size); in name()
/wasmtime-44.0.1/crates/c-api/tests/
H A Dwasip2.cc9 static constexpr auto component_text = std::string_view{ in TEST()
28 std::cout << std::string_view{(const char *)(buf), len}; in TEST()
35 std::cerr << std::string_view{(const char *)(buf), len}; in TEST()
/wasmtime-44.0.1/crates/c-api/include/wasmtime/component/
H A Dval.hh133 std::string_view name() const { in name()
134 return std::string_view{entry.name.data, entry.name.size}; in name()
162 Record(std::vector<std::pair<std::string_view, Val>> entries);
274 Variant(std::string_view discriminant, std::optional<Val> x);
277 std::string_view discriminant() const { in discriminant()
378 std::string_view name() const { return std::string_view{raw.data, raw.size}; } in name()
646 static Val string(std::string_view v) { in string()
690 static Val enum_(std::string_view discriminant) { in enum_()
819 std::string_view get_string() const { in get_string()
821 return std::string_view(raw.of.string.data, raw.of.string.size); in get_string()
[all …]
H A Dlinker.hh34 Result<std::monostate> add_module(std::string_view name, Module &module) { in add_module()
50 Result<LinkerInstance> add_instance(std::string_view name) { in add_instance()
95 Result<std::monostate> add_func(std::string_view name, F &&f) { in add_func()
130 Result<std::monostate> add_resource(std::string_view name, in add_resource()
H A Dcomponent.hh51 static Result<Component> compile(Engine &engine, std::string_view wat) { in compile()
157 std::string_view name) { in export_index()
H A Dinstance.hh39 std::string_view name) const { in get_export_index()
/wasmtime-44.0.1/crates/c-api/tests/component/
H A Ddefine_module.cc9 static constexpr auto module_wat = std::string_view{ in TEST()
19 static constexpr auto component_text = std::string_view{ in TEST()
H A Dvalues.cc20 static std::string echo_component(std::string_view type, std::string_view func, in echo_component()
21 std::string_view host_params) { in echo_component()
69 static Context New(Engine &engine, std::string_view component_text, in New()
94 static Context create(std::string_view type, std::string_view body, in create()
95 std::string_view host_params, host_func_t callback) { in create()
169 static const auto check = [](const Val &v, std::string_view text) { in TEST()
174 static const auto make = [](std::string_view text) -> Val { in TEST()
340 static const auto check_bb = [](const Val &v, std::string_view value) { in TEST()
353 static const auto make_bb = [](std::string_view value) -> Val { in TEST()
405 static const auto check = [](const Val &v, std::string_view text) { in TEST()
[all …]
H A Dutils.h5 inline constexpr std::string_view REALLOC_AND_FREE =
H A Dinstantiate.cc8 static constexpr auto bytes = std::string_view{ in TEST()
H A Dlookup_func.cc8 static constexpr auto component_text = std::string_view{ in TEST()
H A Dcall_func.cc9 static constexpr auto component_text = std::string_view{ in TEST()