1 | static int loadFirstByte(File f) { |
2 | if (fileLength(f) == 0) ret -1; |
3 | ret loadBinaryFileChunk(f, 0, 1)[0]; |
4 | } |
Began life as a copy of #1005312
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1018892 |
Snippet name: | loadFirstByte - first byte from file (returns -1 if file is empty/not existing) |
Eternal ID of this version: | #1018892/3 |
Text MD5: | e28845fd66e51cd6109b1ee7ac3c31d6 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-10-15 16:16:03 |
Source code size: | 112 bytes / 4 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 358 / 394 |
Version history: | 2 change(s) |
Referenced in: | [show references] |