LeviLamina
Loading...
Searching...
No Matches
Hash.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/crypto/hash/HashType.h"
7#include "mc/deps/crypto/hash/IHash.h"
8
9// auto generated forward declare list
10// clang-format off
11namespace mce { class UUID; }
12// clang-format on
13
14namespace Crypto::Hash {
15
16class Hash : public ::Crypto::Hash::IHash {
17public:
18 // member variables
19 // NOLINTBEGIN
20 ::ll::TypedStorage<4, 4, ::Crypto::Hash::HashType> mHashType;
21 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::Crypto::Hash::IHash>> mHash;
22 // NOLINTEND
23
24public:
25 // prevent constructor by default
26 Hash();
27
28public:
29 // virtual functions
30 // NOLINTBEGIN
31 virtual ~Hash() /*override*/ = default;
32
33 virtual void reset() /*override*/;
34
35 virtual void update(void const* data, uint size) /*override*/;
36
37 virtual void final(uchar* result) /*override*/;
38
39 virtual uint64 resultSize() const /*override*/;
40 // NOLINTEND
41
42public:
43 // member functions
44 // NOLINTBEGIN
45 MCAPI explicit Hash(::Crypto::Hash::HashType type);
46
47 MCAPI ::std::string final();
48
49 MCAPI ::mce::UUID getUUID();
50 // NOLINTEND
51
52public:
53 // constructor thunks
54 // NOLINTBEGIN
55 MCAPI void* $ctor(::Crypto::Hash::HashType type);
56 // NOLINTEND
57
58public:
59 // virtual function thunks
60 // NOLINTBEGIN
61 MCAPI void $reset();
62
63 MCAPI void $update(void const* data, uint size);
64
65 MCAPI void $final(uchar* result);
66
67 MCAPI uint64 $resultSize() const;
68
69
70 // NOLINTEND
71
72public:
73 // vftables
74 // NOLINTBEGIN
75 MCNAPI static void** $vftable();
76 // NOLINTEND
77};
78
79} // namespace Crypto::Hash
static MCAPI void ** $vftable()
Definition IHash.h:7
Definition UUID.h:7