static byte[] gunzipBinaryData(byte[] data) ctex { InputStream fis = new ByteArrayInputStream(data); GZIPInputStream gis = newGZIPInputStream(fis); ByteArrayOutputStream fos = new ByteArrayOutputStream(); byte[] buffer = new byte[1024]; int len; while((len = gis.read(buffer)) != -1){ fos.write(buffer, 0, len); } fis.close(); fos.close(); return fos.toByteArray(); }
Began life as a copy of #1000679
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1001261 |
Snippet name: | gunzipBinaryData |
Eternal ID of this version: | #1001261/2 |
Text MD5: | 385f6d04ea8de3f4600c623be76f1938 |
Author: | stefan |
Category: | |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-04-29 14:05:15 |
Source code size: | 405 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 600 / 961 |
Version history: | 1 change(s) |
Referenced in: | [show references] |