blob: f94b2d81c9689e3b63eeffb1a4a65cea24f76e4b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#include "../include/odhtdb/DataView.hpp"
#include "../include/odhtdb/bin2hex.hpp"
#include <string.h>
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);
}
}
|