Module: Wardite
- Includes:
- Const
- Defined in:
- lib/wardite/wasi.rb,
lib/wardite.rb,
lib/wardite/const.rb,
lib/wardite/leb128.rb,
lib/wardite/version.rb,
lib/wardite/instruction.rb
Overview
rbs_inline: enabled
Defined Under Namespace
Modules: BinaryLoader, Const, Leb128Helpers Classes: ArgumentError, Block, CodeSection, DataSection, EvalError, ExportSection, Exports, ExternalFunction, Frame, FunctionSection, GenericError, ImportSection, Instance, Label, LoadError, Memory, MemorySection, Op, Runtime, Section, Store, TypeSection, WasiSnapshotPreview1, WasmData, WasmFunction
Constant Summary collapse
- VERSION =
: String
"0.1.2"
Constants included from Const
Const::SectionCode, Const::SectionCustom, Const::SectionData, Const::SectionElement, Const::SectionExport, Const::SectionFunction, Const::SectionGlobal, Const::SectionImport, Const::SectionMemory, Const::SectionStart, Const::SectionTable, Const::SectionType
Class Method Summary collapse
Class Method Details
.new(path: nil, buffer: nil, **options) ⇒ Object
1298 1299 1300 1301 1302 1303 1304 1305 1306 |
# File 'lib/wardite.rb', line 1298 def self.new(path: nil, buffer: nil, **) if path buffer = File.open(path) end if !buffer raise ::ArgumentError, "nil buffer passed" end Wardite::BinaryLoader::load_from_buffer(buffer, **); end |