diff options
-rw-r--r-- | include/plist/Data.h | 1 | ||||
-rw-r--r-- | src/Data.cpp | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/include/plist/Data.h b/include/plist/Data.h index b566a6c..1de88aa 100644 --- a/include/plist/Data.h +++ b/include/plist/Data.h @@ -36,6 +36,7 @@ public : Data(const Data& d); Data& operator=(const Data& b); Data(const std::vector<char>& buff); + Data(const char* buff, uint64_t size); virtual ~Data(); Node* Clone() const; diff --git a/src/Data.cpp b/src/Data.cpp index b06a144..56b2d6b 100644 --- a/src/Data.cpp +++ b/src/Data.cpp @@ -50,6 +50,11 @@ Data::Data(const std::vector<char>& buff) : Node(PLIST_DATA) plist_set_data_val(_node, &buff[0], buff.size()); } +Data::Data(const char* buff, uint64_t size) : Node(PLIST_DATA) +{ + plist_set_data_val(_node, buff, size); +} + Data::~Data() { } |