summaryrefslogtreecommitdiff
path: root/src/array_data.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/array_data.h')
-rw-r--r--src/array_data.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/array_data.h b/src/array_data.h
index 06ccec27..09cfd09d 100644
--- a/src/array_data.h
+++ b/src/array_data.h
@@ -34,13 +34,16 @@
#ifndef LIBDCP_ARRAY_DATA_H
#define LIBDCP_ARRAY_DATA_H
+
+#include "data.h"
#include <boost/shared_array.hpp>
#include <boost/filesystem.hpp>
#include <stdint.h>
namespace dcp {
-class ArrayData
+
+class ArrayData : public Data
{
public:
ArrayData ();
@@ -51,11 +54,12 @@ public:
virtual ~ArrayData () {}
- void write (boost::filesystem::path file) const;
- void write_via_temp (boost::filesystem::path temp, boost::filesystem::path final) const;
+ uint8_t const * data () const {
+ return _data.get();
+ }
- boost::shared_array<uint8_t> data () const {
- return _data;
+ uint8_t * data () {
+ return _data.get();
}
int size () const {
@@ -72,8 +76,6 @@ private:
int _size;
};
-bool operator==(ArrayData const & a, ArrayData const & b);
-
}
#endif