Files
backup/src/chunkers/includes/ConstChunker.h
2023-06-08 23:57:43 +02:00

25 lines
575 B
C++

//
// 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