Advertisement
Guest User

Untitled

a guest
Aug 2nd, 2015
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. /// <summary>
  2. /// Represents a file or subdirectory within a RARC archive.
  3. /// </summary>
  4. private class FileEntry
  5. {
  6. /// <summary>File ID. If 0xFFFF, then this entry is a subdirectory link.</summary>
  7. public ushort ID { get; internal set; }
  8. /// <summary>String hash of the <see cref="Name"/> field.</summary>
  9. public ushort NameHashcode { get; internal set; }
  10. /// <summary>Unknown value</summary>
  11. public byte Type { get; internal set; }
  12. /// <summary> Padding byte. Included here for the sake of documentation. </summary>
  13. public byte Padding { get; internal set; }
  14. /// <summary>File/subdirectory name string table offset.</summary>
  15. public string Name { get; internal set; }
  16. /// <summary>Data bytes. If this entry is a directory, it will be the node index.</summary>
  17. public byte[] Data { get; internal set; }
  18. /// <summary>Always zero.</summary>
  19. public uint ZeroPadding { get; internal set; }
  20.  
  21. // Non actual struct items
  22.  
  23. /// <summary>Whether or not this entry is a directory.</summary>
  24. public bool IsDirectory { get { return ID == 0xFFF; } }
  25. /// <summary>Node index representing the subdirectory. Will only be non-zero if IsDirectory is true.</summary>
  26. public uint SubDirIndex { get; internal set; }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement