From cee6aeed77341a93cbd7036e28f9c973e04502be Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Tue, 2 Aug 2022 15:37:09 +0200 Subject: [PATCH] enhance: Make Hash::add_debug_text public --- src/Hash.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Hash.hpp b/src/Hash.hpp index 968e55814..269026e37 100644 --- a/src/Hash.hpp +++ b/src/Hash.hpp @@ -1,4 +1,4 @@ -// Copyright (C) 2020-2021 Joel Rosdahl and other contributors +// Copyright (C) 2020-2022 Joel Rosdahl and other contributors // // See doc/AUTHORS.adoc for a complete list of contributors. // @@ -96,11 +96,13 @@ public: // Returns true on success, otherwise false. bool hash_file(const std::string& path); + // Add `text` to the text debug file. + void add_debug_text(std::string_view text); + private: blake3_hasher m_hasher; FILE* m_debug_binary = nullptr; FILE* m_debug_text = nullptr; void hash_buffer(std::string_view buffer); - void add_debug_text(std::string_view text); }; -- 2.47.2