protected ByteBuffer getBuffer ( int position ) { int n = position / _bufferSize ; while ( n >= _buffers . size ( ) ) { addNewBuffer ( ) ; } return _buffers . get ( n ) ; }
Gets the buffer that holds the byte at the given absolute position . Automatically adds new internal buffers if the position lies outside the current range of all internal buffers .