summaryrefslogtreecommitdiffstats
path: root/source/core
diff options
context:
space:
mode:
authorlucy96chen <47800040+lucy96chen@users.noreply.github.com>2022-10-12 14:41:22 -0700
committerGitHub <noreply@github.com>2022-10-12 14:41:22 -0700
commit53b180a9383668246a152af41aec8f6e565904a4 (patch)
treec034dc6584dd7dd7b5451d9fd8b3972e6b5d0106 /source/core
parentf0cd62b37c5dfbbdb3fb205f1be2b8beba0dfed4 (diff)
Add specialization args test (#2444)
* Added specialization args test; small cleanup changes to slang-digest.h * Moved slang::Digest inside namespace Slang
Diffstat (limited to 'source/core')
-rw-r--r--source/core/slang-digest.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/source/core/slang-digest.h b/source/core/slang-digest.h
index d1bc80b40..47c0cd8f7 100644
--- a/source/core/slang-digest.h
+++ b/source/core/slang-digest.h
@@ -4,6 +4,8 @@
namespace Slang
{
+ using slang::Digest;
+
// Wrapper struct that holds objects necessary for hashing.
struct DigestBuilder
{
@@ -19,9 +21,11 @@ namespace Slang
hashGen.update(&context, item);
}
- void finalize(slang::Digest* outHash)
+ Digest finalize()
{
- hashGen.finalize(&context, outHash);
+ Digest hash;
+ hashGen.finalize(&context, &hash);
+ return hash;
}
private: