Classes | Namespaces | Typedefs | Enumerations | Functions

C:/knet/include/kNet/BasicSerializedDataTypes.h File Reference

Describes the basic POD data types that are used by the DataSerializer and DataDeserializer objects. More...

#include <list>
#include <string>
#include "Types.h"
Include dependency graph for BasicSerializedDataTypes.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  kNet::SerializedDataTypeTraits< T >
 A trait class used to match basic data types to their associated enum values. More...

Namespaces

namespace  kNet

Typedefs

typedef bool kNet::bit
 A single 0|1 value that is serialized as just one bit, *without padding*.

Enumerations

enum  kNet::BasicSerializedDataType {
  kNet::SerialInvalid = 0, kNet::SerialBit, kNet::SerialU8, kNet::SerialS8,
  kNet::SerialU16, kNet::SerialS16, kNet::SerialU32, kNet::SerialS32,
  kNet::SerialU64, kNet::SerialS64, kNet::SerialFloat, kNet::SerialDouble,
  kNet::SerialString, kNet::SerialStruct, kNet::SerialDynamicCount, kNet::NumSerialTypes
}
 

Defines the basic data types that are the building blocks of every other serializable data type.

More...

Functions

const char * kNet::SerialTypeToString (BasicSerializedDataType type)
 Converts a give BasicSerializedDataType to a readable string representation.
BasicSerializedDataType kNet::StringToSerialType (const char *type)
 Tries to parse a BasicSerializedDataType out of a string, or returns SerialInvalid if no match.
size_t kNet::SerialTypeSize (BasicSerializedDataType type)
 Returns the number of bytes the passed BasicSerializedDataType requires for serialization.

Detailed Description

Describes the basic POD data types that are used by the DataSerializer and DataDeserializer objects.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines