Example #1
0
 /// <summary>
 /// Writes this function body to the given WebAssembly file writer.
 /// </summary>
 /// <param name="Writer">The WebAssembly file writer.</param>
 public void WriteTo(BinaryWasmWriter Writer)
 {
     Writer.WriteLengthPrefixed(WriteContentsTo);
 }
Example #2
0
 /// <summary>
 /// Writes this name entry's header and payload to the given writer.
 /// </summary>
 /// <param name="Writer">The writer to write the header and payload to.</param>
 public void WriteTo(BinaryWasmWriter Writer)
 {
     Writer.WriteVarUInt7((byte)Kind);
     Writer.WriteLengthPrefixed(WritePayloadTo);
 }