wasmtime_component_extern_is_implements function

  1. @Native<Bool Function(Pointer<wasmtime_component_extern_t>, Pointer<wasm_byte_t>, Size)>(ffi.Pointer<wasmtime_component_extern_t>, ffi.Pointer<ffi.Char>, ffi.Size)>()
bool wasmtime_component_extern_is_implements(
  1. Pointer<wasmtime_component_extern_t> e,
  2. Pointer<wasm_byte_t> name,
  3. int len
)

\brief Returns whether this import/export e has an implements attribute which matches the name provided (which is len bytes long).

This returns false if e has no implements attribute. Otherwise this returns true if the attribute is exactly equal to name or if it's a semver-compatible version of name. For example (implements "a:b/c@1.1.0") matches both a:b/c@1.0.0 and a:b/c@1.2.0.

Implementation

@ffi.Native<
  ffi.Bool Function(
    ffi.Pointer<wasmtime_component_extern_t>,
    ffi.Pointer<ffi.Char>,
    ffi.Size,
  )
>()
external bool wasmtime_component_extern_is_implements(
  ffi.Pointer<wasmtime_component_extern_t> e,
  ffi.Pointer<ffi.Char> name,
  int len,
);