This repository has been archived by the owner on Aug 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
README.txt
109 lines (63 loc) · 2.99 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
⚠️ This repository has moved to: https://gitlab.com/mbitsnbites/liblzg
liblzg v1.0.10
==============
About
-----
liblzg is a minimal implementation of an LZ77 class compression library. The
main characteristic of the library is that the decoding routine is very simple,
fast and requires little memory.
In general, liblzg does not compress as well as zlib, for instance, and the
encoder is usually slower than comparable compression routines. On the other
hand the decoder is very simple and very fast - ideal for systems with tight
memory limits or processing capabilities.
For more information, see the Doxygen documentation (in the doc folder).
Compiling
---------
The easisest way to compile liblzg and its tools is to use the GCC toolchain,
and use the Makefile in the src folder. Just type 'make' in the src folder,
which should create a static link library (in the src/lib folder) and the
example tools (in the src/tools folder).
License
-------
This project, and its source code, is released under the zlib/libpng license
(see LICENSE.txt). This means that it can be used in any product, commercial
or not.
Version history
---------------
v1.0.10 - 2018.11.29
- Fixed an incorrect memzero in the encoder [Jørgen Ibsen].
v1.0.9 - 2016.01.06
- Added optional LZG_EncodeFull() function for allowing users to use custom
memory allocation instead of malloc/free [Evan Nemerson].
v1.0.8 - 2014.09.10
- Fixed a one-byte-too-short stack allocated array in the encoder.
v1.0.7 - 2013.10.22
- Fixed the one-byte-too-short copy in the decoder for random/uncompressible
data (not a problem for the lzgmini* implementations).
v1.0.6 - 2011.03.29
- Fixed a potential out-of-bounds bug in the C decoder.
- Minor changes in the encoder (more consistent choise of marker symbols).
v1.0.5 - 2010.12.01
- Added a JavaScript version of the decoder.
v1.0.4 - 2010.11.26
- FIXED A CRITICAL BUG IN THE ENCODER: Offsets equal to 2056 would be encoded
as 8, resulting in wrong encoded data, and hence also wrong decoded data.
- Added a Lua version of the decoder.
v1.0.3 - 2010.11.21
- Improved the encoder speed by a significant amount by doing some acceptable
trade-offs (earlier termination of the string matching for instance). The
highest compression level (9) still does a full exhaustive search.
- Fixed an illegal memory read in the encoder.
- Added an option to do multiple passes in the benchmark tool.
v1.0.2 - 2010.11.16
- Added a Pascal version of the decoder.
- Fixed some errors in the documentation of the data format (encode.c).
v1.0.1 - 2010.11.09
- Added a simplified reference implementation of the decoder in C.
- Added assembly language implementations of the decoder for 68k processors
(16/32-bit architecture) and 6502 processors (8-bit architecture).
- Added an UNSAFE compile time option for the decoder.
- Added support for LZO in the benchmark tool (disabled by default, as all the
other 3rd party compression libraries).
v1.0 - 2010.10.28
- First release