AuroraRuntime/Source/Compression/IngestableReadBase.hpp
Reece Wilson 8844e8fe64 [+] AuCrypto::BCrypt
> GetForcedMinRounds
> GenSalt
> HashPW
> HashPWEx
> CheckPassword
> CheckPasswordEx
[*] Refactor AuCompression APIs
[*] Clean up AuTryConstructs
[+] Internal compression API for compression based interceptors
[+] Root-level input stream arg check for all compression apis (harden)
[*] Clean up AuCompression code
[+] Solar Designer / OpenWall blowfish crypt
[*] BlowCrypt: accept length input parameter
[*] Split locale into 2 source files
[-] Ugly comment from Open.Win32.cpp. TODO: Readd later. Might warn on empty string bc it makes sense given, "." and "/" normalizes to nothing, and memory pre-idc-if-drops are dropped siliently.
2022-09-15 20:48:50 +01:00

29 lines
713 B
C++

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