int kBlockSize
Bytes of one block, the unit the block manager reads from the archive.
int gCurrBuffNum
Number of block buffers taken.
const int kSectorSize
Bytes of one disc sector.
Definition Block.h:7
const int kNumBlockBuffers
Number of block buffers.
Definition Block.h:4
int gBlockTimestamp
Latest block timestamp.
One block buffer of the disc cache.
Definition blockmgr.h:15
Block()
Take the next free block buffer and mark the block as just used.
static int NextBufferIndex()
Take the index of the next free block buffer.
void UpdateTimestamp()
Mark the block as just used.
static int CurrentTimestamp()
Report the latest timestamp.