summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2015-11-26 13:53:01 +0100
committerAttila Molnar <attilamolnar@hush.com>2015-11-26 13:53:01 +0100
commitf330428223ff90eeae3e22e8de20e5aea1188061 (patch)
tree84065331ffd2f49984c1374073f539c75a878c92 /include
parentcdb764f2de7ee27c97708dfe44f1e6b905c571db (diff)
Add LocalIntExt and LocalStringExt::unserialize() for non-FORMAT_NETWORK
Diffstat (limited to 'include')
-rw-r--r--include/extensible.h2
1 files changed, 2 insertions, 0 deletions
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<std::string>
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); }