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

6
LINES

< > BotCompany Repo | #1029400 // testRawByteReader

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

Libraryless. Click here for Pure Java version (2649L/17K).

svoid testRawByteReader() {
  byte[] bytes = new[256];
  for i to 256: bytes[i] = (byte) i;
  L<Int> l = map(c -> (int) c, characters(reader2string(rawByteReader(byteArrayInputStream(bytes))));
  assertEqualsVerbose(l, iotaZeroList(256));
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1029400
Snippet name: testRawByteReader
Eternal ID of this version: #1029400/1
Text MD5: 1714b727a0ea21c3913d093cb4ac759f
Transpilation MD5: 2911dc05939d47a0490b18b7bcaf1160
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-08-05 14:52:49
Source code size: 245 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 171 / 248
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)