AuroraRuntime/Include/Aurora/Hashing/HashStream.hpp

27 lines
576 B
C++
Raw Normal View History

2021-06-27 21:25:29 +00:00
/***
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:
/**
2021-09-06 10:58:08 +00:00
* Digest length of pBuf bytes
*/
virtual void Ingest(const void *pBuf, AuUInt32 length) = 0;
/**
* Locks and returns the internal buffer
*/
virtual AuUInt8 const* GetBytes(AuUInt32 &length) = 0;
2021-06-27 21:25:29 +00:00
};
AUKN_SHARED_API(HashStream, IHashStream, EHashType type);
}