34 lines
528 B
C++
34 lines
528 B
C++
#include "BlobOnBlocks.h"
|
|
|
|
#include "datatreestore/DataTree.h"
|
|
|
|
using std::unique_ptr;
|
|
|
|
namespace blobstore {
|
|
namespace onblocks {
|
|
|
|
using datatreestore::DataTree;
|
|
|
|
BlobOnBlocks::BlobOnBlocks(unique_ptr<DataTree> datatree)
|
|
: _datatree(std::move(datatree)) {
|
|
|
|
}
|
|
|
|
BlobOnBlocks::~BlobOnBlocks() {
|
|
}
|
|
|
|
uint64_t BlobOnBlocks::size() const {
|
|
return _datatree->numStoredBytes();
|
|
}
|
|
|
|
void BlobOnBlocks::resize(uint64_t numBytes) {
|
|
_datatree->resizeNumBytes(numBytes);
|
|
}
|
|
|
|
void BlobOnBlocks::flush() const {
|
|
_datatree->flush();
|
|
}
|
|
|
|
}
|
|
}
|