Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndris Zeila <andris.zeila@zabbix.com>2017-06-15 16:08:47 +0300
committerAndris Zeila <andris.zeila@zabbix.com>2017-06-15 16:08:47 +0300
commit24d4fc6ec35d87ab63fd3a3f21ccc488b7103f00 (patch)
tree7809a96d465efb48ac147043ba557bc125d81b3e /include/zbxserialize.h
parent94604d00d3afddb252cee73324846b900a539d21 (diff)
.......... [ZBXNEXT-2442] fixed r69133 merge
Diffstat (limited to 'include/zbxserialize.h')
-rw-r--r--include/zbxserialize.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/zbxserialize.h b/include/zbxserialize.h
index 4e5500e4fb1..b79934976bf 100644
--- a/include/zbxserialize.h
+++ b/include/zbxserialize.h
@@ -52,6 +52,10 @@
len + sizeof(zbx_uint32_t) \
) \
)
+
+#define zbx_serialize_value(buffer, value) (memcpy(buffer, &value, sizeof(value)), sizeof(value))
+
+/* deserialization of primitive types */
#define zbx_deserialize_uint64(buffer, value) \
(memcpy(value, buffer, sizeof(zbx_uint64_t)), sizeof(zbx_uint64_t))