1 | static byte[] gunzipBinaryData(byte[] data) ctex { |
2 | InputStream fis = new ByteArrayInputStream(data); |
3 | GZIPInputStream gis = newGZIPInputStream(fis); |
4 | ByteArrayOutputStream fos = new ByteArrayOutputStream(); |
5 | byte[] buffer = new byte[1024]; |
6 | int len; |
7 | while((len = gis.read(buffer)) != -1){ |
8 | fos.write(buffer, 0, len); |
9 | } |
10 | fis.close(); |
11 | fos.close(); |
12 | return fos.toByteArray(); |
13 | } |
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: | 602 / 966 |
Version history: | 1 change(s) |
Referenced in: | [show references] |