Uses 11335K of libraries. Click here for Pure Java version (8965L/58K).
static File lcCompressFilePart(File file, File archiveFile, long startIndex, int length, O... _) { optPar bool balancing = true; optPar bool fullCompression; optPar bool verbose; length = toInt(min(length, l(file)-startIndex)); print("Compressing " + file + " [" + startIndex + "/" + length + "]"); time "Compressed" { new LineCompCompressor compressor; compressor.byteMode = true; compressor.fullCompression = fullCompression; if (fullCompression) print("full compression"); print("byte mode"); compressor.verboseCompressionSteps = print(+verbose); compressor.balancing = true; if (compressor.balancing) print("balancing mode"); compressor.verify = false; compressor.verboseStats = true; compressor.loadTexts(litmap(str(startIndex), loadTextFilePart_rawBytes(file, startIndex, startIndex+length)); compressor.run(); lcSaveToFile(compressor, archiveFile); } ret printFileInfo(archiveFile); }
Began life as a copy of #1029266
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: | #1029474 |
Snippet name: | lcCompressFilePart |
Eternal ID of this version: | #1029474/2 |
Text MD5: | d548a6e752c741b74536ac14e7bec239 |
Transpilation MD5: | 91a4b2204c0c42ee84d158eaa8cc1988 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-08-12 01:20:07 |
Source code size: | 983 bytes / 24 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 190 / 268 |
Version history: | 1 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |