FACT++  1.0
streamoff fits::Table::GetTotalBytes ( ) const
inline

Definition at line 464 of file fits.h.

References size.

Referenced by fits::Constructor().

465  {
466  //get offset of special data area from start of main table
467  const streamoff shift = GetHeapShift();
468 
469  //and special data area size
470  const streamoff size = HasKey("PCOUNT") ? Get<streamoff>("PCOUNT") : 0;
471 
472  // Get the total size
473  const streamoff total = total_bytes + size + shift;
474 
475  // check for padding
476  if (total%2880==0)
477  return total;
478 
479  // padding necessary
480  return total + (2880 - (total%2880));
481  }
size_t total_bytes
Definition: fits.h:99
streamoff GetHeapShift() const
Definition: fits.h:454
int size
Definition: db_dim_server.c:17
bool HasKey(const std::string &key) const
Definition: fits.h:397

+ Here is the caller graph for this function: