Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

13
LINES

< > BotCompany Repo | #1018635 // ZerosInputStream

JavaX fragment (include)

sclass ZerosInputStream extends InputStream {
  int len;

  *(int *len) {}
  
  public int read() {
    if (len > 0) {
      --len;
      ret 0;
    }
    ret -1;
  }
}

Author comment

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: 379 / 916
Referenced in: #1018639 - SilenceAudioInputStream [dev.]
#1034167 - Standard Classes + Interfaces (LIVE, continuation of #1003674)