Module: Wardite
- Includes:
- Const
- Defined in:
- lib/wardite/wasi.rb,
lib/wardite.rb,
lib/wardite.rb,
lib/wardite/const.rb,
lib/wardite/value.rb,
lib/wardite/leb128.rb,
lib/wardite/version.rb,
lib/wardite/instruction.rb,
lib/wardite/alu_i32.generated.rb
Overview
rbs_inline: enabled
Defined Under Namespace
Modules: BinaryLoader, Const, Evaluator, Leb128Helper, ValueHelper Classes: ArgumentError, Block, CodeSection, DataSection, EvalError, ExportSection, Exports, ExternalFunction, F32, F64, Frame, FunctionSection, GenericError, I32, I64, ImportSection, Instance, Label, LoadError, Memory, MemorySection, Op, Runtime, Section, Store, TypeSection, WasiSnapshotPreview1, WasmData, WasmFunction
Constant Summary collapse
- VERSION =
: String
"0.2.0"
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
1325 1326 1327 1328 1329 1330 1331 1332 1333 |
# File 'lib/wardite.rb', line 1325 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 |