void writeTo(byte[] b,int off){
  System.arraycopy(buf,0,b,off,count);
}

void writeTo ( byte [ ] b , int off ) { System . arraycopy ( buf , 0 , b , off , count ) ; }
writes the contents of the internal buffer to the given array starting at the given offset . assumes the array has space to hold count bytes .
