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