FACT++
1.0
Main Page
Related Pages
Namespaces
Classes
Files
Examples
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
}
fits::Table::total_bytes
size_t total_bytes
Definition:
fits.h:99
fits::Table::GetHeapShift
streamoff GetHeapShift() const
Definition:
fits.h:454
size
int size
Definition:
db_dim_server.c:17
fits::Table::HasKey
bool HasKey(const std::string &key) const
Definition:
fits.h:397
Here is the caller graph for this function:
fits
Table
Generated on Sun Sep 18 2016 20:50:52 for FACT++ by
1.8.11