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

5
LINES

< > BotCompany Repo | #1008001 - bytesToShorts_signedBigEndian

JavaX fragment (include)

static void bytesToShorts_signedBigEndian(byte[] a, short[] b) {
  int n = l(a)/2;
  for i to n:
    b[i] = (short) (((int) a[i*2]) << 8 | ((int) a[i*2+1]) & 0xFF);
}

download  show line numbers  debug dex   

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

No comments. add comment

Snippet ID: #1008001
Snippet name: bytesToShorts_signedBigEndian
Eternal ID of this version: #1008001/4
Text MD5: 6b8afb447d8b7bca84a10ebb9c9ef25a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-08-05 15:07:00
Source code size: 170 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 358 / 354
Version history: 3 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1008001 & http://1008001.tinybrain.de