mirror of
https://github.com/tsolomko/SWCompression.git
synced 2026-06-23 14:56:41 +00:00
[7-Zip] Add property to SevenZipFolder orderedCompressionMethods
It lazily returns compression methods in the order used by folder.
This commit is contained in:
@@ -39,6 +39,10 @@ class SevenZipFolder {
|
||||
// This property is stored in SubstreamInfo.
|
||||
var numUnpackSubstreams = 1
|
||||
|
||||
lazy var orderedCompressionMethods: [CompressionMethod] = {
|
||||
return self.orderedCoders().map { $0.compressionMethod }
|
||||
}()
|
||||
|
||||
init(_ bitReader: MsbBitReader) throws {
|
||||
numCoders = bitReader.szMbd()
|
||||
for _ in 0..<numCoders {
|
||||
|
||||
Reference in New Issue
Block a user