2015-01-24 01:24:37 +01:00
|
|
|
#pragma once
|
|
|
|
#ifndef BLOCKSTORE_UTILS_BLOCKSTOREUTILS_H_
|
|
|
|
#define BLOCKSTORE_UTILS_BLOCKSTOREUTILS_H_
|
|
|
|
|
2015-07-20 18:57:48 +02:00
|
|
|
#include <messmer/cpp-utils/pointer/unique_ref.h>
|
2015-01-24 01:24:37 +01:00
|
|
|
|
|
|
|
namespace blockstore {
|
|
|
|
class BlockStore;
|
|
|
|
class Block;
|
|
|
|
namespace utils {
|
|
|
|
|
2015-07-20 18:57:48 +02:00
|
|
|
cpputils::unique_ref<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
|