Go to the documentation of this file.
28 #ifndef CASA_BUCKETBUFFERED_H
29 #define CASA_BUCKETBUFFERED_H
32 #include <casacore/casa/aips.h>
33 #include <casacore/casa/IO/BucketBase.h>
void read(uInt bucketNr, uInt bucketOffset, uInt nbytes, uInt bufferOffset=0)
Read the given part into the internal buffer at the given offset.
void write(uInt bucketNr, uInt bucketOffset, uInt nbytes)
Write the given part from the internal buffer.
virtual void doResync()
Do the actual resync-ing.
char * getBuffer()
Get a pointer to the buffer.
virtual ~BucketBuffered()
this file contains all the compiler specific defines
virtual void initializeBuckets(uInt bucketNr)
Initialize the bucket buffer.
virtual void doExtend(uInt nrBucket)
Extend the file with the given number of buckets.
long long Int64
Define the extra non-standard types used by Casacore (like proposed uSize, Size)
char * itsBuffer
Data buffer.
BucketBuffered(const BucketBuffered &)
Copy constructor is not possible.
BucketBuffered & operator=(const BucketBuffered &)
Assignment is not possible.
BucketBuffered(BucketFile *file, Int64 startOffset, uInt bucketSize, uInt nrOfBuckets)
Create the object for (part of) a file.
virtual void doFlush()
Flush the file.