Zip64DirectoryEndLocatorHeader.cs 755 B

12345678910111213141516171819202122232425
  1. using System.IO;
  2. namespace SharpCompress.Common.Zip.Headers
  3. {
  4. internal class Zip64DirectoryEndLocatorHeader : ZipHeader
  5. {
  6. public Zip64DirectoryEndLocatorHeader()
  7. : base(ZipHeaderType.Zip64DirectoryEndLocator)
  8. {
  9. }
  10. internal override void Read(BinaryReader reader)
  11. {
  12. FirstVolumeWithDirectory = reader.ReadUInt32();
  13. RelativeOffsetOfTheEndOfDirectoryRecord = (long)reader.ReadUInt64();
  14. TotalNumberOfVolumes = reader.ReadUInt32();
  15. }
  16. public uint FirstVolumeWithDirectory { get; private set; }
  17. public long RelativeOffsetOfTheEndOfDirectoryRecord { get; private set; }
  18. public uint TotalNumberOfVolumes { get; private set; }
  19. }
  20. }