/***
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
File: IngestableReadBase.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]);
inline void SetPointer(void *pointer, AuUInt32 length);
template<typename T, typename Z>
inline AuUInt32 IngestForInPointer(const AuSPtr<IO::IStreamReader> &reader, T *&in, Z &inAlreadyAvailable, AuUInt32 amount);
private:
AuUInt8 *internalInBuffer_ {};
AuUInt32 internalInLength_ {};
};
}
#include "IngestableReadBase.inl"