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

Method rawGetShort

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

Source from the content-addressed store, hash-verified

245 }
246
247 private short rawGetShort(int position) {
248 return (short) (( ((int) (doGet(position ) & 0xFF)) << 8)
249 | (((int) (doGet(position + 1) & 0xFF)) ));
250 }
251
252 public long getLong() {
253 checkGet(position, 8, false);

Callers 1

getShortMethod · 0.95

Calls 1

doGetMethod · 0.95

Tested by

no test coverage detected