28 #define BlockSize (1 << 12) 29 #define ENTRIES ((BlockSize - sizeof(size_t) ) / sizeof(unsigned char)) size_t append(Block *block)
adds the Block at the end of history.
size_t getCurrent() const
BlockArray()
Creates a history file for holding maximal size blocks.
bool has(size_t index) const
bool setHistorySize(size_t newsize)
reorders blocks as needed.
bool setSize(size_t newsize)
Convenient function to set the size in KBytes instead of blocks.
unsigned char data[(((1<< 12) - sizeof(size_t))/sizeof(unsigned char))]
void decreaseBuffer(size_t newsize)
Block * lastBlock() const
const Block * at(size_t index)
gets the block at the index.