1 | static byte[] isGZ_magic = bytesFromHex("1f8b"); |
2 | |
3 | static bool isGZ(byte[] data) { |
4 | ret byteArrayStartsWith(data, isGZ_magic); |
5 | } |
6 | |
7 | static bool isGZ(File f) { |
8 | ret fileStartsWith(f, isGZ_magic); |
9 | } |
Began life as a copy of #1009031
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: | #1010493 |
Snippet name: | isGZ |
Eternal ID of this version: | #1010493/1 |
Text MD5: | 68eea7dd43221055744cc210df61bf28 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-09-18 19:58:12 |
Source code size: | 203 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 467 / 482 |
Referenced in: | [show references] |