2015-01-24 01:24:37 +01:00
|
|
|
#pragma once
|
2015-10-15 13:09:21 +02:00
|
|
|
#ifndef MESSMER_BLOCKSTORE_UTILS_BLOCKSTOREUTILS_H_
|
|
|
|
#define MESSMER_BLOCKSTORE_UTILS_BLOCKSTOREUTILS_H_
|
2015-01-24 01:24:37 +01:00
|
|
|
|
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
|