public void putBytes ( int pos , byte ... bs ) { adaptSize ( pos + bs . length ) ; ByteBuffer bb = null ; int i = _bufferSize ; for ( byte b : bs ) { if ( i == _bufferSize ) { bb = getBuffer ( pos ) ; i = pos % _bufferSize ; } bb . put ( i , b ) ; ++ i ; ++ pos ; } }
Puts several bytes into the buffer at the given position . Does not increase the write position .