Libraryless. Click here for Pure Java version (9243L/51K).
1 | scope isQOI. |
2 | |
3 | static byte[] #magic = toASCII("qoif"); |
4 | |
5 | sbool isQOI(byte[] data) { |
6 | ret byteArrayStartsWith(data, magic); |
7 | } |
8 | |
9 | sbool isQOI(File f) { |
10 | ret isQOI(loadBeginningOfBinaryFile(f, l(magic))); |
11 | } |
Began life as a copy of #1009031
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): elmgxqgtpvxh, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1035940 |
Snippet name: | isQOI - tests using magic bytes |
Eternal ID of this version: | #1035940/1 |
Text MD5: | 39855c4b45bbaf39aa21e7a60c6658e7 |
Transpilation MD5: | 3af3c4c38216fe9acdadd9b24b805c61 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-08-15 20:50:44 |
Source code size: | 211 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 142 / 184 |
Referenced in: | [show references] |