X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fencoded_data.cc;h=1b1926017993c5da335e6cada7211394c47b86ac;hb=3f3727634b98ce2761a193b9d1e3fc14f51dcbd2;hp=fffc4d91f0b51d5c016d6a4e6f472a09d471b35f;hpb=73f52e94953848c696725defd3d7f5c4c30707e2;p=dcpomatic.git diff --git a/src/lib/encoded_data.cc b/src/lib/encoded_data.cc index fffc4d91f..1b1926017 100644 --- a/src/lib/encoded_data.cc +++ b/src/lib/encoded_data.cc @@ -21,6 +21,7 @@ #include "cross.h" #include "exceptions.h" #include "film.h" +#include "dcpomatic_socket.h" #include "i18n.h" @@ -33,6 +34,13 @@ EncodedData::EncodedData (int s) } +EncodedData::EncodedData (uint8_t const * d, int s) + : _data (new uint8_t[s]) + , _size (s) +{ + memcpy (_data, d, s); +} + EncodedData::EncodedData (boost::filesystem::path file) { _size = boost::filesystem::file_size (file);