#include <FileMemSegments.h>
Mapping between an in-file (FITS binary table data unit) segment and an in-memory (column) segment for reading and writing bintable segments.
Public Member Functions | |
FileMemSegments (const Segment &fileSegment, long memoryIndex=0) | |
Create a mapping from an in-file segment and an in-memory position. | |
FileMemSegments (long fileIndex, const Segment &memorySegment=Segment::whole()) | |
Create a mapping from an in-file position and an in-file segment. | |
const Segment & | file () const |
Get the in-file segment. | |
const Segment & | memory () const |
Get the in-memory segment. | |
long | size () const |
Get the common segment size. | |
void | resolve (long fileBack, long memoryBack) |
Resolve the unknown (-1) indices, given known in-file and in-memory back indices. | |
long | fileToMemory () const |
Compute the index offset from in-file segment to in-memory segment. | |
long | memoryToFile () const |
Compute the index offset from in-memory segment to in-file segment. | |