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).

static int raf_readLittleEndianInt(RandomAccessFile raf) ctex {
  int a = ubyteToInt(raf.readByte());
  int b = ubyteToInt(raf.readByte());
  int c = ubyteToInt(raf.readByte());
  int d = ubyteToInt(raf.readByte());
  ret a | (b << 8) | (c << 16) | (d << 24);
}

download  show line numbers  debug dex   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, 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: 46 / 82
Version history: 1 change(s)
Referenced in: [show references]

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