/*** Copyright (C) 2021 J Reece Wilson (a/k/a "Reece"). All rights reserved. File: HashStream.hpp Date: 2021-6-10 Author: Reece ***/ #pragma once namespace Aurora::Hashing { class IHashStream { public: /** * Digest length of pBuf bytes */ virtual void Ingest(const Memory::MemoryViewRead &input) = 0; /** * Locks and returns the internal buffer */ virtual AuUInt8 const* GetBytes(AuUInt32 &length) = 0; }; AUKN_SHARED_API(HashStream, IHashStream, EHashType type); }