#include "../include/odhtdb/DataView.hpp" #include "../include/odhtdb/bin2hex.hpp" #include namespace odhtdb { bool DataView::operator == (const DataView &other) const { return size == other.size && memcmp(data, other.data, size) == 0; } bool DataView::operator != (const DataView &other) const { return !operator==(other); } std::string DataView::toString() const { return bin2hex((const char*)data, size); } }