Uses 11335K of libraries. Click here for Pure Java version (8591L/56K).
1 | static File lcCompressFilePart_upper(File file, File archiveFile, long startIndex, int length, O... _) { |
2 | optPar bool balancing = true; |
3 | optPar bool fullCompression; |
4 | optPar bool verbose; |
5 | |
6 | length = toInt(min(length, l(file)-startIndex)); |
7 | print("Compressing " + file + " [" + startIndex + "/" + length + "]"); |
8 | time "Compressed" { |
9 | new LineCompCompressor compressor; |
10 | compressor.byteMode = true; |
11 | compressor.fullCompression = fullCompression; |
12 | if (fullCompression) print("full compression"); |
13 | compressor.toUpper = true; |
14 | print("byte mode"); |
15 | print("toUpper mode"); |
16 | compressor.verboseCompressionSteps = print(+verbose); |
17 | compressor.balancing = true; |
18 | if (compressor.balancing) print("balancing mode"); |
19 | compressor.verify = false; |
20 | compressor.verboseStats = true; |
21 | compressor.loadTexts(litmap(str(startIndex), loadTextFilePart_rawBytes(file, startIndex, startIndex+length)); |
22 | compressor.run(); |
23 | lcSaveToFile(compressor, archiveFile); |
24 | } |
25 | ret printFileInfo(archiveFile); |
26 | } |
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1029266 |
Snippet name: | lcCompressFilePart_upper |
Eternal ID of this version: | #1029266/13 |
Text MD5: | ee266d054fb444b30bc5055e2864ab3c |
Transpilation MD5: | f672ca62350fdfbbcbc345da53882118 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-07-30 11:38:26 |
Source code size: | 1049 bytes / 26 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 267 / 378 |
Version history: | 12 change(s) |
Referenced in: | [show references] |