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

7
LINES

< > BotCompany Repo | #1002912 - intToBytes [big-endian]

JavaX fragment (include)

static byte[] intToBytes(int i) {
  return new byte[] {
          (byte) (i >>> 24),
          (byte) (i >>> 16),
          (byte) (i >>> 8),
          (byte) i};
}

download  show line numbers  debug dex   

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

No comments. add comment

Snippet ID: #1002912
Snippet name: intToBytes [big-endian]
Eternal ID of this version: #1002912/2
Text MD5: 66de31a6f34e5c125abab778518900ba
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-08-02 18:34:40
Source code size: 170 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 445 / 1264
Version history: 1 change(s)
Referenced in: [show references]

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