1 | sclass ZerosInputStream extends InputStream { |
2 | int len; |
3 | |
4 | *(int *len) {} |
5 | |
6 | public int read() { |
7 | if (len > 0) { |
8 | --len; |
9 | ret 0; |
10 | } |
11 | ret -1; |
12 | } |
13 | } |
Began life as a copy of #1018606
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: | #1018635 |
Snippet name: | ZerosInputStream |
Eternal ID of this version: | #1018635/1 |
Text MD5: | 2da146fa679dba121a555f64a504c692 |
Author: | stefan |
Category: | javax / io |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-10-08 02:08:01 |
Source code size: | 180 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 380 / 917 |
Referenced in: | [show references] |