1 | static byte[] DEX_FILE_MAGIC = { 0x64, 0x65, 0x78, 0x0a, 0x30, 0x33, 0x35, 0x00 }; |
2 | |
3 | static boolean isDex(byte[] dexData) { |
4 | if (dexData.length < DEX_FILE_MAGIC.length) return false; |
5 | for (int i = 0; i < DEX_FILE_MAGIC.length; i++) |
6 | if (dexData[i] != DEX_FILE_MAGIC[i]) |
7 | return false; |
8 | return true; |
9 | } |
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: | #1003863 |
Snippet name: | isDex |
Eternal ID of this version: | #1003863/1 |
Text MD5: | 44c17a68ee45725de8fd95a022ddf800 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-07-29 02:59:39 |
Source code size: | 336 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 639 / 619 |
Referenced in: | [show references] |