From: Joel Rosdahl Date: Tue, 2 Aug 2022 13:37:09 +0000 (+0200) Subject: enhance: Make Hash::add_debug_text public X-Git-Tag: v4.7~130 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cee6aeed77341a93cbd7036e28f9c973e04502be;p=thirdparty%2Fccache.git enhance: Make Hash::add_debug_text public --- 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); };