/// <summary> /// Writes this WebAssembly file to the given stream using the binary WebAssembly file encoding. /// </summary> /// <param name="target">The stream to write to.</param> public void WriteBinaryTo(Stream target) { var writer = new BinaryWriter(target); var wasmWriter = new BinaryWasmWriter(writer); wasmWriter.WriteFile(this); }