Beispiel #1
0
 public StoreF32Ins(ref WASMReader input)
     : base(OPCode.StoreF32, ref input, true)
 {
 }
Beispiel #2
0
 protected override int GetBodySize() => WASMReader.GetULEB128Size(TypeIndex) + sizeof(byte);
Beispiel #3
0
 public MemoryGrowIns(ref WASMReader input)
     : this(input.ReadByte())
 {
 }
Beispiel #4
0
 public ConstantF32Ins(ref WASMReader input)
     : this(input.ReadSingle())
 {
 }
Beispiel #5
0
 public BranchIns(ref WASMReader input)
     : this(input.ReadIntULEB128())
 {
 }
Beispiel #6
0
 public LoadI32_8SIns(ref WASMReader input)
     : base(OPCode.LoadI32_8S, ref input, true)
 {
 }
Beispiel #7
0
 public BlockIns(ref WASMReader input)
     : this(ref input, OPCode.Block)
 {
 }
Beispiel #8
0
 public GlobalType(ref WASMReader input)
 {
     ValueType = input.ReadValueType();
     IsMutable = input.ReadBoolean();
 }
Beispiel #9
0
 public MemoryType(ref WASMReader input)
     : base(ref input)
 {
 }
Beispiel #10
0
 public GlobalSubsection(ref WASMReader input)
 {
     Info       = new GlobalType(ref input);
     Expression = input.ReadExpression();
 }
Beispiel #11
0
 protected override int GetBodySize() => WASMReader.GetULEB128Size(FunctionIndex + (uint)(_functionOffsetProvider?.FunctionOffset ?? 0));
Beispiel #12
0
 public CallIns(ref WASMReader input, IFunctionOffsetProvider functionOffsetProvider = null)
     : this(input.ReadIntULEB128())
 {
     _functionOffsetProvider = functionOffsetProvider;
 }
Beispiel #13
0
 protected override int GetBodySize() => _hasMemArgs?WASMReader.GetULEB128Size(Align) + WASMReader.GetULEB128Size(Offset) : sizeof(byte);
Beispiel #14
0
 protected override int GetBodySize() => WASMReader.GetULEB128Size(FunctionIndex);
Beispiel #15
0
 public ConstantF64Ins(ref WASMReader input)
     : this(input.ReadDouble())
 {
 }
Beispiel #16
0
 public LoadF64Ins(ref WASMReader input)
     : base(OPCode.LoadF64, ref input, true)
 {
 }
Beispiel #17
0
 public ElseIns(ref WASMReader input)
     : base(OPCode.Else)
 {
     Expression = input.ReadExpression();
 }
Beispiel #18
0
 public TeeLocalIns(ref WASMReader input)
     : this(input.ReadIntULEB128())
 {
 }
Beispiel #19
0
 public StoreI32_16Ins(ref WASMReader input)
     : base(OPCode.StoreI32_16, ref input, true)
 {
 }
Beispiel #20
0
 protected override int GetBodySize() => WASMReader.GetULEB128Size(LabelIndex);
Beispiel #21
0
 public ConstantI32Ins(ref WASMReader input)
     : this(input.ReadIntLEB128())
 {
 }
Beispiel #22
0
 public TableType(ref WASMReader input)
 {
     ElementType = input.ReadByte(); // WASM v1 only supports funcref(0x70), but will perhaps support more in the future.
     Limits      = new Limits(ref input);
 }
Beispiel #23
0
 protected override int GetBodySize() => WASMReader.GetLEB128Size(Constant);
Beispiel #24
0
 public StoreI64_8Ins(ref WASMReader input)
     : base(OPCode.StoreI64_8, ref input, true)
 {
 }
Beispiel #25
0
 public SetGlobalIns(ref WASMReader input)
     : this(input.ReadIntULEB128())
 {
 }
Beispiel #26
0
 public LoadI64_32UIns(ref WASMReader input)
     : base(OPCode.LoadI64_32U, ref input, true)
 {
 }
Beispiel #27
0
 public StartSection(ref WASMReader input)
     : base(WASMSectionId.StartSection)
 {
     FunctionIndex = input.ReadIntULEB128();
 }
Beispiel #28
0
 public LoopIns(ref WASMReader input)
     : base(ref input, OPCode.Loop)
 {
 }
Beispiel #29
0
 public CallIndirectIns(ref WASMReader input)
     : this(input.ReadIntULEB128())
 {
     /* In future versions of WebAssembly, the zero byte occurring in the encoding of the call_indirect instruction may be used to index additional tables. */
     input.Position++;
 }