Commit Graph

21 Commits

Author SHA1 Message Date
Lioncash 200f8f311a Compression/LZ77: Remove unnecessary pointer casts
There's no need to cast here in a few of these areas, so we can remove
them.

This also resolves quite a few -Wcast-qual warnings,
2019-09-06 04:13:58 -04:00
Lioncash a3a6e3b42a LZLookupTable: Reuse setLookAheadWindow within constructor
Provides the same behavior without duplicating code.
2019-08-15 23:48:49 -04:00
Lioncash f7b8c33ed2 LZLookupTable: Default-initialize class members directly in the class
Same thing without the need to duplicate the variable name.
2019-08-15 23:45:17 -04:00
Lioncash 3092dc79e7 LZLookupTable: Default destructor 2019-08-15 23:41:10 -04:00
Lioncash 663696fe72 LZLookupTable: Make member functions const where applicable
While we're at it, we can convert compare_equal into an operator==
operator!= pair, and make the curPos argument to search() const as well.
2019-08-15 23:39:45 -04:00
Lioncash 50936ab1a9 LZBase: Default virtual destructor 2019-08-15 23:35:12 -04:00
Lioncash be9ac57b9d LZBase: Mark functions as const where applicable
Most of the interface can be const qualified except for the setters.
While we're at it, we can also make the private member functions
internally linked helper functions, given they don't depend on instance
state at all.
2019-08-15 23:28:41 -04:00
Lioncash 54b1e8f836 General: Use nullptr where applicable
Uses nullptr instead of NULL or the 0 integer literal where applicable.
2019-08-15 16:12:17 -04:00
Phillip Stephens af59ea2d48
Revert "General: Minor general cleanup" 2019-08-15 08:52:45 -07:00
Lioncash 83818a6272 General: Use nullptr where applicable
Uses nullptr instead of NULL or the 0 integer literal where applicable.
2019-08-15 11:04:09 -04:00
Jack Andersen 7243c687a8 New code style refactor 2018-12-07 19:18:17 -10:00
Jack Andersen 017a921fdc Huge compile performance refactor 2017-12-28 21:55:42 -10:00
Jack Andersen b791b7e426 Humungous refactor 2016-03-04 13:00:12 -10:00
Jack Andersen ec38ba088e added buffer-copying subclass to MemoryReader/Writer 2015-07-07 20:03:08 -10:00
Phillip Stephens 011496db8b * Fix Wii/GC Compiling
* Finish initial FileInfo/Dir APIs
* Get rid of type punning warnings
2015-05-20 21:58:21 -07:00
Phillip Stephens 6ee11b9a08 * Fix styling 2015-05-18 20:24:56 -07:00
Phillip Stephens 190f1e8c17 * Fix commit
* Fix LZO implementation (use lzo1x_decompress_safe)
2015-03-01 13:22:59 -08:00
Phillip Stephens c28cfbaba6 * Refactor Stream and *Reader classes 2015-03-01 12:42:39 -08:00
Antidote 097a507bd0 * Visual Studio fixes (requires VS2013 at the minimum) 2014-12-28 20:46:43 -08:00
Phillip Stephens 6187eb3f77 * Fix LZO 2014-09-09 09:53:32 -07:00
Phillip Stephens e8fad79134 * Add LZ77 Compression 2014-09-09 09:36:29 -07:00