 |
ewmscp
..
|
Go to the documentation of this file.
14 explicit block(
size_t aBlockSize);
34 bytes += additionalBytes;
size_t startOffset
offset in the file that is represented by this block
static const void * nullBuffer()
size_t bytes
number of bytes actually stored here
void bump_size(size_t additionalBytes)
size_t blockSize
capacity of the block
void setHoleState(bool holeState)
void * bufferAt(size_t offset)
only way to access the data in the block
data block, used to hold the data that are being copied (or checksummed).
static size_t nullBufferSize()
void clear(size_t aOffset)
bool hole
represents a hole in the file with bytes bytes.
block(size_t aBlockSize)
Allocate block via mmap to ensure proper alignment along page borders, needed for efficient read/writ...