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

5
LINES

< > BotCompany Repo | #1032925 // verifyInputStream

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (3881L/22K).

1  
svoid verifyInputStream(InputStream in, byte[] data) ctex {
2  
  int n = l(data);
3  
  for i to n:
4  
    assertEquals("Byte " + i, ubyteToInt(data[i]), in.read());
5  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1032925
Snippet name: verifyInputStream
Eternal ID of this version: #1032925/3
Text MD5: 01a06536a77dc80712f9bbcda421267c
Transpilation MD5: 5437fa3e0644664269e53b8ef602a7fb
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-10 23:33:33
Source code size: 161 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 166 / 230
Version history: 2 change(s)
Referenced in: [show references]