_________ __ __
/ _____// |_____________ _/ |______ ____ __ __ ______
\_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
/ \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
/_______ /|__| |__| (____ /__| (____ /\___ /|____//____ >
\/ \/ \//_____/ \/
______________________ ______________________
T H E W A R B E G I N S
Stratagus - A free fantasy real time strategy game engine
Go to the documentation of this file.
29 #ifndef NET_SERIALIZATION_H
30 #define NET_SERIALIZATION_H
32 extern size_t serialize32(
unsigned char *buf, uint32_t data);
33 extern size_t serialize32(
unsigned char *buf, int32_t data);
34 extern size_t serialize16(
unsigned char *buf, uint16_t data);
35 extern size_t serialize16(
unsigned char *buf, int16_t data);
36 extern size_t serialize8(
unsigned char *buf, uint8_t data);
37 extern size_t serialize8(
unsigned char *buf, int8_t data);
39 extern size_t serialize(
unsigned char *buf,
const char(&data)[N]);
40 extern size_t serialize(
unsigned char *buf,
const std::string &s);
41 extern size_t serialize(
unsigned char *buf,
const std::vector<unsigned char> &data);
42 extern size_t deserialize32(
const unsigned char *buf, uint32_t *data);
43 extern size_t deserialize32(
const unsigned char *buf, int32_t *data);
44 extern size_t deserialize16(
const unsigned char *buf, uint16_t *data);
45 extern size_t deserialize16(
const unsigned char *buf, int16_t *data);
46 extern size_t deserialize8(
const unsigned char *buf, uint8_t *data);
47 extern size_t deserialize8(
const unsigned char *buf, int8_t *data);
49 extern size_t deserialize(
const unsigned char *buf,
char(&data)[N]);
50 extern size_t deserialize(
const unsigned char *buf, std::string &s);
51 extern size_t deserialize(
const unsigned char *buf, std::vector<unsigned char> &data);
size_t serialize8(unsigned char *buf, uint8_t data)
Definition: net_message.cpp:73
size_t deserialize16(const unsigned char *buf, uint16_t *data)
Definition: net_message.cpp:146
size_t deserialize(const unsigned char *buf, char(&data)[N])
Definition: net_message.cpp:167
size_t deserialize32(const unsigned char *buf, uint32_t *data)
Definition: net_message.cpp:136
size_t serialize(unsigned char *buf, const char(&data)[N])
Definition: net_message.cpp:88
size_t deserialize8(const unsigned char *buf, uint8_t *data)
Definition: net_message.cpp:156
size_t serialize32(unsigned char *buf, uint32_t data)
Definition: net_message.cpp:45
size_t serialize16(unsigned char *buf, uint16_t data)
Definition: net_message.cpp:59
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.