Changeset 16809 for trunk/FACT++/src
- Timestamp:
- 06/12/13 10:30:10 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/fitsCompressor.cc
r16806 r16809 459 459 { 460 460 char id[4]; 461 uint32_t numRows; 461 462 uint64_t size; 462 TileHeader( )463 TileHeader(uint32_t nRows=0, uint64_t s=0) 463 464 { 464 465 id[0]='T'; … … 466 467 id[2]='L'; 467 468 id[3]='E'; 468 size=0; 469 numRows=nRows; 470 size=s; 469 471 }; 470 472 } __attribute__((__packed__)) TileHeader; 473 474 typedef struct BlockHeader 475 { 476 uint64_t size; 477 char ordering; 478 unsigned char numProcs; 479 uint16_t procs[]; 480 } __attribute__((__packed__)) BlockHeader; 471 481 472 482 template<> … … 1285 1295 _catalog[currentCatalogRow][i].first = compressedOffset - _catalog[currentCatalogRow][i].second; 1286 1296 } 1287 memcpy(&(_compressedBuffer[threadIndex][4]), &compressedOffset, sizeof(uint64_t)); 1297 TileHeader tHead(thisRoundNumRows, compressedOffset); 1298 // tHead.numRows = thisRoundNumRows; 1299 // tHead.size = compressedOffset; 1300 memcpy(_compressedBuffer[threadIndex], &tHead, sizeof(TileHeader)); 1288 1301 return compressedOffset; 1289 1302 } … … 1939 1952 1940 1953 //close reconstruction input and output 1954 // Do NOT close the verify file, otherwise data cannot be flushed to copy file 1941 1955 // verifyFile.close(); 1942 1956 reconstructedFile.close();
Note:
See TracChangeset
for help on using the changeset viewer.