polywrap_wasm.imports.get_implementations module

This module contains the get_implementations imports for the Wasm module.

class polywrap_wasm.imports.get_implementations.WrapGetImplementationsImports[source]

Bases: BaseWrapImports

Defines the get_implementations family of imports for the Wasm module.

wrap_get_implementations(uri_ptr: int, uri_len: int) bool[source]

Get the list of implementations URIs of the given interface URI from the invoker and store it in the state.

Parameters:
  • uri_ptr (int) – The pointer to the interface URI bytes in memory.

  • uri_len (int) – The length of the interface URI bytes in memory.

wrap_get_implementations_result(ptr: int) None[source]

Write the encoded list of implementations URIs bytes to shared memory at pointer to the Wasm allocated empty list of implementations slot.

Parameters:

ptr – The pointer to the empty list of implementations slot in memory.

wrap_get_implementations_result_len() int[source]

Get the length of the encoded list of implementations URIs bytes.