PacketWriter Members

The following tables list the members exposed by the PacketWriter type.

Public Constructors

Name Description
Public Method PacketWriter Overloaded. Initializes a new instance of PacketWriter.

Protected Fields

Name Description
Protected Field OutStream (Inherited from BinaryWriter.)

Public Properties

Name Description
Public Property BaseStream (Inherited from BinaryWriter.)
Public Property Length Gets the length of the packet being written.
Public Property Position Gets or sets the current packet write position.

Public Methods

Name Description
Public Method Close (Inherited from BinaryWriter.)
Public Method Equals (Inherited from Object.)
Public Method Flush (Inherited from BinaryWriter.)
Public Method GetHashCode (Inherited from Object.)
Public Method GetType (Inherited from Object.)
Public Method Seek (Inherited from BinaryWriter.)
Public Method ToString (Inherited from Object.)
Public Method Write Overloaded. Writes a value to an outgoing network packet.

Protected Methods

Name Description
Protected Method Dispose (Inherited from BinaryWriter.)
Protected Method Finalize (Inherited from Object.)
Protected Method MemberwiseClone (Inherited from Object.)
Protected Method Write7BitEncodedInt (Inherited from BinaryWriter.)

See Also

Tasks

Sending Network Data

Reference

PacketWriter Class
Microsoft.Xna.Framework.Net Namespace