We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1aae1e5 commit d031e94Copy full SHA for d031e94
include/plist/Data.h
@@ -36,6 +36,7 @@ public :
36
Data(const Data& d);
37
Data& operator=(const Data& b);
38
Data(const std::vector<char>& buff);
39
+ Data(const char* buff, uint64_t size);
40
virtual ~Data();
41
42
Node* Clone() const;
src/Data.cpp
@@ -50,6 +50,11 @@ Data::Data(const std::vector<char>& buff) : Node(PLIST_DATA)
50
plist_set_data_val(_node, &buff[0], buff.size());
51
}
52
53
+Data::Data(const char* buff, uint64_t size) : Node(PLIST_DATA)
54
+{
55
+ plist_set_data_val(_node, buff, size);
56
+}
57
+
58
Data::~Data()
59
{
60
0 commit comments