- // translate 3-bytes binary integers into Real
- Byte* binarySerie = (Byte*) malloc(3 * valuesPerSerie);
- lengthRead = fread(binarySerie, 1, 3*valuesPerSerie, ifile);
- if (lengthRead != 3*valuesPerSerie)
- fprintf(stderr,"Warning: deserializing truncated binary file.\n");
+ // translate 4-bytes binary integers into Real
+ Byte* binarySerie = (Byte*) malloc(4 * valuesPerSerie);
+ lengthRead = fread(binarySerie, 1, 4*valuesPerSerie, ifile);
+ //TODO: assert that lengthRead == 4*valuesPerSerie (...)