5#ifndef WASMTIME_TYPES_EXPORT_HH
6#define WASMTIME_TYPES_EXPORT_HH
36 return std::string_view(
name->data,
name->size);
53 List(
List &&other) noexcept : list(other.list) { other.list.
size = 0; }
60 List &operator=(
const List &other) =
delete;
63 std::swap(list, other.list);
An owned list of ExportType instances.
Definition: export.hh:41
List()
Creates an empty list.
Definition: export.hh:47
iterator begin() const
Returns the start of iteration.
Definition: export.hh:71
const Ref * iterator
Definition: export.hh:69
size_t size() const
Returns the size of this list.
Definition: export.hh:79
iterator end() const
Returns the end of iteration.
Definition: export.hh:75
List & operator=(List &&other) noexcept
Moves another list into this one.
Definition: export.hh:62
List(List &&other) noexcept
Moves another list into this one.
Definition: export.hh:53
Non-owning reference to an ExportType.
Definition: export.hh:22
Ref(const wasm_exporttype_t *ptr)
Creates a new reference from the raw underlying C API representation.
Definition: export.hh:31
std::string_view name()
Returns the name of this export.
Definition: export.hh:34
Type information about a WebAssembly export.
Definition: export.hh:16
Generic type of a WebAssembly item.
Definition: types/extern.hh:22
Representation of a compiled WebAssembly module.
Definition: module.hh:27
An opaque object representing the type of an export.
A list of wasm_exporttype_t values.
Definition: wasm.h:305
size_t size
Length of this vector.
Definition: wasm.h:305
wasm_exporttype_t ** data
Pointer to the base of this vector.
Definition: wasm.h:305
An opaque object representing the type of a external value. Can be seen as a superclass of wasm_funct...
const wasm_name_t * wasm_exporttype_name(const wasm_exporttype_t *)
Returns the name of this export.
const wasm_externtype_t * wasm_exporttype_type(const wasm_exporttype_t *)
Returns the type of this export.
void wasm_exporttype_vec_delete(wasm_exporttype_vec_t *)
Deallocates export for a vector.