File tree 2 files changed +14
-1
lines changed
2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,19 @@ This tool can be used to extend (actually prefix) a binary generated with e.g. t
38
38
0000030 0000 0000 7485 0000 0000 0000 0000 0000
39
39
```
40
40
41
+ ## ` lzss.py `
42
+ This tool allows to compress a binary file using the LZSS algorithm.
43
+
44
+ ### How-To-Use
45
+ * Encoding (Compressing)
46
+ ``` bash
47
+ ./lzss.py --encode sketch.bin sketch.lzss
48
+ ```
49
+ * Decoding (Extracting)
50
+ ``` bash
51
+ ./lzss.py --decode sketch.lzss sketch.bin
52
+ ```
53
+
41
54
## ` bin2json.py `
42
55
This tool converts the binary file into base64 encoded JSON which is necessary for feeding it to the server.
43
56
Original file line number Diff line number Diff line change 6
6
LZSS_SO_FILE = "./lzss.so"
7
7
8
8
if len (sys .argv ) != 4 :
9
- print ("Usage: lzss.py --[encode|decode] sketch.bin sketch.lzss " )
9
+ print ("Usage: lzss.py --[encode|decode] infile outfile " )
10
10
sys .exit ()
11
11
12
12
lzss_functions = ctypes .CDLL (LZSS_SO_FILE )
You can’t perform that action at this time.
0 commit comments