Ignore:
Timestamp:
03/22/12 19:28:14 (13 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: No

Ready for Test: Yes

Interface Changes: No

What Interface Changed:

Test Programs: sdsave unit test

Put in Release Notes: No

Module(s): Module Names change impacts.

Description: Describe your changes here...

reduced number of call of fseek.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/external-alma/atnf/PKSIO/NROFITSDataset.cc

    r2440 r2441  
    23592359int NROFITSDataset::movePointer( char *name, int idx )
    23602360{
    2361   // skip header
    2362   fseek( fp_, FITS_HEADER_SIZE, SEEK_SET ) ;
    2363 
    23642361  // find offset
    23652362  int offset = getOffset( name ) ;
     
    23722369
    23732370  //cout << "offset for " << name << " is " << offset << " bytes." << endl ;
    2374   fseek( fp_, offset, SEEK_CUR ) ;
     2371  fseek( fp_, FITS_HEADER_SIZE+offset, SEEK_SET ) ;
    23752372
    23762373  return 0 ;
Note: See TracChangeset for help on using the changeset viewer.