19 Commits
Author SHA1 Message Date
Timofey Solomko 5250d7defb Replaced bit() function with self-contained version of it. 2016-12-14 21:05:40 +03:00
Timofey Solomko 035d4cba3d Removed unused import in DWP. 2016-12-10 15:58:17 +03:00
Timofey Solomko 4fda526791 Made some properties in DWP private. 2016-12-09 20:33:29 +03:00
Timofey Solomko 0a50b5d10f Rewritten DataWithPointer with the use of array of bytes. Removed alignedBytes(count:) because it was significantly slower this way. 2016-12-09 01:07:52 +03:00
Timofey Solomko f98b96dd7b Removed rewind function. 2016-12-04 20:25:11 +03:00
Timofey Solomko 9d099ec120 Added method which gets one byte from data with pointer. 2016-11-26 15:39:20 +03:00
Timofey Solomko 2ae6a7b252 Added new way to read bytes and used it in deflate uncompressed blocks. 2016-11-21 20:17:27 +03:00
Timofey Solomko e2fbf3da9f Fixed a problem with unnecessary skipping of bits (causing nlength and length problem). 2016-11-20 23:27:22 +03:00
Timofey Solomko 26ce09325d Moved common swift files so swift package manager won’t complain. 2016-11-20 17:56:09 +03:00
Timofey Solomko 97aab89d0f Reorganized project structure. 2016-11-19 15:21:44 +03:00
Timofey Solomko ec72622a86 DataWithPointer no longer stores input data. 2016-11-15 23:45:04 +03:00
Timofey Solomko 615e8a1ff4 Added new enum for specifying bit order. United DataWithPointer and DataWithStraightPointer. 2016-11-15 22:32:36 +03:00
Timofey Solomko 5e03f210e1 Added new DataWithPointer subclass (DataWithStraightPointer) which supports right-to-left bit order (used in bzip2). 2016-11-14 23:17:12 +03:00
Timofey Solomko 4bc6fb22d7 Added new convenience function to DataWithPointer which returns int number directly without conversion of uint8 array. 2016-11-13 19:30:36 +03:00
Timofey Solomko 828685c806 Removed unused symbols. 2016-11-05 12:06:52 +03:00
Timofey Solomko 1d30ff2dd8 Fixed problems with rewind function. 2016-11-05 12:01:01 +03:00
Timofey Solomko b8d609ae39 Redid implementation of bits function because we need right-to-left bit order. 2016-11-05 12:00:20 +03:00
Timofey Solomko 654c9bbaa3 Completed implementation of DataWithPointer (kinda). 2016-11-05 00:26:44 +03:00
Timofey Solomko fdbbb72c65 Added new class for getting bits from data in efficient way. And performance tests for it. 2016-11-04 23:11:42 +03:00