BufferOverflowException
12641265126612671268126912701271127212731274
int oldLimit = limit(); int end = position() + fieldSize; if( oldLimit < end ) { throw new BufferOverflowException(); } if( val.length() == 0 ) { if( !utf16 )
109110111112113114115116
@Override public void put( byte b ) throws BufferOverflowException { if (nextPut >= size) throw new BufferOverflowException(); buffer[nextPut++] = b; }
8182838485868788899091
@Override public void put( byte b ) throws BufferOverflowException { if (isFull()) throw new BufferOverflowException(); length++; buf[nextPut++] = b; if (nextPut >= size) nextPut = 0;
16261627162816291630163116321633163416351636
int oldLimit = limit(); int end = position() + fieldSize; if (oldLimit < end) { throw new BufferOverflowException(); } if (val.length() == 0) { if (!utf16) { put((byte) 0x00);
11721173117411751176117711781179118011811182
222223224225226227228229230231
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; }
230231232233234235236237238239
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; }
18461847184818491850185118521853185418551856
1800180118021803180418051806180718081809
dataPos = dataStart; } 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; }