ObjFW  Check-in [f27430148d]

Overview
Comment:OFLHAArchive: Treat directory as uncompressed
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | 1.0
Files: files | file ages | folders
SHA3-256: f27430148d9dde6ba05d7202aca45b384c84c87eac1ffa96897d41b5a899cce7
User & Date: js on 2024-02-23 23:12:03
Other Links: branch diff | manifest | tags
Context
2024-02-24
13:23
OFLHAArchiveEntry: Properly skip extended area check-in: 399137032a user: js tags: 1.0
2024-02-23
23:12
OFLHAArchive: Treat directory as uncompressed check-in: f27430148d user: js tags: 1.0
23:11
OFLHAArchive: Treat directory as uncompressed check-in: 91089d4e47 user: js tags: trunk
22:55
OFLHAArchive: Don't assume method is uncompressed check-in: 3f522ea4b6 user: js tags: 1.0
Changes

Modified src/OFLHAArchive.m from [55f03233bb] to [e41cd8005a].

316
317
318
319
320
321
322
323


324
325
326
327
328
329
330
316
317
318
319
320
321
322

323
324
325
326
327
328
329
330
331







-
+
+







				 distanceBits: 5
			       dictionaryBits: 16];
		else if ([compressionMethod isEqual: @"-lh7-"])
			_decompressedStream = [[OFLHADecompressingStream alloc]
			    of_initWithStream: stream
				 distanceBits: 5
			       dictionaryBits: 17];
		else if ([compressionMethod isEqual: @"-lh0-"])
		else if ([compressionMethod isEqual: @"-lh0-"] ||
		    [compressionMethod isEqual: @"-lhd-"])
			_decompressedStream = [stream retain];
		else
			@throw [OFUnsupportedVersionException
			    exceptionWithVersion: compressionMethod];

		_entry = [entry copy];
		_toRead = entry.uncompressedSize;