using System.IO;
using System.Threading.Tasks;
using SharpCompress.IO;

namespace SharpCompress.Common.Zip.Headers;

internal abstract class ZipHeader(ZipHeaderType type)
{
    internal ZipHeaderType ZipHeaderType { get; } = type;

    internal abstract void Read(BinaryReader reader);
    internal abstract ValueTask Read(AsyncBinaryReader reader);

    internal bool HasData { get; set; } = true;
}
