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

10
LINES

< > BotCompany Repo | #1007030 // shortArrayFromBytes_littleEndian

JavaX fragment (include)

static short[] shortArrayFromBytes_littleEndian(byte[] a) {
  ret shortArrayFromBytes_littleEndian(a, 0, l(a));
}

static short[] shortArrayFromBytes_littleEndian(byte[] a, int from, int to) {
  short[] b = new short[(to-from)/2];
  for (int i = 0; i < b.length; i++)
    b[i] = shortFromBytes_littleEndian(a, from+i*2);
  ret b;
}

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: 596 / 596
Version history: 3 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1017154 - bytesToShorts_littleEndian
#1019649 - byteArrayFromShorts_littleEndian