_________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
                   Stratagus - A free fantasy real time strategy game engine

Functions
net_serialization.h File Reference

Go to the source code of this file.

Functions

size_t serialize32 (unsigned char *buf, uint32_t data)
 
size_t serialize32 (unsigned char *buf, int32_t data)
 
size_t serialize16 (unsigned char *buf, uint16_t data)
 
size_t serialize16 (unsigned char *buf, int16_t data)
 
size_t serialize8 (unsigned char *buf, uint8_t data)
 
size_t serialize8 (unsigned char *buf, int8_t data)
 
template<int N>
size_t serialize (unsigned char *buf, const char(&data)[N])
 
size_t serialize (unsigned char *buf, const std::string &s)
 
size_t serialize (unsigned char *buf, const std::vector< unsigned char > &data)
 
size_t deserialize32 (const unsigned char *buf, uint32_t *data)
 
size_t deserialize32 (const unsigned char *buf, int32_t *data)
 
size_t deserialize16 (const unsigned char *buf, uint16_t *data)
 
size_t deserialize16 (const unsigned char *buf, int16_t *data)
 
size_t deserialize8 (const unsigned char *buf, uint8_t *data)
 
size_t deserialize8 (const unsigned char *buf, int8_t *data)
 
template<int N>
size_t deserialize (const unsigned char *buf, char(&data)[N])
 
size_t deserialize (const unsigned char *buf, std::string &s)
 
size_t deserialize (const unsigned char *buf, std::vector< unsigned char > &data)
 

Function Documentation

◆ deserialize() [1/3]

template<int N>
size_t deserialize ( const unsigned char *  buf,
char(&)  data[N] 
)

◆ deserialize() [2/3]

size_t deserialize ( const unsigned char *  buf,
std::string &  s 
)

◆ deserialize() [3/3]

size_t deserialize ( const unsigned char *  buf,
std::vector< unsigned char > &  data 
)

◆ deserialize16() [1/2]

size_t deserialize16 ( const unsigned char *  buf,
int16_t *  data 
)

◆ deserialize16() [2/2]

size_t deserialize16 ( const unsigned char *  buf,
uint16_t *  data 
)

◆ deserialize32() [1/2]

size_t deserialize32 ( const unsigned char *  buf,
int32_t *  data 
)

◆ deserialize32() [2/2]

size_t deserialize32 ( const unsigned char *  buf,
uint32_t *  data 
)

◆ deserialize8() [1/2]

size_t deserialize8 ( const unsigned char *  buf,
int8_t *  data 
)

◆ deserialize8() [2/2]

size_t deserialize8 ( const unsigned char *  buf,
uint8_t *  data 
)

◆ serialize() [1/3]

template<int N>
size_t serialize ( unsigned char *  buf,
const char(&)  data[N] 
)

◆ serialize() [2/3]

size_t serialize ( unsigned char *  buf,
const std::string &  s 
)

◆ serialize() [3/3]

size_t serialize ( unsigned char *  buf,
const std::vector< unsigned char > &  data 
)

◆ serialize16() [1/2]

size_t serialize16 ( unsigned char *  buf,
int16_t  data 
)

◆ serialize16() [2/2]

size_t serialize16 ( unsigned char *  buf,
uint16_t  data 
)

◆ serialize32() [1/2]

size_t serialize32 ( unsigned char *  buf,
int32_t  data 
)

◆ serialize32() [2/2]

size_t serialize32 ( unsigned char *  buf,
uint32_t  data 
)

◆ serialize8() [1/2]

size_t serialize8 ( unsigned char *  buf,
int8_t  data 
)

◆ serialize8() [2/2]

size_t serialize8 ( unsigned char *  buf,
uint8_t  data 
)
(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.