Uses 11335K of libraries. Click here for Pure Java version (7965L/52K).
1 | static File zipToByteComp(File zip) {
|
2 | ret zipToByteComp(zip, replaceExtension(zip, ".bc")); |
3 | } |
4 | |
5 | static File zipToByteComp(File zip, File bc) {
|
6 | new LineCompCompressor comp; |
7 | comp.verboseStats = true; |
8 | comp.byteMode = true; |
9 | comp.loadTexts(zipFileToStringMap(zip)); |
10 | comp.run(); |
11 | lcSaveToFile(comp, bc); |
12 | print("Zip: " + renderFileInfo(zip));
|
13 | print("ByteComp: " + renderFileInfo(bc));
|
14 | ret bc; |
15 | } |
Began life as a copy of #1028789
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, qipzzgwivdol, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1028797 |
| Snippet name: | zipToByteComp |
| Eternal ID of this version: | #1028797/2 |
| Text MD5: | ba1a3f4abcc784a49bf61e8b9e51fb8f |
| Transpilation MD5: | 0ba1ae005ff503024f3b2a054fe3f82e |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-07-08 23:52:47 |
| Source code size: | 424 bytes / 15 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 514 / 652 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |