LeviLamina
Loading...
Searching...
No Matches
XXHash.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5namespace Util {
6
7class XXHash {
8public:
9 // XXHash inner types declare
10 // clang-format off
11 struct State;
12 // clang-format on
13
14 // XXHash inner types define
15 struct State {
16 public:
17 // member variables
18 // NOLINTBEGIN
20 // NOLINTEND
21
22 public:
23 // prevent constructor by default
24 State& operator=(State const&);
25 State(State const&);
26 State();
27 };
28
29public:
30 // member variables
31 // NOLINTBEGIN
33 // NOLINTEND
34
35public:
36 // prevent constructor by default
37 XXHash& operator=(XXHash const&);
38 XXHash(XXHash const&);
39 XXHash();
40
41public:
42 // member functions
43 // NOLINTBEGIN
44 MCNAPI explicit XXHash(uint64 seed);
45
46 MCNAPI void _updateImpl(void const* input, uint64 length);
47
48 MCNAPI uint64 digest();
49
50 MCNAPI void update(uchar);
51
52 MCNAPI void update(int data);
53
54 MCNAPI void update(uint data);
55
56 MCNAPI void update(float data);
57
58 MCNAPI void update(bool data);
59
60 MCNAPI ~XXHash();
61 // NOLINTEND
62
63public:
64 // static functions
65 // NOLINTBEGIN
66 MCNAPI static uint64 _hash64Impl(void const* input, uint64 len, uint64 seed);
67 // NOLINTEND
68
69public:
70 // constructor thunks
71 // NOLINTBEGIN
72 MCNAPI void* $ctor(uint64 seed);
73 // NOLINTEND
74
75public:
76 // destructor thunk
77 // NOLINTBEGIN
78 MCNAPI void $dtor();
79 // NOLINTEND
80};
81
82} // namespace Util
MCAPI void _updateImpl(void const *input, uint64 length)
MCAPI void update(uchar)
MCAPI void update(uint data)
MCAPI ~XXHash()
MCAPI void update(int data)
MCAPI void update(float data)
MCAPI void $dtor()
MCAPI void * $ctor(uint64 seed)
static MCAPI uint64 _hash64Impl(void const *input, uint64 len, uint64 seed)
MCAPI uint64 digest()
MCAPI XXHash(uint64 seed)
MCAPI void update(bool data)
Definition XXHash.h:15
Definition Alias.h:14