Differences From Artifact [a130af009d]:
- File
src/OFLHAArchiveEntry.h
— part of check-in
[790b5344d6]
at
2018-05-26 23:04:24
on branch trunk
— Add OFLHAArchive
This is currently limited to reading uncompressed LHA level 2 files. (user: js, size: 2874) [annotate] [blame] [check-ins using]
To Artifact [d20f4f4531]:
- File src/OFLHAArchiveEntry.h — part of check-in [56d02a1ac5] at 2018-05-27 00:21:18 on branch trunk — OFLHAArchiveEntry: Parse more extensions (user: js, size: 3984) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
18 19 20 21 22 23 24 25 26 27 28 29 30 31 | #import "OFObject.h" OF_ASSUME_NONNULL_BEGIN @class OFArray OF_GENERIC(ObjectType); @class OFData; @class OFDate; /*! @file */ /*! * @brief The compression method of the archive entry. */ typedef enum of_lha_archive_method_t { | > | 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | #import "OFObject.h" OF_ASSUME_NONNULL_BEGIN @class OFArray OF_GENERIC(ObjectType); @class OFData; @class OFDate; @class OFNumber; /*! @file */ /*! * @brief The compression method of the archive entry. */ typedef enum of_lha_archive_method_t { |
︙ | ︙ | |||
53 54 55 56 57 58 59 | */ @interface OFLHAArchiveEntry: OFObject <OFCopying> { #ifdef OF_LHA_ARCHIVE_ENTRY_M @public #endif of_lha_archive_method_t _method; | | > > > > | 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 | */ @interface OFLHAArchiveEntry: OFObject <OFCopying> { #ifdef OF_LHA_ARCHIVE_ENTRY_M @public #endif of_lha_archive_method_t _method; OFString *_fileName, *_Nullable _directoryName; uint32_t _compressedSize, _uncompressedSize; OFDate *_date; uint8_t _level; uint16_t _CRC16; uint8_t _operatingSystemIdentifier; OFString *_Nullable _fileComment; OFNumber *_Nullable _mode, *_Nullable _UID, *_Nullable _GID; OFString *_Nullable _owner, *_Nullable _group; OFDate *_Nullable _modificationDate; OFArray OF_GENERIC(OFData *) *_extensions; } /*! * @brief The method of the entry. */ @property (readonly, nonatomic) of_lha_archive_method_t method; |
︙ | ︙ | |||
88 89 90 91 92 93 94 | /*! * @brief The date of the file. */ @property (readonly, retain, nonatomic) OFDate *date; /*! | | | > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 | /*! * @brief The date of the file. */ @property (readonly, retain, nonatomic) OFDate *date; /*! * @brief The LHA level of the file. */ @property (readonly, nonatomic) uint8_t level; /*! * @brief The CRC16 of the file. */ @property (readonly, nonatomic) uint16_t CRC16; /*! * @brief The operating system identifier of the file. */ @property (readonly, nonatomic) uint8_t operatingSystemIdentifier; /*! * @brief The comment of the file. */ @property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic) OFString *fileComment; /*! * @brief The LHA extensions of the file. */ @property (readonly, copy, nonatomic) OFArray OF_GENERIC(OFData *) *extensions; /*! * @brief The mode of the entry. */ @property OF_NULLABLE_PROPERTY (readonly, retain, nonatomic) OFNumber *mode; /*! * @brief The UID of the owner. */ @property OF_NULLABLE_PROPERTY (readonly, retain, nonatomic) OFNumber *UID; /*! * @brief The GID of the group. */ @property OF_NULLABLE_PROPERTY (readonly, retain, nonatomic) OFNumber *GID; /*! * @brief The owner of the file. */ @property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic) OFString *owner; /*! * @brief The group of the file. */ @property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic) OFString *group; /*! * @brief The date of the last modification of the file. */ @property OF_NULLABLE_PROPERTY (readonly, retain, nonatomic) OFDate *modificationDate; - (instancetype)init OF_UNAVAILABLE; @end OF_ASSUME_NONNULL_END |