2015-01-24 01:24:37 +01:00
|
|
|
#pragma once
|
|
|
|
#ifndef BLOCKSTORE_UTILS_BLOCKSTOREUTILS_H_
|
|
|
|
#define BLOCKSTORE_UTILS_BLOCKSTOREUTILS_H_
|
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
|
|
|
|
namespace blockstore {
|
|
|
|
class BlockStore;
|
|
|
|
class Block;
|
|
|
|
namespace utils {
|
|
|
|
|
2015-01-24 22:27:14 +01:00
|
|
|
std::unique_ptr<Block> copyToNewBlock(BlockStore *blockStore, const Block &block);
|
2015-02-22 19:29:30 +01:00
|
|
|
void copyTo(Block *target, const Block &source);
|
2015-03-04 20:47:02 +01:00
|
|
|
void fillWithZeroes(Block *target);
|
|
|
|
|
2015-01-24 01:24:37 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|