|
3rd Eye Scene C#
3rd Eye Scene C# documentation
|
Identifies a message packet which contains a collection of other messages, optionally compressed. More...
Public Member Functions | |
| bool | Read (BinaryReader reader) |
| Read the message from the given reader . | |
| bool | Write (PacketBuffer packet) |
| Write this message to packet . | |
| bool | Write (BinaryWriter writer) |
| Write this message to a BinaryWriter. | |
Public Attributes | |
| ushort | Flags |
| See CollatedPacketFlag. | |
| ushort | Reserved |
| Reserved for future use. | |
| uint | UncompressedBytes |
| Number of uncompressed bytes in the collated packet data. | |
Properties | |
| static int | UncompressedBytesOffset [get] |
| Returns the byte offset to the UncompressedBytes field. | |
| static int | Size [get] |
| Returns the byte size of this structure. | |
Identifies a message packet which contains a collection of other messages, optionally compressed.
A collated packet message contains multiple messages in the standard format: PacketHeader followed by the message data. However, no individual message in the collated packet has its own CRC. Instead, only the
CollatedPacketMessage
has a CRC.
Use T:IO.CollatedPacketDecoder to decode such packets into constituent messages.
| bool Tes::Net::CollatedPacketMessage::Read | ( | BinaryReader | reader | ) | [inline] |
Read the message from the given reader .
| reader | The reader to read from. |
| bool Tes::Net::CollatedPacketMessage::Write | ( | BinaryWriter | writer | ) | [inline] |
Write this message to a BinaryWriter.
| writer | The binary writer to write to. |
| bool Tes::Net::CollatedPacketMessage::Write | ( | PacketBuffer | packet | ) | [inline] |
Write this message to packet .
| packet | The packet to write to. |
Reserved for future use.
Must be zero.
int Tes::Net::CollatedPacketMessage::UncompressedBytesOffset [static, get] |
Returns the byte offset to the UncompressedBytes field.
FIXME: use reflection to calculate the offset.