mirror of
https://github.com/usatiuk/backup.git
synced 2025-10-26 17:37:47 +01:00
proper cmake
This commit is contained in:
24
src/chunkers/includes/ConstChunker.h
Normal file
24
src/chunkers/includes/ConstChunker.h
Normal file
@@ -0,0 +1,24 @@
|
||||
//
|
||||
// Created by Stepan Usatiuk on 15.04.2023.
|
||||
//
|
||||
|
||||
#ifndef SEMBACKUP_CONSTCHUNKER_H
|
||||
#define SEMBACKUP_CONSTCHUNKER_H
|
||||
|
||||
#include <streambuf>
|
||||
|
||||
#include "Chunker.h"
|
||||
|
||||
/// Chunker implementation that splits the file into equally-sized chunks of maxBytes bytes
|
||||
class ConstChunker : public Chunker {
|
||||
public:
|
||||
/// Constructs a ConstChunker
|
||||
/// \copydoc Chunker::Chunker
|
||||
ConstChunker(std::streambuf *buf, unsigned long long maxBytes);
|
||||
|
||||
/// \copydoc Chunker::getNext
|
||||
std::pair<std::string, std::vector<char>> getNext() override;
|
||||
};
|
||||
|
||||
|
||||
#endif//SEMBACKUP_CONSTCHUNKER_H
|
||||
Reference in New Issue
Block a user