Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

26
LINES

< > BotCompany Repo | #1029266 // lcCompressFilePart_upper

JavaX fragment (include) [tags: use-pretranspiled]

Uses 11335K of libraries. Click here for Pure Java version (8591L/56K).

static File lcCompressFilePart_upper(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");
    compressor.toUpper = true;
    print("byte mode");
    print("toUpper 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);
}

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: 265 / 374
Version history: 12 change(s)
Referenced in: [show references]