class Wasmer::Wasi::Environment

Overview

Environment represents the environment provided to the WASI

Defined in:

wasmer/wasi.cr

Instance Method Summary

Instance Method Detail

def generate_import_object(store : Store, mod : Module) : ImportObject #

Generates an import object, that can be extended and passed to Instance


[View source]
def read_stderr : Bytes #

Reads the WASI module STDERR if captured with WasiStateBuilder#with_capture_stderr


[View source]
def read_stdout : Bytes #

Reads the WASI module STDOUT if captured with WasiStateBuilder#with_capture_stdout


[View source]