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

Method rawPutInt

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

Source from the content-addressed store, hash-verified

135 }
136
137 private void rawPutInt(int position, int val) {
138 doPut(position , (byte) ((val >> 24) & 0xff));
139 doPut(position + 1, (byte) ((val >> 16) & 0xff));
140 doPut(position + 2, (byte) ((val >> 8) & 0xff));
141 doPut(position + 3, (byte) ((val ) & 0xff));
142 }
143
144 private void rawPutShort(int position, short val) {
145 doPut(position , (byte) ((val >> 8) & 0xff));

Callers 1

putIntMethod · 0.95

Calls 1

doPutMethod · 0.95

Tested by

no test coverage detected