Introduce DataNodeStore and refactor DataNode

This commit is contained in:
Sebastian Messmer 2014-12-13 17:43:02 +01:00
parent 3ab2302650
commit 1bbe0532dc
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;