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

6
LINES

< > BotCompany Repo | #1029401 // intArrayToBytes_bigEndian

JavaX fragment (include)

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

Author comment

Began life as a copy of #1029378

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1029401
Snippet name: intArrayToBytes_bigEndian
Eternal ID of this version: #1029401/1
Text MD5: 8c7db89e9cd6c8b3c194c7dec1fc5897
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:14:37
Source code size: 186 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 166 / 211
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)