|
0 A.D. | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface for serializable objects. For a serializable object to be usable as a network message field, it must have a constructor without arguments.
Method Summary | |
virtual const u8* |
Deserialize( const u8* buffer, const u8* end )= 0
Deserialize the object (i.e. read in data from the buffer and initialize the object's fields). |
virtual uint |
GetSerializedLength() const = 0
Return the length of the serialized form of this object |
virtual u8* |
Serialize( u8* buffer ) const = 0
Serialize the object into the passed buffer. |
Method Detail |
public virtual const u8* Deserialize( const u8* buffer, const u8* end )= 0;
buffer
- A pointer pointing to the start of the serialized data.
end
- A pointer to the end of the message.public virtual uint GetSerializedLength() const = 0;
public virtual u8* Serialize( u8* buffer ) const = 0;
|
0 A.D.
Generated on September 04, 2007 at 18:14 CppDoc v2.4.0 |
|||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |