public ByteStringBuilder ensureAdditionalCapacity(final int size){
  final int newCount=this.length + size;
  if (newCount > buffer.length) {
    final byte[] newbuffer=new byte[Math.max(buffer.length << 1,newCount)];
    System.arraycopy(buffer,0,newbuffer,0,buffer.length);
    buffer=newbuffer;
  }
  return this;
}

public ByteStringBuilder ensureAdditionalCapacity ( final int size ) { final int newCount = this . length + size ; if ( newCount > buffer . length ) { final byte [ ] newbuffer = new byte [ Math . max ( buffer . length << 1 , newCount ) ] ; System . arraycopy ( buffer , 0 , newbuffer , 0 , buffer . length ) ; buffer = newbuffer ; } return this ; }
ensures that the specified number of additional bytes will fit in this byte string builder and resizes it if necessary .
