AuroraRuntime/Source/IO/AuIOAdapterCompression.hpp
Reece 4e6f116925 [*] Refactor
[+] IProcessSectionView::GetStart
[+] IProcessSectionView::GetEnd
2022-12-17 20:14:19 +00:00

38 lines
1.1 KiB
C++

/***
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
File: AuIOAdapterCompression.hpp
Date: 2022-6-6
Author: Reece
***/
#pragma once
namespace Aurora::IO
{
struct CompressionStreamReader : IStreamReader
{
AuSPtr<Compression::ICompressionStream> pCompressionStream;
CompressionStreamReader(const AuSPtr<Compression::ICompressionStream> &compressionStream);
EStreamError IsOpen() override;
EStreamError Read(const Memory::MemoryViewStreamWrite &parameters) override;
void Close() override;
bool bErrored_ {};
};
struct CompressionSeekingReader : ISeekingReader
{
AuSPtr<Compression::ICompressionStream> pCompressionStream;
CompressionSeekingReader(const AuSPtr<Compression::ICompressionStream> &compressionStream);
EStreamError IsOpen() override;
EStreamError ArbitraryRead(AuUInt offset, const Memory::MemoryViewStreamWrite &parameters) override;
void Close() override;
bool bErrored_ {};
AuUInt uOffset {};
};
}