ObjFW  Check-in [9350b01931]

Overview
Comment:OFLHAArchive: Add support for decompressing -lhx-
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 9350b01931ad9dd78b6fb158fd17f93385b728c0b2634cd4d9903bb4cdc102f9
User & Date: js on 2024-02-23 23:25:05
Other Links: manifest | tags
Context
2024-02-24
12:21
OFLHAArchiveEntry: Add support for header level 3 check-in: 3f79f0542a user: js tags: trunk
2024-02-23
23:25
OFLHAArchive: Add support for decompressing -lhx- check-in: 9350b01931 user: js tags: trunk
23:11
OFLHAArchive: Treat directory as uncompressed check-in: 91089d4e47 user: js tags: trunk
Changes

Modified src/OFLHAArchive.m from [e41cd8005a] to [80292dff55].

316
317
318
319
320
321
322





323
324
325
326
327
328
329
				 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];








>
>
>
>
>







316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
				 distanceBits: 5
			       dictionaryBits: 16];
		else if ([compressionMethod isEqual: @"-lh7-"])
			_decompressedStream = [[OFLHADecompressingStream alloc]
			    of_initWithStream: stream
				 distanceBits: 5
			       dictionaryBits: 17];
		else if ([compressionMethod isEqual: @"-lhx-"])
			_decompressedStream = [[OFLHADecompressingStream alloc]
			    of_initWithStream: stream
				 distanceBits: 5
			       dictionaryBits: 20];
		else if ([compressionMethod isEqual: @"-lh0-"] ||
		    [compressionMethod isEqual: @"-lhd-"])
			_decompressedStream = [stream retain];
		else
			@throw [OFUnsupportedVersionException
			    exceptionWithVersion: compressionMethod];