public void readFloatArray(float vec[],int offset,int len) throws EOFException, FormatException {
  while (len > 0) {
    int floatsleft=bytesinbuffer / 4;
    if (floatsleft == 0) {
      assertSize(4);
      continue;
    }
    int reallyread=(len < floatsleft) ? len : floatsleft;
    int cursor=curptr;
    if (MSBFirst) {
      for (int i=0; i < reallyread; i++) {
        int floatasint=MoreMath.BuildIntegerBE(buffer,cursor);
        vec[offset++]=Float.intBitsToFloat(floatasint);
        cursor+=4;
      }
    }
 else {
      for (int i=0; i < reallyread; i++) {
        int floatasint=MoreMath.BuildIntegerLE(buffer,cursor);
        vec[offset++]=Float.intBitsToFloat(floatasint);
        cursor+=4;
      }
    }
    len-=reallyread;
    bytesinbuffer-=(4 * reallyread);
    curptr=cursor;
  }
}

public void readFloatArray ( float vec [ ] , int offset , int len ) throws EOFException , FormatException { while ( len > 0 ) { int floatsleft = bytesinbuffer / 4 ; if ( floatsleft == 0 ) { assertSize ( 4 ) ; continue ; } int reallyread = ( len < floatsleft ) ? len : floatsleft ; int cursor = curptr ; if ( MSBFirst ) { for ( int i = 0 ; i < reallyread ; i ++ ) { int floatasint = MoreMath . BuildIntegerBE ( buffer , cursor ) ; vec [ offset ++ ] = Float . intBitsToFloat ( floatasint ) ; cursor += 4 ; } } else { for ( int i = 0 ; i < reallyread ; i ++ ) { int floatasint = MoreMath . BuildIntegerLE ( buffer , cursor ) ; vec [ offset ++ ] = Float . intBitsToFloat ( floatasint ) ; cursor += 4 ; } } len -= reallyread ; bytesinbuffer -= ( 4 * reallyread ) ; curptr = cursor ; } }
reads an array of floats from the input .
