public void toCharArray(char[] b,int offset,int length){
  if (buffer.length == 0)   return;
  int t=Math.min(length,len);
  int toEnd=Math.min(t,buffer.length - start);
  System.arraycopy(buffer,start,b,offset,toEnd);
  if (toEnd < t)   System.arraycopy(buffer,0,b,offset + toEnd,t - toEnd);
}

public void toCharArray ( char [ ] b , int offset , int length ) { if ( buffer . length == 0 ) return ; int t = Math . min ( length , len ) ; int toEnd = Math . min ( t , buffer . length - start ) ; System . arraycopy ( buffer , start , b , offset , toEnd ) ; if ( toEnd < t ) System . arraycopy ( buffer , 0 , b , offset + toEnd , t - toEnd ) ; }
copies the content of the buffer to an array .
