Timofey Solomko
b3dcb761d9
Style improvements
2017-07-29 15:44:09 +03:00
Timofey Solomko
c608d2b48f
Add ability to specify lzma properties for LZMADecoder externally
2017-07-25 22:02:56 +03:00
Timofey Solomko
af5b4402e9
Some small improvements to LZMADecoder code
2017-07-25 21:17:51 +03:00
Timofey Solomko
a9cdb50e85
Remove intFromAlignedBytes function
...
Also changes were made to adopt this removal. This was done to improve behavior in some corner cases as well as enforce intentional usage of particular integer types.
2017-07-09 13:29:33 +03:00
Timofey Solomko
6bd66e4717
Reduce size of DWP functions' names
...
Also provide default values for count argmunets in uint32 and uint64 functions.
2017-07-09 12:44:03 +03:00
Timofey Solomko
369da20c16
Adopted DWP-BitReader split everywhere
...
I've also removed a most occurrences of inout keyword because DWP (and BitReader) are classes and they are already passed by reference in arguments.
2017-07-08 22:02:32 +03:00
Timofey Solomko
dc49484cd5
Remove unnecessary pointerData arguments and properties from some internal LZMA classes
2017-07-08 17:26:32 +03:00
Timofey Solomko
850b82f49d
Update copyright header in LZMA sources
2017-07-08 17:06:22 +03:00
Timofey Solomko
a2fa1c4e12
Added internal support for external uncompressed size specification in LZMA.
2017-07-01 23:49:41 +03:00
Timofey Solomko
c744fd9b02
A number of changes were made to improve overall level of code stylishness.
2017-05-30 22:19:05 +03:00
Timofey Solomko
8b3cc5620a
A lot of small little changes here and there.
2017-05-27 20:38:20 +03:00
Timofey Solomko
f343919366
All classes are now longer final (because it is not needed to prevent subclassing given public access level).
2017-05-27 20:37:41 +03:00
Timofey Solomko
6b715b4e9f
Removed initialisation of several LZMADecoder properties from init() because resetState() does it. Added a check if resetState() was called at least once before decode().
2017-05-27 13:56:25 +03:00
Timofey Solomko
d5dc164279
Some changes to LZMA to reduce code repetition.
2017-05-27 11:28:50 +03:00
Timofey Solomko
9a1952b9e1
Small refactor in LZMADecoder.
2017-05-24 00:26:48 +03:00
Timofey Solomko
8a0ba48827
Renamed LZMA errors.
2017-05-09 20:31:22 +03:00
Timofey Solomko
82ff0dff04
Added first prototype of TAR parsing. And a test for it.
2017-05-06 20:26:58 +03:00
Timofey Solomko
2faba3e1b8
Made some changes to make LZMADecoder functions private.
2017-05-05 12:50:07 +03:00
Timofey Solomko
4fa03f6931
Swiftlinted.
2017-05-03 23:07:58 +03:00
Timofey Solomko
df0793376d
Another small refactoring.
2017-05-03 20:55:05 +03:00
Timofey Solomko
edbeb9adca
A bit of refactoring in LZMADecoder.
2017-05-01 22:17:15 +03:00
Timofey Solomko
31b97017b9
Copied LZMATestDecoder code into LZMADecoder.
2017-05-01 21:23:45 +03:00
Timofey Solomko
7462f2e093
Removed outIndex variable, made several functions private.
2017-05-01 20:49:35 +03:00
Timofey Solomko
77f4b30f88
Removed duplicated property.
2017-05-01 20:33:24 +03:00
Timofey Solomko
7190ca608f
LZMAOutWindow code added to LZMADecoder.
2017-05-01 20:31:40 +03:00
Timofey Solomko
76308ecf67
Swiftlinted.
2017-01-30 18:33:52 +03:00
Timofey Solomko
d877adf962
Updated copyright year.
2017-01-05 23:09:53 +03:00
Timofey Solomko
4f4689651b
Fixed several typos.
2017-01-02 18:08:40 +03:00
Timofey Solomko
64a1b37f1a
Simplified lzmaDecoder initializer.
2017-01-01 20:37:43 +03:00
Timofey Solomko
33dd12aea6
Simplified code for range decoder initialization.
2017-01-01 20:30:56 +03:00
Timofey Solomko
41936b573e
Removed lzma print functions.
2016-12-30 21:51:26 +03:00
Timofey Solomko
2774fcbb57
Added prevByte computed property to DWP so it is possible to make bitArray private again.
2016-12-30 18:11:05 +03:00
Timofey Solomko
9dc12b63c7
All is… arrays in LZMADecoder replaced with single probabilities array.
2016-12-30 17:55:09 +03:00
Timofey Solomko
173b7e927f
Redone XZError cases, added proper documentation to all new types and functions.
2016-12-26 20:28:43 +03:00
Timofey Solomko
97116bbe31
Fixed several build errors on other apple platforms.
2016-12-26 08:55:27 +03:00
Timofey Solomko
deb037d848
Several functions are now private.
2016-12-25 22:05:42 +03:00
Timofey Solomko
eaf336e2f0
Now the state of lzmaDecoder is reset entirely.
2016-12-24 23:37:07 +03:00
Timofey Solomko
f5270f9674
Fixed build error when range decoder is reset.
2016-12-24 15:10:42 +03:00
Timofey Solomko
c64f739cb2
RangeDecoder is now reset each time.
2016-12-24 15:00:18 +03:00
Timofey Solomko
e4181a76a9
Swiftlinted.
2016-12-24 12:34:23 +03:00
Timofey Solomko
e520458a11
Fixed problem caused by not specifying uncompressed size before lzma decoding.
2016-12-23 23:37:09 +03:00
Timofey Solomko
bd411906be
Small cleanup in lzmadecoder.
2016-12-23 21:48:07 +03:00
Timofey Solomko
c57f7f3a5d
Fixed error due to unitialized lc,lp,pb befor resetting state.
2016-12-23 21:47:55 +03:00
Timofey Solomko
c0fefcc77b
Fixed reset bits calculation.
2016-12-23 21:47:19 +03:00
Timofey Solomko
4d35231c32
Dictionary size is now passed around and fixed the problem with big-endian integers.
2016-12-23 21:20:03 +03:00
Timofey Solomko
39050dd7d0
Probably completed lzma2.
2016-12-23 20:40:30 +03:00
Timofey Solomko
4bb92c00d5
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.
2016-12-23 20:09:46 +03:00
Timofey Solomko
d3650edbeb
Finished LZMA/LZMADecoder.
2016-12-23 19:52:08 +03:00
Timofey Solomko
60008cc5c8
Moved initial values for properties of lzma classes to their declarations (where possible).
2016-12-23 19:16:28 +03:00
Timofey Solomko
5b942c31b7
pointerData is now stored as an instance property in all LZMA classes.
2016-12-23 19:09:50 +03:00