SignHeader.cs 766 B

1234567891011121314151617181920212223242526
  1. using SharpCompress.IO;
  2. namespace SharpCompress.Common.Rar.Headers
  3. {
  4. internal class SignHeader : RarHeader
  5. {
  6. protected SignHeader(RarHeader header, RarCrcBinaryReader reader)
  7. : base(header, reader, HeaderType.Sign)
  8. {
  9. if (IsRar5) throw new InvalidFormatException("unexpected rar5 record");
  10. }
  11. protected override void ReadFinish(MarkingBinaryReader reader)
  12. {
  13. CreationTime = reader.ReadInt32();
  14. ArcNameSize = reader.ReadInt16();
  15. UserNameSize = reader.ReadInt16();
  16. }
  17. internal int CreationTime { get; private set; }
  18. internal short ArcNameSize { get; private set; }
  19. internal short UserNameSize { get; private set; }
  20. }
  21. }