Property | Type | Description | |
---|---|---|---|
m_VariableLength | bool |
Property | Type | Description | |
---|---|---|---|
m_BaseStream | |||
m_Length | int | ||
m_Reader |
Method | Description | |
---|---|---|
Flush ( ) : void |
Flushes the underlying stream.
|
|
PacketStream ( byte ID, int Length ) : System |
Constructs a new PacketStream instance to write to.
|
|
PacketStream ( byte ID, int Length, byte DataBuffer ) : System |
Constructs a new PacketStream instance to read from.
|
|
PeekByte ( ) : byte |
Peeks a byte from the stream at the current position.
|
|
PeekByte ( int Position ) : byte |
Peeks a byte from the stream at the specified position.
|
|
PeekInt ( int Position ) : int |
Peeks an int from the stream at the specified position.
|
|
PeekUShort ( int Position ) : ushort |
Peeks a ushort from the stream at the specified position.
|
|
Read ( byte buffer, int offset, int count ) : int |
Reads a specific number of bytes from this PacketStream.
|
|
ReadByte ( ) : int |
Reads a byte from this PacketStream instance.
|
|
ReadBytes ( int NumBytes ) : byte[] |
Reads a specific number of bytes from this PacketStream.
|
|
ReadDouble ( ) : double |
Reads a double from this PacketStream instance.
|
|
ReadInt32 ( ) : int |
Reads an integer from this PacketStream instance.
|
|
ReadInt64 ( ) : long |
Reads a long integer from this PacketStream instance.
|
|
ReadString ( ) : string |
Reads a string from this PacketStream instance.
|
|
ReadString ( int NumChars ) : string |
Reads a string from this PacketStream instance.
|
|
ReadUInt16 ( ) : ushort |
Reads a short from this PacketStream instance.
|
|
ReadUInt64 ( ) : ulong |
Reads an unsigned long integer from this PacketStream instance.
|
|
ReadUShort ( ) : ushort |
Reads a ushort from this PacketStream instance.
|
|
Seek ( long offset, SeekOrigin origin ) : long |
Do not call this! It will throw a NotImplementedException!
|
|
SetLength ( long value ) : void |
Sets the length of this PacketStream to the specified value.
|
|
ToArray ( ) : byte[] |
Creates an array of bytes with the data in this PacketStream instance.
|
|
Write ( byte buffer, int offset, int count ) : void |
Writes a block of bytes to this PacketStream instance.
|
|
WriteByte ( byte Value ) : void |
Writes a byte to this PacketStream instance.
|
|
WriteBytes ( byte Buffer ) : void |
Writes a block of bytes to this PacketStream instance.
|
|
WriteDouble ( double Value ) : void |
Writes a 64 bit double to this PacketStream instance.
|
|
WriteHeader ( ) : void |
Writes the packet header.
|
|
WriteInt32 ( int Value ) : void |
Writes a 32 bit integer to this PacketStream instance.
|
|
WriteInt64 ( long Value ) : void |
Writes a 64 bit integer to this PacketStream instance.
|
|
WriteString ( string Str ) : void | ||
WriteUInt16 ( ushort Value ) : void |
Writes an unsigned short to this PacketStream instance.
|
|
WriteUInt64 ( ulong Value ) : void |
Writes an unsigned 64 bit integer to this PacketStream instance.
|
public PacketStream ( byte ID, int Length ) : System | ||
ID | byte | The ID of this PacketStream instance. |
Length | int | The length of this PacketStream instance (0 if variable length). |
return | System |
public PacketStream ( byte ID, int Length, byte DataBuffer ) : System | ||
ID | byte | The ID of this PacketStream instance. |
Length | int | The length of this PacketStream instance. |
DataBuffer | byte | The buffer from which to create this PacketStream instance. |
return | System |
public PeekByte ( int Position ) : byte | ||
Position | int | The position to peek at. |
return | byte |
public PeekInt ( int Position ) : int | ||
Position | int | The position to peek at. |
return | int |
public PeekUShort ( int Position ) : ushort | ||
Position | int | The position to peek at. |
return | ushort |
public Read ( byte buffer, int offset, int count ) : int | ||
buffer | byte | The buffer to read into. |
offset | int | The zero-based byte offset in buffer at which to begin storing data from the current stream. |
count | int | The number of bytes to read (must be at least equal to the length of buffer!) |
return | int |
public ReadBytes ( int NumBytes ) : byte[] | ||
NumBytes | int | Number of bytes to read. |
return | byte[] |
public Seek ( long offset, SeekOrigin origin ) : long | ||
offset | long | The offset to seek to. |
origin | SeekOrigin | The origin of the seek. |
return | long |
public SetLength ( long value ) : void | ||
value | long | The length of the stream. |
return | void |
public Write ( byte buffer, int offset, int count ) : void | ||
buffer | byte | The data to write. |
offset | int | The offset at which to start writing. |
count | int | The maximum number of bytes to write. |
return | void |
public WriteByte ( byte Value ) : void | ||
Value | byte | The byte to write. |
return | void |
public WriteBytes ( byte Buffer ) : void | ||
Buffer | byte | The data to write. |
return | void |
public WriteDouble ( double Value ) : void | ||
Value | double | The 64 bit double to write. |
return | void |
public WriteInt32 ( int Value ) : void | ||
Value | int | The 32 bit integer to write. |
return | void |
public WriteInt64 ( long Value ) : void | ||
Value | long | The 64 bit integer to write. |
return | void |
public WriteUInt16 ( ushort Value ) : void | ||
Value | ushort | The unsigned short to write. |
return | void |
public WriteUInt64 ( ulong Value ) : void | ||
Value | ulong | The unsigned 64 bit integer to write. |
return | void |
protected MemoryStream,System.IO m_BaseStream | ||
return |
protected BinaryReader,System.IO m_Reader | ||
return |