protected void ensureCapacity ( ) { if ( _buffer . remaining ( ) < 8 ) { ByteBuffer b = ByteBuffer . allocate ( _buffer . capacity ( ) << 1 ) ; _buffer . flip ( ) ; b . put ( _buffer ) ; _buffer = b ; } }
Ensure that the internal backing buffer has enough capacity for a new pair of index and offset .