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

Method rawGetLong

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

Source from the content-addressed store, hash-verified

227 }
228
229 private long rawGetLong(int position) {
230 return (((long) (doGet(position ) & 0xFF)) << 56)
231 | (((long) (doGet(position + 1) & 0xFF)) << 48)
232 | (((long) (doGet(position + 2) & 0xFF)) << 40)
233 | (((long) (doGet(position + 3) & 0xFF)) << 32)
234 | (((long) (doGet(position + 4) & 0xFF)) << 24)
235 | (((long) (doGet(position + 5) & 0xFF)) << 16)
236 | (((long) (doGet(position + 6) & 0xFF)) << 8)
237 | (((long) (doGet(position + 7) & 0xFF)) );
238 }
239
240 private int rawGetInt(int position) {
241 return (((int) (doGet(position ) & 0xFF)) << 24)

Callers 1

getLongMethod · 0.95

Calls 1

doGetMethod · 0.95

Tested by

no test coverage detected