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

Method checkPut

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

Source from the content-addressed store, hash-verified

274 }
275
276 protected void checkPut(int position, int amount, boolean absolute) {
277 if (readOnly) {
278 throw new ReadOnlyBufferException();
279 }
280
281 if (position < 0 || position+amount > limit) {
282 throw absolute
283 ? new IndexOutOfBoundsException()
284 : new BufferOverflowException();
285 }
286 }
287
288 protected void checkGet(int position, int amount, boolean absolute) {
289 if (amount > limit-position) {

Callers 4

putMethod · 0.95
putLongMethod · 0.95
putIntMethod · 0.95
putShortMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected