| /wasmtime-44.0.1/crates/c-api/include/wasmtime/ |
| H A D | linker.hh | 40 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 D | trap.hh | 38 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 D | instance.hh | 85 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 D | wat.hh | 30 inline Result<std::vector<uint8_t>> wat2wasm(std::string_view wat) { in wat2wasm()
|
| H A D | extern.hh | 59 inline std::optional<Extern> Caller::get_export(std::string_view name) { in get_export()
|
| H A D | module.hh | 40 static Result<Module> compile(Engine &engine, std::string_view wat) { in compile()
|
| H A D | func.hh | 39 std::optional<Extern> get_export(std::string_view name);
|
| /wasmtime-44.0.1/crates/c-api/include/wasmtime/component/types/ |
| H A D | component.hh | 39 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 D | instance.hh | 38 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 D | val.hh | 45 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 D | func.hh | 33 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 D | import.hh | 38 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 D | export.hh | 38 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 D | wasip2.cc | 9 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 D | val.hh | 133 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 D | linker.hh | 34 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 D | component.hh | 51 static Result<Component> compile(Engine &engine, std::string_view wat) { in compile() 157 std::string_view name) { in export_index()
|
| H A D | instance.hh | 39 std::string_view name) const { in get_export_index()
|
| /wasmtime-44.0.1/crates/c-api/tests/component/ |
| H A D | define_module.cc | 9 static constexpr auto module_wat = std::string_view{ in TEST() 19 static constexpr auto component_text = std::string_view{ in TEST()
|
| H A D | values.cc | 20 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 D | utils.h | 5 inline constexpr std::string_view REALLOC_AND_FREE =
|
| H A D | instantiate.cc | 8 static constexpr auto bytes = std::string_view{ in TEST()
|
| H A D | lookup_func.cc | 8 static constexpr auto component_text = std::string_view{ in TEST()
|
| H A D | call_func.cc | 9 static constexpr auto component_text = std::string_view{ in TEST()
|