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

6
LINES

< > BotCompany Repo | #1023058 // intToBytes_inArray [big-endian]

JavaX fragment (include)

svoid intToBytes_inArray(int i, byte[] array, int idx) {
  array[idx] = (byte) (i >>> 24);
  array[idx+1] = (byte) (i >>> 16);
  array[idx+2] = (byte) (i >>> 8);
  array[idx+3 ] = (byte) i;
}

Author comment

Began life as a copy of #1002912

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1023058
Snippet name: intToBytes_inArray [big-endian]
Eternal ID of this version: #1023058/4
Text MD5: 88fc4386efba8c2b398e11be3be79c0b
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:54
Source code size: 196 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 287 / 330
Version history: 3 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1029377 - intToBytes_inArray_littleEndian