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, 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.3.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
Methods included from ValueHelper
Class Method Details
.new(path: nil, buffer: nil, **options) ⇒ Object
1235 1236 1237 1238 1239 1240 1241 1242 1243 |
# File 'lib/wardite.rb', line 1235 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 |