AuroraRuntime/Include/Aurora/Hashing/HashStream.hpp
2021-09-06 11:58:08 +01:00

27 lines
575 B
C++

/***
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 void *pBuf, AuUInt32 length) = 0;
/**
* Locks and returns the internal buffer
*/
virtual AuUInt8 const* GetBytes(AuUInt32 &length) = 0;
};
AUKN_SHARED_API(HashStream, IHashStream, EHashType type);
}