mirror of
https://github.com/tsolomko/SWCompression.git
synced 2026-06-23 14:56:41 +00:00
A new attempt has been made to make an LZMADecoder initializer which can support both LZMA and LZMA2. Also lzma Constants are no longer a substruct.
This commit is contained in:
@@ -18,7 +18,7 @@ final class LZMABitTreeDecoder {
|
||||
|
||||
init(numBits: Int, _ pointerData: inout DataWithPointer) {
|
||||
self.pointerData = pointerData
|
||||
self.probs = Array(repeating: LZMADecoder.Constants.probInitValue,
|
||||
self.probs = Array(repeating: LZMAConstants.probInitValue,
|
||||
count: 1 << numBits)
|
||||
self.numBits = numBits
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user