wasmtime_component_get_export_index function

  1. @Native<Pointer<wasmtime_component_export_index_t> Function(Pointer<wasmtime_component_t>, Pointer<wasmtime_component_export_index_t>, Pointer<wasm_byte_t>, Size)>(ffi.Pointer<wasmtime_component_t>, ffi.Pointer<wasmtime_component_export_index_t>, ffi.Pointer<ffi.Char>, ffi.Size)>()
Pointer<wasmtime_component_export_index_t> wasmtime_component_get_export_index(
  1. Pointer<wasmtime_component_t> component,
  2. Pointer<wasmtime_component_export_index_t> instance_export_index,
  3. Pointer<wasm_byte_t> name,
  4. int name_len,
)

\brief Looks up a specific export of this component by \p name optionally nested within the \p instance provided.

\param component the component to look up \p name in \param instance_export_index optional (i.e. nullable) instance to look up in \param name the name of the export \param name_len length of \p name in bytes \return export index if found, else NULL

Implementation

@ffi.Native<
  ffi.Pointer<wasmtime_component_export_index_t> Function(
    ffi.Pointer<wasmtime_component_t>,
    ffi.Pointer<wasmtime_component_export_index_t>,
    ffi.Pointer<ffi.Char>,
    ffi.Size,
  )
>()
external ffi.Pointer<wasmtime_component_export_index_t>
wasmtime_component_get_export_index(
  ffi.Pointer<wasmtime_component_t> component,
  ffi.Pointer<wasmtime_component_export_index_t> instance_export_index,
  ffi.Pointer<ffi.Char> name,
  int name_len,
);