Esempio n. 1
0
 /// <summary>
 /// Writes a FileReference to a binary archive
 /// </summary>
 /// <param name="Writer">The writer to output data to</param>
 /// <param name="File">The file reference to write</param>
 public static void WriteFileReference(this BinaryArchiveWriter Writer, FileReference File)
 {
     if (File == null)
     {
         Writer.WriteString(null);
     }
     else
     {
         Writer.WriteString(File.FullName);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Writes a directory reference  to a binary archive
 /// </summary>
 /// <param name="Writer">The writer to output data to</param>
 /// <param name="Directory">The item to write</param>
 public static void WriteDirectoryReference(this BinaryArchiveWriter Writer, DirectoryReference Directory)
 {
     if (Directory == null)
     {
         Writer.WriteString(null);
     }
     else
     {
         Writer.WriteString(Directory.FullName);
     }
 }