28 #ifndef CASA_BUCKETBUFFERED_H
29 #define CASA_BUCKETBUFFERED_H
File object for BucketCache.
virtual void doResync()
Do the actual resync-ing.
long long Int64
Define the extra non-standard types used by Casacore (like proposed uSize, Size)
virtual void doExtend(uInt nrBucket)
Extend the file with the given number of buckets.
virtual void doFlush()
Flush the file.
void read(uInt bucketNr, uInt bucketOffset, uInt nbytes, uInt bufferOffset=0)
Read the given part into the internal buffer at the given offset.
char * getBuffer()
Get a pointer to the buffer.
Use buffered file IO for buckets in a part of a file.
virtual ~BucketBuffered()
virtual void initializeBuckets(uInt bucketNr)
Initialize the bucket buffer.
BucketBuffered & operator=(const BucketBuffered &)
Assignment is not possible.
void write(uInt bucketNr, uInt bucketOffset, uInt nbytes)
Write the given part from the internal buffer.
BucketBuffered(BucketFile *file, Int64 startOffset, uInt bucketSize, uInt nrOfBuckets)
Create the object for (part of) a file.
Abstract base class for Bucket classes.
char * itsBuffer
Data buffer.