BufferOverflowException
660661662663664665666667668669670
* @see ByteBuffer#put(ByteBuffer) */ public IoBuffer put(ByteBuffer src) { if (remaining() < src.remaining()) { throw new BufferOverflowException(); } if (isReadOnly()) { throw new ReadOnlyBufferException(); }
682683684685686687688689690691692
if (src == this) { // NOSONAR, checking the instance throw new IllegalArgumentException(); } if (remaining() < src.remaining()) { throw new BufferOverflowException(); } if (isReadOnly()) { throw new ReadOnlyBufferException(); }
224225226227228229230231232233
maxChunks = chunksPerPkt; } void writeData(byte[] inarray, int off, int len) { if (dataPos + len > buf.length) { throw new BufferOverflowException(); } System.arraycopy(inarray, off, buf, dataPos, len); dataPos += len; }
232233234235236237238239240241
dataPos += len; } void writeChecksum(byte[] inarray, int off, int len) { if (checksumPos + len > dataStart) { throw new BufferOverflowException(); } System.arraycopy(inarray, off, buf, checksumPos, len); checksumPos += len; }
2684268526862687268826892690269126922693
maxChunks = chunksPerPkt; } void writeData(byte[] inarray, int off, int len) { if ( dataPos + len > buf.length) { throw new BufferOverflowException(); } System.arraycopy(inarray, off, buf, dataPos, len); dataPos += len; }
2692269326942695269626972698269927002701
17511752175317541755175617571758175917601761
int oldLimit = limit(); int end = position() + fieldSize; if (oldLimit < end) { throw new BufferOverflowException(); } if (val.length() == 0) { if (!utf16) { put((byte) 0x00);
106107108109110111112
final void checkRange(final int bytes) { if ( bytes < 0 ) throw new IllegalArgumentException(); if ( preventGC.capacity() < (viewAddress - MemoryUtil.getAddress0(preventGC) + bytes) ) throw new BufferOverflowException(); }
661662663664665666667668669670671
683684685686687688689690691692693