From 8e310421adfa157a0a62c903b0bcd83cf27c3f46 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Sun, 6 Apr 2025 11:36:18 +0200 Subject: C++: Add new Structure::FromMemory() --- include/plist/Structure.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/plist') diff --git a/include/plist/Structure.h b/include/plist/Structure.h index d85b17a..b7fbdb5 100644 --- a/include/plist/Structure.h +++ b/include/plist/Structure.h @@ -44,6 +44,8 @@ public : static Structure* FromXml(const std::string& xml); static Structure* FromBin(const std::vector& bin); static Structure* FromBin(const char* bin, uint64_t size); + static Structure* FromMemory(const std::vector& buf, plist_format_t* format = NULL); + static Structure* FromMemory(const char* buf, uint64_t size, plist_format_t* format = NULL); protected: Structure(Node* parent = NULL); -- cgit v1.1-32-gdbae