Module: Wardite
- Extended by:
- ValueHelper
- Includes:
- Const
- Defined in:
- lib/wardite/load.rb,
lib/wardite.rb,
lib/wardite.rb,
lib/wardite/wasi.rb,
lib/wardite/const.rb,
lib/wardite/value.rb,
lib/wardite/leb128.rb,
lib/wardite/version.rb,
lib/wardite/instruction.rb,
lib/wardite/alu_f32.generated.rb,
lib/wardite/alu_f64.generated.rb,
lib/wardite/alu_i32.generated.rb,
lib/wardite/alu_i64.generated.rb,
lib/wardite/convert.generated.rb
Overview
rbs_inline: enabled
Defined Under Namespace
Modules: BinaryLoader, Const, Evaluator, Leb128Helper, ValueHelper Classes: ArgumentError, Block, CodeSection, DataCountSection, DataSection, ElemSection, EvalError, ExportSection, Exports, ExternalFunction, F32, F64, Frame, FunctionSection, GenericError, Global, GlobalSection, I32, I64, ImportSection, Instance, Label, LoadError, Memory, MemorySection, Op, Runtime, Section, StartSection, Store, Table, TableSection, Type, TypeSection, Unreachable, WasiSnapshotPreview1, WasmData, WasmFunction
Constant Summary collapse
- VERSION =
: String
"0.4.2"
Constants included from Const
Const::SectionCode, Const::SectionCustom, Const::SectionData, Const::SectionDataCount, Const::SectionElement, Const::SectionExport, Const::SectionFunction, Const::SectionGlobal, Const::SectionImport, Const::SectionMemory, Const::SectionStart, Const::SectionTable, Const::SectionType
Class Method Summary collapse
Methods included from ValueHelper
Class Method Details
.new(path: nil, buffer: nil, **options) ⇒ Object
1335 1336 1337 1338 1339 1340 1341 1342 1343 |
# File 'lib/wardite.rb', line 1335 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 |