public void copyTo( byte[] newBuf, int offset ) { int pos = offset; for ( int i = 0; i < m_lastChunk; i++ ) { if ( i == 0 && m_innerFSB != null ) m_innerFSB.copyTo( newBuf, pos ); else System.arraycopy( m_array[i], 0, newBuf, pos, m_chunkSize ); pos += m_chunkSize; } System.arraycopy( m_array[m_lastChunk], 0, newBuf, pos, m_firstFree ); }
public void copyTo(byte[] newBuf, int offset) { copyTo(newBuf, offset, size()); }
    public void copyTo( byte[] newBuf, int offset ) {        int pos = offset;        for ( int i = 0; i < m_lastChunk; i++ ) {            if ( i == 0 && m_innerFSB != null )                m_innerFSB.copyTo( newBuf, pos );            else                System.arraycopy( m_array[i], 0, newBuf,                    pos, m_chunkSize );            pos += m_chunkSize;        }        System.arraycopy( m_array[m_lastChunk], 0, newBuf, pos, m_firstFree );    }