Class: Dewasm::Pozeiden::WasmModule::Rt::WASI::WasiDir
- Inherits:
-
Struct
- Object
- Struct
- Dewasm::Pozeiden::WasmModule::Rt::WASI::WasiDir
- Defined in:
- lib/dewasm/pozeiden/wasm_module.rb
Overview
A directory descriptor: either a preopen (preopen_name set to the guest-visible path passed in preopens:) or a directory the guest opened itself via path_open (preopen_name nil).
entries is the fd_readdir listing cache, populated lazily.
Kept in the prelude (rather than with the rest of the filesystem logic) because initialize builds one per preopen unconditionally, so it must be available whenever any
WASI import is used, not only when a filesystem syscall is.
Instance Attribute Summary collapse
-
#entries ⇒ Object
Returns the value of attribute entries.
-
#host_path ⇒ Object
Returns the value of attribute host_path.
-
#preopen_name ⇒ Object
Returns the value of attribute preopen_name.
Instance Attribute Details
#entries ⇒ Object
Returns the value of attribute entries
450 451 452 |
# File 'lib/dewasm/pozeiden/wasm_module.rb', line 450 def entries @entries end |
#host_path ⇒ Object
Returns the value of attribute host_path
450 451 452 |
# File 'lib/dewasm/pozeiden/wasm_module.rb', line 450 def host_path @host_path end |
#preopen_name ⇒ Object
Returns the value of attribute preopen_name
450 451 452 |
# File 'lib/dewasm/pozeiden/wasm_module.rb', line 450 def preopen_name @preopen_name end |