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