ObjFW  Check-in [91089d4e47]

Overview
Comment:OFLHAArchive: Treat directory as uncompressed
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 91089d4e47d2e63b523cb664ce9640f0375295512b42866697d9d135e642355f
User & Date: js on 2024-02-23 23:11:46
Other Links: manifest | tags
Context
2024-02-23
23:25
OFLHAArchive: Add support for decompressing -lhx- check-in: 9350b01931 user: js tags: trunk
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: bf45f06d9b user: js tags: trunk
Changes

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

316
317
318
319
320
321
322
323

324
325
326
327
328
329
330
				 distanceBits: 5
			       dictionaryBits: 16];
		else if ([compressionMethod isEqual: @"-lh7-"])
			_decompressedStream = [[OFLHADecompressingStream alloc]
			    of_initWithStream: stream
				 distanceBits: 5
			       dictionaryBits: 17];
		else if ([compressionMethod isEqual: @"-lh0-"])

			_decompressedStream = [stream retain];
		else
			@throw [OFUnsupportedVersionException
			    exceptionWithVersion: compressionMethod];

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







|
>







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-"] ||
		    [compressionMethod isEqual: @"-lhd-"])
			_decompressedStream = [stream retain];
		else
			@throw [OFUnsupportedVersionException
			    exceptionWithVersion: compressionMethod];

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