using System.IO;

namespace SharpCompress.Common.Zip.Headers;

internal partial class Zip64DirectoryEndLocatorHeader()
    : ZipHeader(ZipHeaderType.Zip64DirectoryEndLocator)
{
    internal override void Read(BinaryReader reader)
    {
        FirstVolumeWithDirectory = reader.ReadUInt32();
        RelativeOffsetOfTheEndOfDirectoryRecord = (long)reader.ReadUInt64();
        TotalNumberOfVolumes = reader.ReadUInt32();
    }

    public uint FirstVolumeWithDirectory { get; private set; }

    public long RelativeOffsetOfTheEndOfDirectoryRecord { get; private set; }

    public uint TotalNumberOfVolumes { get; private set; }
}
