diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-11-09 09:44:08 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-08-18 23:25:46 +0200 |
commit | d5614b905be6d76803330c182930fc6f0f12a7c2 (patch) | |
tree | ea69e119eb580b57a879baacd4c981c25c37dc0a /src/DataView.cpp | |
parent | 5f587967c4cbca02982d010c148947f19ff68e8e (diff) |
Append user to group if user already exists instead of throwing
Diffstat (limited to 'src/DataView.cpp')
-rw-r--r-- | src/DataView.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/DataView.cpp b/src/DataView.cpp index a5232f3..f94b2d8 100644 --- a/src/DataView.cpp +++ b/src/DataView.cpp @@ -1,5 +1,6 @@ #include "../include/odhtdb/DataView.hpp" -#include <cstring> +#include "../include/odhtdb/bin2hex.hpp" +#include <string.h> namespace odhtdb { @@ -12,4 +13,9 @@ namespace odhtdb { return !operator==(other); } + + std::string DataView::toString() const + { + return bin2hex((const char*)data, size); + } } |