polywrap_wasm.imports.debug module

This module contains the debug family of imports for the Wasm module.

class polywrap_wasm.imports.debug.WrapDebugImports[source]

Bases: BaseWrapImports

Defines the debug family of imports for the Wasm module.

wrap_debug_log(msg_ptr: int, msg_len: int) None[source]

Print the transmitted message from the Wasm module to host stdout.

Parameters:
  • msg_ptr (int) – The pointer to the message string in memory.

  • msg_len (int) – The length of the message string in memory.