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

6
LINES

< > BotCompany Repo | #1004989 // intArrayToBytes [big endian]

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (39L/1K).

static byte[] intArrayToBytes(int[] a) {
  byte[] b = new byte[a.length*4];
  for (int i = 0; i < a.length; i++)
    intToBytes_inArray(a[i], b, i*4);
  ret b;
}

Author comment

Began life as a copy of #1002912

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1004989
Snippet name: intArrayToBytes [big endian]
Eternal ID of this version: #1004989/3
Text MD5: aa92254f7a7c8efbc833704913f0a2df
Transpilation MD5: c0408483d0b9eb3904952b4a6a94af67
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-08-03 11:47:22
Source code size: 166 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 646 / 703
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1029378 - intArrayToBytes_littleEndian