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

Method checkGet

classpath/java/nio/ByteBuffer.java:288–294  ·  view source on GitHub ↗
(int position, int amount, boolean absolute)

Source from the content-addressed store, hash-verified

286 }
287
288 protected void checkGet(int position, int amount, boolean absolute) {
289 if (amount > limit-position) {
290 throw absolute
291 ? new IndexOutOfBoundsException()
292 : new BufferUnderflowException();
293 }
294 }
295
296 public ByteBuffer order(ByteOrder order) {
297 if (order != ByteOrder.BIG_ENDIAN) throw new UnsupportedOperationException();

Callers 4

getMethod · 0.95
getLongMethod · 0.95
getIntMethod · 0.95
getShortMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected