Ejemplo n.º 1
0
 /// <summary>
 /// Read a file item in a format which de-duplicates directory names.
 /// </summary>
 /// <param name="Reader">Reader to serialize data from</param>
 /// <returns>Instance of the serialized file item</returns>
 public static FileItem ReadCompactFileItem(this BinaryArchiveReader Reader)
 {
     return(Reader.ReadObjectReference <FileItem>(() => ReadCompactFileItemData(Reader)));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Read a directory item from a binary archive
 /// </summary>
 /// <param name="Reader">Reader to serialize data from</param>
 /// <returns>Instance of the serialized directory item</returns>
 public static DirectoryItem ReadDirectoryItem(this BinaryArchiveReader Reader)
 {
     return(Reader.ReadObjectReference <DirectoryItem>(() => DirectoryItem.GetItemByDirectoryReference(Reader.ReadDirectoryReference())));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Read a file item from a binary archive
 /// </summary>
 /// <param name="Reader">Reader to serialize data from</param>
 /// <returns>Instance of the serialized file item</returns>
 public static FileItem ReadFileItem(this BinaryArchiveReader Reader)
 {
     return(Reader.ReadObjectReference <FileItem>(() => FileItem.GetItemByFileReference(Reader.ReadFileReference())));
 }