mirror of
https://github.com/uroni/urbackup_backend.git
synced 2025-10-26 11:36:50 +00:00
26 lines
465 B
C++
26 lines
465 B
C++
#pragma once
|
|
|
|
#include <memory>
|
|
#include "../Interface/File.h"
|
|
#include "../Interface/Types.h"
|
|
#include "IFilesystem.h"
|
|
|
|
|
|
class ClientBitmap : public IReadOnlyBitmap
|
|
{
|
|
public:
|
|
ClientBitmap(std::string fn);
|
|
ClientBitmap(IFile* bitmap_file);
|
|
|
|
bool hasError();
|
|
|
|
int64 getBlocksize();
|
|
bool hasBlock(int64 block);
|
|
|
|
private:
|
|
void init(IFile* bitmap_file);
|
|
|
|
bool has_error;
|
|
unsigned int bitmap_blocksize;
|
|
std::vector<char> bitmap_data;
|
|
}; |