Public Attributes

kNet::SerializedElementDesc Struct Reference

Represents a single element of data in the stream. More...

#include <MessageListParser.h>

Collaboration diagram for kNet::SerializedElementDesc:
Collaboration graph
[legend]

List of all members.

Public Attributes

BasicSerializedDataType type
 The data type of this element.
bool varyingCount
 If true, the number of times this element is instanced is specified in the stream.
int count
 If varyingCount=false, denotes the number of times this element is present in the stream.
std::string name
 The name of this element.
std::vector
< SerializedElementDesc * > 
elements
 If this element denotes a structure (type == SerialStruct), then this vector contains all the child nodes.
SerializedElementDescparent
 The parent element, or 0 if this is the root element.

Detailed Description

Represents a single element of data in the stream.

Can be a single value (one u32, or one float), an array of data (nine bits, 12 u64's), a struct (see the elements member), or even an array of structs. An array can be fixed-size (the protocol file specifies the number of elements in the array), or of dynamic size (the stream stores the element count just before the first actual element).


Member Data Documentation

If varyingCount=false, denotes the number of times this element is present in the stream.

If varyingCount=true, specifies how many *bits* of storage is used in the stream to store the number of times this element is stored.

Referenced by kNet::DataDeserializer::GetDynamicElemCount().


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines