Joedb 9.1.4
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
File_Hasher.h
Go to the documentation of this file.
1#ifndef joedb_File_Hasher_declared
2#define joedb_File_Hasher_declared
3
5
6#include <string>
7
8namespace joedb
9{
10 class Buffered_File;
11
12 /// @ingroup journal
14 {
15 public:
17 (
18 Buffered_File &file,
19 int64_t start,
20 int64_t size
21 );
22
24 static SHA_256::Hash get_hash(const std::string &s);
25
27 (
28 Buffered_File &file,
29 int64_t start,
30 int64_t size
31 );
32 };
33
34 class Readonly_Journal;
35
36 /// @ingroup journal
38 {
39 public:
41 (
42 const Readonly_Journal &journal,
43 int64_t checkpoint
44 );
45 };
46}
47
48#endif
static SHA_256::Hash get_fast_hash(Buffered_File &file, int64_t start, int64_t size)
static SHA_256::Hash get_hash(Buffered_File &file, int64_t start, int64_t size)
static SHA_256::Hash get_hash(const Readonly_Journal &journal, int64_t checkpoint)
std::array< uint32_t, 8 > Hash
Definition SHA_256.h:60
Definition Blob.h:7