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

10
LINES

< > BotCompany Repo | #1007030 // shortArrayFromBytes_littleEndian

JavaX fragment (include)

1  
static short[] shortArrayFromBytes_littleEndian(byte[] a) {
2  
  ret shortArrayFromBytes_littleEndian(a, 0, l(a));
3  
}
4  
5  
static short[] shortArrayFromBytes_littleEndian(byte[] a, int from, int to) {
6  
  short[] b = new short[(to-from)/2];
7  
  for (int i = 0; i < b.length; i++)
8  
    b[i] = shortFromBytes_littleEndian(a, from+i*2);
9  
  ret b;
10  
}

Author comment

Began life as a copy of #1007028

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: #1007030
Snippet name: shortArrayFromBytes_littleEndian
Eternal ID of this version: #1007030/4
Text MD5: e55180295a47053a2a1837a476d3fc26
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:21:50
Source code size: 340 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 597 / 597
Version history: 3 change(s)
Referenced in: [show references]