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