27 lines
575 B
C++
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);
|
|
} |