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

3
LINES

< > BotCompany Repo | #1033137 // byteFromInt_littleEndian

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

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

1  
static byte byteFromInt_littleEndian(int i, int byteNr) {
2  
  ret (byte) (i >> (byteNr*8));
3  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1033137
Snippet name: byteFromInt_littleEndian
Eternal ID of this version: #1033137/1
Text MD5: d58df37cbc5f5b22a477201c9b147b0a
Transpilation MD5: 66f3e1487ac5a74d21d498851cd45250
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-15 17:34:58
Source code size: 93 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 150 / 210
Referenced in: [show references]