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

7
LINES

< > BotCompany Repo | #1033066 - gzipBytesCompressedLength - get how long the compressed version would be

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

Libraryless. Click here for Pure Java version (3881L/22K).

static long gzipBytesCompressedLength(byte[] data) ctex {
  new JustCountingOutputStream jcos;
  GZIPOutputStream gos = new GZIPOutputStream(jcos);
  gos.write(data, 0, l(data));
  gos.close();
  ret jcos!;
}

Author comment

Began life as a copy of #1011183

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1033066
Snippet name: gzipBytesCompressedLength - get how long the compressed version would be
Eternal ID of this version: #1033066/1
Text MD5: e220518e63bf978affa0bc7d3ff72240
Transpilation MD5: 5c95a570b90679990c7a58f06569c914
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-12 22:37:11
Source code size: 214 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 5 / 19
Referenced in: [show references]