libcryfs/impl/FileBlob.h

29 lines
519 B
C
Raw Normal View History

#pragma once
#ifndef CRYFS_LIB_IMPL_FILEBLOB_H_
#define CRYFS_LIB_IMPL_FILEBLOB_H_
#include <messmer/blobstore/interface/Blob.h>
#include <memory>
namespace cryfs {
class FileBlob {
public:
FileBlob(std::unique_ptr<blobstore::Blob> blob);
virtual ~FileBlob();
static bool IsFile(const blobstore::Blob &blob);
void InitializeEmptyFile();
private:
std::unique_ptr<blobstore::Blob> _blob;
unsigned char magicNumber() const;
static unsigned char magicNumber(const blobstore::Blob &blob);
};
}
#endif