mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-22 17:15:46 +00:00
25 lines
888 B
C++
25 lines
888 B
C++
#pragma once
|
|
#include <memory>
|
|
|
|
#include "Crypto.h"
|
|
#include "Loading/StreamProcessor.h"
|
|
#include "Loading/IHashProvider.h"
|
|
|
|
class ProcessorAuthedBlocks final : public StreamProcessor
|
|
{
|
|
class Impl;
|
|
Impl* m_impl;
|
|
|
|
public:
|
|
ProcessorAuthedBlocks(unsigned authedChunkCount, size_t chunkSize, unsigned maxMasterBlockCount,
|
|
std::unique_ptr<IHashFunction> hashFunction, IHashProvider* masterBlockHashProvider);
|
|
~ProcessorAuthedBlocks() override;
|
|
ProcessorAuthedBlocks(const ProcessorAuthedBlocks& other) = delete;
|
|
ProcessorAuthedBlocks(ProcessorAuthedBlocks&& other) noexcept = default;
|
|
ProcessorAuthedBlocks& operator=(const ProcessorAuthedBlocks& other) = delete;
|
|
ProcessorAuthedBlocks& operator=(ProcessorAuthedBlocks&& other) noexcept = default;
|
|
|
|
size_t Load(void* buffer, size_t length) override;
|
|
int64_t Pos() override;
|
|
};
|