From f330428223ff90eeae3e22e8de20e5aea1188061 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Thu, 26 Nov 2015 13:53:01 +0100 Subject: Add LocalIntExt and LocalStringExt::unserialize() for non-FORMAT_NETWORK --- include/extensible.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/extensible.h b/include/extensible.h index 11d6acbc9..5ac4fa9da 100644 --- a/include/extensible.h +++ b/include/extensible.h @@ -201,6 +201,7 @@ class CoreExport LocalStringExt : public SimpleExtItem LocalStringExt(const std::string& key, ExtensibleType exttype, Module* owner); virtual ~LocalStringExt(); std::string serialize(SerializeFormat format, const Extensible* container, void* item) const; + void unserialize(SerializeFormat format, Extensible* container, const std::string& value); }; class CoreExport LocalIntExt : public LocalExtItem @@ -209,6 +210,7 @@ class CoreExport LocalIntExt : public LocalExtItem LocalIntExt(const std::string& key, ExtensibleType exttype, Module* owner); virtual ~LocalIntExt(); std::string serialize(SerializeFormat format, const Extensible* container, void* item) const; + void unserialize(SerializeFormat format, Extensible* container, const std::string& value); intptr_t get(const Extensible* container) const; intptr_t set(Extensible* container, intptr_t value); void unset(Extensible* container) { set(container, 0); } -- cgit v1.2.3