AuroraRuntime/Source/Compression/AuIngestableReadBase.hpp

33 lines
918 B
C++

/***
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
File: AuIngestableReadBase.hpp
Date: 2022-2-14
Author: Reece
***/
#pragma once
namespace Aurora::Compression
{
struct IngestableReadBase
{
protected:
template<typename T, AuUInt Z>
inline void SetArray(T(&array)[Z]);
template<typename T, AuUInt Z>
inline void SetOutArray(T(&array)[Z]);
inline void SetPointer(void *pointer, AuUInt32 dwLength);
template<typename T, typename Z>
inline AuUInt32 IngestForInPointer(const AuSPtr<IO::IStreamReader> &reader, T *&in, Z &inAlreadyAvailable, AuUInt32 dwAmount, struct BaseStream *pThat);
protected:
AuUInt8 *internalInBuffer_ {};
AuUInt32 internalInLength_ {};
AuUInt8 *internalOutBuffer_ {};
AuUInt32 internalOutLength_ {};
bool bIsSpecialNotZlibLike {};
};
}