Example #1
0
 private void WriteTo(BinaryWriter writer, Encoding encoding)
 {
     writer.Write(allocatedIdNum);
     writer.Write(51113791); // 确认于易语言V5.71
     LibraryRefInfo.WriteLibraries(writer, encoding, Libraries);
     writer.Write(Flag);
     writer.Write(MainMethod);
     if (UnknownBeforeIconData != null)
     {
         writer.WriteBytesWithLengthPrefix(UnknownBeforeIconData);
     }
     writer.WriteBytesWithLengthPrefix(IconData);
     writer.WriteStringWithLengthPrefix(encoding, DebugCommandParameters);
     ClassInfo.WriteClasses(writer, encoding, Classes);
     MethodInfo.WriteMethods(writer, encoding, Methods);
     AbstractVariableInfo.WriteVariables(writer, encoding, GlobalVariables);
     StructInfo.WriteStructs(writer, encoding, Structs);
     DllDeclareInfo.WriteDllDeclares(writer, encoding, DllDeclares);
     writer.Write(new byte[40]); // Unknown(40个0)
 }
Example #2
0
 private void WriteTo(BinaryWriter writer)
 {
     writer.Write(AllocatedIdNum);
     writer.Write(51113791);//确认于易语言V5.71
     writer.WriteBytesWithLengthPrefix(UnknownBeforeLibrary_1);
     writer.WriteBytesWithLengthPrefix(UnknownBeforeLibrary_2);
     writer.WriteBytesWithLengthPrefix(UnknownBeforeLibrary_3);
     LibraryInfo.WriteLibraries(writer, Libraries);
     writer.Write(Flag);
     writer.Write(MainMethod);
     if (UnknownBeforeIconData != null)
     {
         writer.WriteBytesWithLengthPrefix(UnknownBeforeIconData);
     }
     writer.WriteBytesWithLengthPrefix(IconData);
     writer.WriteStringWithLengthPrefix(DebugCommandParameters);
     ClassInfo.WriteClasses(writer, Classes);
     MethodInfo.WriteMethods(writer, Methods);
     VariableInfo.WriteVariables(writer, GlobalVariables);
     StructInfo.WriteStructs(writer, Structs);
     DllDeclareInfo.WriteDllDeclares(writer, DllDeclares);
     writer.Write(new byte[40]);//Unknown(40个0)
 }