private void expand(int i){
  if (count + i <= buf.length) {
    return;
  }
  byte[] newbuf=mPool.getBuf((count + i) * 2);
  System.arraycopy(buf,0,newbuf,0,count);
  mPool.returnBuf(buf);
  buf=newbuf;
}

private void expand ( int i ) { if ( count + i <= buf . length ) { return ; } byte [ ] newbuf = mPool . getBuf ( ( count + i ) * 2 ) ; System . arraycopy ( buf , 0 , newbuf , 0 , count ) ; mPool . returnBuf ( buf ) ; buf = newbuf ; }
ensures there is enough space in the buffer for the given number of additional bytes .
