![]() | Packet Class |
The Packet type exposes the following members.
Name | Description | |
---|---|---|
![]() | Packet | Initializes a new instance of the Packet class with no data. |
![]() | Packet(Byte, Int32, Int64, Boolean) | Initailizes a new instance of the Packet class with the specified data. |
Name | Description | |
---|---|---|
![]() | Checksum | Gets or sets the checksum for the data in this packet. |
![]() | Data | Gets the valid data for this packet. |
![]() | IsLastPacket | Gets or sets a value that indicates whether this packet is the last packet being sent. |
![]() | SequenceNumber | Gets or sets the sequence number of the packet. |
![]() | Size | Gets or sets the size of the packet. |
Name | Description | |
---|---|---|
![]() | Clear | Clears this instance. |
![]() | CopyFrom(Packet) | Resets the data in the packet using the data from the specified packet. |
![]() | CopyFrom(Stream, Int64, Boolean) | Resets the data in the packet using the specified stream. |
![]() | CopyFrom(Byte, Int32, Int64, Boolean) | Resets the data in the packet using the specified data. |
![]() | CopyTo | Copies the packet's data to the specified buffer. |
![]() | Equals |
Compares this Packet with another object.
(Overrides ObjectEquals(Object)) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
![]() | GetHashCode |
Gets a hash code for this object.
(Overrides ObjectGetHashCode) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) |
![]() | Read | Reads packet data from a BinaryReader. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object) |
![]() | Write | Writes the packet to the specified BinaryWriter. |
![]() | WriteDataOnly | Writes the packet data, without any header, to the specified Stream. |
Name | Description | |
---|---|---|
![]() ![]() | PacketSize | The size of a single packet. |