IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 26, 2015, 4:29:20 PM (11 years ago)
Author:
eugene
Message:

updating compression functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ohana.20150429/src/libfits/table/F_table_varlength.c

    r38324 r38326  
    123123// Here are operations we need to do:
    124124
    125 int gfits_varlength_column_add_data (FTable *table, char *data, off_t Ndata, int row) {
     125int gfits_varlength_column_add_data (FTable *table, char *data, off_t Ndata, int row, VarLengthColumn *column) {
    126126
    127127  // find the current starting point for new data (end of current buffer main data + current heap
     
    161161  column->maxlen = MAX (column->maxlen, Ndata);
    162162
     163  off_t pcount;
     164  gfits_scan (ftable->header, "PCOUNT", OFF_T_FMT, 1, &pcount);
     165
     166  pcount += Ndata;
     167  gfits_modify (header, "PCOUNT", OFF_T_FMT, 1, pcount);
     168
    163169  return TRUE;
    164170}
Note: See TracChangeset for help on using the changeset viewer.