projects
/
libdcp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
We should not carry on if files don't open in tests.
[libdcp.git]
/
src
/
data.cc
diff --git
a/src/data.cc
b/src/data.cc
index 1971a261bb7c463f2999d4035a1d43be0137621d..aed8a4d2ef6eea25f419b4712f56d8fd283b0fb6 100644
(file)
--- a/
src/data.cc
+++ b/
src/data.cc
@@
-107,3
+107,9
@@
Data::write_via_temp (boost::filesystem::path temp, boost::filesystem::path fina
write (temp);
boost::filesystem::rename (temp, final);
}
+
+bool
+dcp::operator== (Data const & a, Data const & b)
+{
+ return (a.size() == b.size() && memcmp (a.data().get(), b.data().get(), a.size()) == 0);
+}