1 | static byte[] isGIF_magic = bytesFromHex("47494638"); // Actual signature is longer, but we're lazy
|
2 | |
3 | static bool isGIF(byte[] data) {
|
4 | ret byteArrayStartsWith(data, isGIF_magic); |
5 | } |
6 | |
7 | static bool isGIF(File f) {
|
8 | ret isGIF(loadBeginningOfBinaryFile(f, l(isGIF_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: | #1015994 |
| Snippet name: | isGIF |
| Eternal ID of this version: | #1015994/3 |
| Text MD5: | b6750b1cc3b131dd92b41bde82a3d889 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-06-02 20:32:11 |
| Source code size: | 279 bytes / 9 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 716 / 747 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |