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

7
LINES

< > BotCompany Repo | #1029253 // raf_readLittleEndianInt

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

Libraryless. Click here for Pure Java version (2484L/16K).

1  
static int raf_readLittleEndianInt(RandomAccessFile raf) ctex {
2  
  int a = ubyteToInt(raf.readByte());
3  
  int b = ubyteToInt(raf.readByte());
4  
  int c = ubyteToInt(raf.readByte());
5  
  int d = ubyteToInt(raf.readByte());
6  
  ret a | (b << 8) | (c << 16) | (d << 24);
7  
}

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: #1029253
Snippet name: raf_readLittleEndianInt
Eternal ID of this version: #1029253/2
Text MD5: 1644234ca2fad0a19a57ff6b6db0d098
Transpilation MD5: 95e31a01a0ecab395ab828097bf0e681
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-27 14:21:34
Source code size: 267 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 161 / 240
Version history: 1 change(s)
Referenced in: [show references]