1 | static byte[] loadFirstBytes(S file, int n) { |
2 | ret loadFirstBytes(new File(file), n); |
3 | } |
4 | |
5 | static byte[] loadFirstBytes(File f, int n) { |
6 | n = asInt(min(n, f.length())); |
7 | ret loadBinaryFileChunk(f, 0, n); |
8 | } |
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, elmgxqgtpvxh, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1005312 |
Snippet name: | loadFirstBytes - load n first bytes from file |
Eternal ID of this version: | #1005312/2 |
Text MD5: | 17f426bb2437cf5c95dd9af489dd87cc |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-03-25 13:52:53 |
Source code size: | 213 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 599 / 584 |
Version history: | 1 change(s) |
Referenced in: | [show references] |