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

Method rawPutLong

classpath/java/nio/ByteBuffer.java:126–135  ·  view source on GitHub ↗
(int position, long val)

Source from the content-addressed store, hash-verified

124 }
125
126 private void rawPutLong(int position, long val) {
127 doPut(position , (byte) ((val >> 56) & 0xff));
128 doPut(position + 1, (byte) ((val >> 48) & 0xff));
129 doPut(position + 2, (byte) ((val >> 40) & 0xff));
130 doPut(position + 3, (byte) ((val >> 32) & 0xff));
131 doPut(position + 4, (byte) ((val >> 24) & 0xff));
132 doPut(position + 5, (byte) ((val >> 16) & 0xff));
133 doPut(position + 6, (byte) ((val >> 8) & 0xff));
134 doPut(position + 7, (byte) ((val ) & 0xff));
135 }
136
137 private void rawPutInt(int position, int val) {
138 doPut(position , (byte) ((val >> 24) & 0xff));

Callers 1

putLongMethod · 0.95

Calls 1

doPutMethod · 0.95

Tested by

no test coverage detected