MCPcopy Create free account
hub / github.com/ReadyTalk/avian / rawGetInt

Method rawGetInt

classpath/java/nio/ByteBuffer.java:240–245  ·  view source on GitHub ↗
(int position)

Source from the content-addressed store, hash-verified

238 }
239
240 private int rawGetInt(int position) {
241 return (((int) (doGet(position ) & 0xFF)) << 24)
242 | (((int) (doGet(position + 1) & 0xFF)) << 16)
243 | (((int) (doGet(position + 2) & 0xFF)) << 8)
244 | (((int) (doGet(position + 3) & 0xFF)) );
245 }
246
247 private short rawGetShort(int position) {
248 return (short) (( ((int) (doGet(position ) & 0xFF)) << 8)

Callers 1

getIntMethod · 0.95

Calls 1

doGetMethod · 0.95

Tested by

no test coverage detected