|
OXY API 1.0
OXY API Library Documentation
|
Functor to compute SHA-1 hashes for various input types. More...
#include <hash.hpp>
Public Member Functions | |
| auto | operator() (std::ifstream &in) const -> hash_t |
| Specialization for std::ifstream input type. | |
| template<> | |
| auto | operator() (std::istringstream const &in) const -> hash_t |
| Specialization for std::istringstream input type. | |
| auto | operator() (std::wifstream &in) const -> hash_t |
| Specialization for std::wifstream input type. | |
| template<> | |
| auto | operator() (std::wistringstream const &in) const -> hash_t |
| Specialization for std::wistringstream input type. | |
| template<typename T> | |
| auto | operator() (T const &in) const -> hash_t |
Functor to compute SHA-1 hashes for various input types.
This functor provides an operator() that takes different types of input (e.g., strings, streams) and returns the corresponding SHA-1 hash as a string. It is designed to be used in a constexpr context for compile-time evaluation of hashing operations.
|
inline |
Specialization for std::ifstream input type.
| in | - The input std::ifstream to be hashed. |
References operator()().
|
inline |
Specialization for std::istringstream input type.
| in | - The input std::istringstream to be hashed. |
References operator()().
|
inline |
Specialization for std::wifstream input type.
| in | - The input std::wifstream to be hashed. |
References operator()().
|
inline |
Specialization for std::wistringstream input type.
| in | - The input std::wistringstream to be hashed. |
References operator()().
|
inline |
| in | - The input data to be hashed (can be a string, stream, etc.). |
References oxy::hash, and oxy::to_string().
Referenced by operator()(), operator()(), operator()(), and operator()().