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

6
LINES

< > BotCompany Repo | #1007027 // expandUnsignedBytesToInts

JavaX fragment (include)

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

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: 371 / 372
Referenced in: [show references]