Introduce DataNodeStore and refactor DataNode
This commit is contained in:
parent
3ab2302650
commit
1bbe0532dc
@ -69,7 +69,7 @@ void Key::ToBinary(void *target) const {
|
||||
std::memcpy(target, _key, KEYLENGTH_BINARY);
|
||||
}
|
||||
|
||||
Key Key::FromBinary(void *source) {
|
||||
Key Key::FromBinary(const void *source) {
|
||||
Key result;
|
||||
std::memcpy(result._key, source, KEYLENGTH_BINARY);
|
||||
return result;
|
||||
|
@ -20,7 +20,7 @@ public:
|
||||
static Key FromString(const std::string &key);
|
||||
std::string ToString() const;
|
||||
|
||||
static Key FromBinary(void *source);
|
||||
static Key FromBinary(const void *source);
|
||||
void ToBinary(void *target) const;
|
||||
|
||||
const unsigned char *data() const;
|
||||
|
Loading…
Reference in New Issue
Block a user