|
OXY API 1.0
OXY API Library Documentation
|
Function object to compute SHA-1 checksums of files and streams. More...
#include <sha1sum.hpp>
Public Member Functions | |
| auto | operator() (std::FILE *file, const size_t chunk_size) const |
| auto | operator() (std::filesystem::path const &path, const size_t chunk_size) const |
Function object to compute SHA-1 checksums of files and streams.
|
inline |
| file | A pointer to a C-style FILE object representing the input stream. |
| chunk_size | The size of the buffer to use for reading the file in chunks. |
References oxy::hash, and oxy::to_string().
Referenced by operator()().
|
inline |
| path | A filesystem path representing the file to compute the checksum for. |
| chunk_size | The size of the buffer to use for reading the file in chunks. |
References operator()().