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

11
LINES

< > BotCompany Repo | #1013133 // longToBytes

JavaX fragment (include)

static byte[] longToBytes(long l) {
  ret new byte[] {
    (byte) (l >>> 56),
    (byte) (l >>> 48),
    (byte) (l >>> 40),
    (byte) (l >>> 32),
    (byte) (l >>> 24),
    (byte) (l >>> 16),
    (byte) (l >>> 8),
    (byte) l};
}

Author comment

Began life as a copy of #1002912

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1013133
Snippet name: longToBytes
Eternal ID of this version: #1013133/1
Text MD5: 72d4e92da9027918a1a43f8089600876
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-26 05:17:35
Source code size: 241 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 436 / 451
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)