载入中...
搜索中...
未找到
HashFunction.h
浏览该文件的文档.
1
2
3#pragma once
4#include "common/Export.h"
5
6
7#include "common/Data.h"
8#include <cstdint>
9#include <string>
10
11namespace eve
12{
13namespace data
14{
15
18public:
19
21 struct Value
22 {
23 char data[64]; // Maximum possible size (SHA512).
24 size_t size;
25 };
26
42 static HashFunction *getHashFunction(std::string function);
43
44 virtual ~HashFunction() {}
45
54 virtual void hash(std::string function, const char *input, uint64_t length, Value &output) const = 0;
55
60 virtual bool isSupported(std::string function) const = 0;
61
62protected:
63
66
67}; // HashFunction
68
69} // data
70} // eve
std::string output
float length
Definition CaveMesh.cpp:94
EvpackChunkInput input
Definition Evpack.cpp:170
#define EVENGINE_API_FOUNDATION
每个链接组(link group)各自的导出宏。
Definition Export.h:106
MigrationFunction function
EVENGINE_API_FOUNDATION public API.
virtual bool isSupported(std::string function) const =0
HashFunction()
Hash function.
virtual void hash(std::string function, const char *input, uint64_t length, Value &output) const =0
Hash the input, producing an set of bytes as output.
Build metadata (engine git commit, build time, third-party version).
Definition Build.cpp:16