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

6
LINES

< > BotCompany Repo | #1007027 // expandUnsignedBytesToInts

JavaX fragment (include)

static int[] expandUnsignedBytesToInts(byte[] b, int from, int to) {
  int[] ints = new int[to-from];
  for (int i = from; i < to; i++)
    ints[i-from] = ((int) b[from]) & 0xFF;
  ret ints;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1007027
Snippet name: expandUnsignedBytesToInts
Eternal ID of this version: #1007027/1
Text MD5: eff55c155e26ba0738ed49f18c9319dc
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-02-25 20:01:48
Source code size: 197 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 438 / 434
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)