public override void WriteTo(ref WASMWriter output) { output.WriteULEB128((uint)ParameterTypes.Count); foreach (Type parameterType in ParameterTypes) { output.Write(parameterType); } output.WriteULEB128((uint)ResultTypes.Count); foreach (Type resultType in ResultTypes) { output.Write(resultType); } }
public override void WriteTo(ref WASMWriter output) { output.Write(HasMaximum); output.WriteULEB128(Minimum); if (HasMaximum) { output.WriteULEB128(Maximum); } }
public override void WriteTo(ref WASMWriter output) { output.WriteULEB128(MemoryIndex); foreach (WASMInstruction instruction in Expression) { instruction.WriteTo(ref output); } output.WriteULEB128((uint)Package.Length); output.Write(Package); }
protected override void WriteBodyTo(ref WASMWriter output) { const byte FUNCTION_TYPE = 0x60; output.WriteULEB128((uint)Count); foreach (FuncType functionType in this) { output.Write(FUNCTION_TYPE); functionType.WriteTo(ref output); } }
public override void WriteTo(ref WASMWriter output) { output.WriteString(Module); output.WriteString(Name); output.Write((byte)Description); if (Description == ImpexDesc.Function) { output.WriteULEB128((uint)Value); } else { ((WASMObject)Value).WriteTo(ref output); } }
public override void WriteTo(ref WASMWriter output) { int funcSize = 0; funcSize += WASMReader.GetULEB128Size((uint)Locals.Count); foreach (Local local in Locals) { funcSize += local.GetSize(); } funcSize += Bytecode.Length; output.WriteULEB128((uint)funcSize); output.WriteULEB128((uint)Locals.Count); foreach (Local local in Locals) { local.WriteTo(ref output); } output.Write(Bytecode); }
public override void WriteTo(ref WASMWriter output) { output.WriteULEB128(Rank); output.Write(Type); }
protected override void WriteBodyTo(ref WASMWriter output) { output.Write(Constant); }
protected override void WriteBodyTo(ref WASMWriter output) { output.Write(Index); }
public override void WriteTo(ref WASMWriter output) { output.Write(ElementType); Limits.WriteTo(ref output); }
public override void WriteTo(ref WASMWriter output) { output.WriteString(Name); output.Write((byte)Description); output.WriteULEB128(Index + (uint)(Description == ImpexDesc.Function ? (_functionOffsetProvider?.FunctionOffset ?? 0) : 0)); }
public override void WriteTo(ref WASMWriter output) { output.Write(ValueType); output.Write(IsMutable); }
protected override void WriteBodyTo(ref WASMWriter output) { output.WriteString(Name); output.Write(Package); }
protected override void WriteBodyTo(ref WASMWriter output) { output.WriteULEB128(TypeIndex); output.Write((byte)0); }