C# Class Lidgren.Network.NetIncomingMessage

Exibir arquivo Open project: tomoprime/CrabBattle Class Usage Examples

Public Methods

Method Description
PeekBoolean ( ) : bool

Reads a 1-bit Boolean without advancing the read pointer

PeekByte ( ) : byte

Reads a Byte without advancing the read pointer

PeekByte ( int numberOfBits ) : byte

Reads the specified number of bits into a Byte without advancing the read pointer

PeekBytes ( int numberOfBytes ) : byte[]

Reads the specified number of bytes without advancing the read pointer

PeekBytes ( byte into, int offset, int numberOfBytes ) : void

Reads the specified number of bytes without advancing the read pointer

PeekDataBuffer ( ) : byte[]

Returns the internal data buffer, don't modify

PeekDouble ( ) : double

Reads a 64-bit Double without advancing the read pointer

PeekFloat ( ) : float

Reads a 32-bit Single without advancing the read pointer

PeekInt16 ( ) : Int16

Reads an Int16 without advancing the read pointer

PeekInt32 ( ) : Int32

Reads an Int32 without advancing the read pointer

PeekInt32 ( int numberOfBits ) : Int32

Reads the specified number of bits into an Int32 without advancing the read pointer

PeekInt64 ( ) : System.Int64

Reads an Int64 without advancing the read pointer

PeekInt64 ( int numberOfBits ) : System.Int64

Reads the specified number of bits into an Int64 without advancing the read pointer

PeekSByte ( ) : sbyte

Reads an SByte without advancing the read pointer

PeekSingle ( ) : float

Reads a 32-bit Single without advancing the read pointer

PeekString ( ) : string

Reads a string without advancing the read pointer

PeekUInt16 ( ) : UInt16

Reads a UInt16 without advancing the read pointer

PeekUInt32 ( ) : UInt32

Reads a UInt32 without advancing the read pointer

PeekUInt32 ( int numberOfBits ) : UInt32

Reads the specified number of bits into a UInt32 without advancing the read pointer

PeekUInt64 ( ) : System.UInt64

Reads a UInt64 without advancing the read pointer

PeekUInt64 ( int numberOfBits ) : System.UInt64

Reads the specified number of bits into an UInt64 without advancing the read pointer

ReadBits ( byte into, int offset, int numberOfBits ) : void

Reads the specified number of bits into a preallocated array

ReadBoolean ( ) : bool

Reads a boolean value (stored as a single bit) written using Write(bool)

ReadByte ( ) : byte

Reads a byte

ReadByte ( int numberOfBits ) : byte

Reads 1 to 8 bits into a byte

ReadBytes ( int numberOfBytes ) : byte[]

Reads the specified number of bytes

ReadBytes ( byte into, int offset, int numberOfBytes ) : void

Reads the specified number of bytes into a preallocated array

ReadDouble ( ) : double

Reads a 64 bit floating point value written using Write(Double)

ReadFloat ( ) : float

Reads a 32 bit floating point value written using Write(Single)

ReadIPEndpoint ( ) : IPEndPoint

Reads a stored IPv4 endpoint description

ReadInt16 ( ) : Int16

Reads a 16 bit signed integer written using Write(Int16)

ReadInt32 ( ) : Int32

Reads a 32 bit signed integer written using Write(Int32)

ReadInt32 ( int numberOfBits ) : Int32

Reads a signed integer stored in 1 to 32 bits, written using Write(Int32, Int32)

ReadInt64 ( ) : System.Int64

Reads a 64 bit signed integer written using Write(Int64)

ReadInt64 ( int numberOfBits ) : System.Int64

Reads a signed integer stored in 1 to 64 bits, written using Write(Int64, Int32)

ReadPadBits ( ) : void

Pads data with enough bits to reach a full byte. Decreases cpu usage for subsequent byte writes.

ReadRangedInteger ( int min, int max ) : int

Reads a 32 bit integer value written using WriteRangedInteger()

ReadRangedSingle ( float min, float max, int numberOfBits ) : float

Reads a 32 bit floating point value written using WriteRangedSingle()

ReadSByte ( ) : sbyte

Reads a signed byte

ReadSignedSingle ( int numberOfBits ) : float

Reads a 32 bit floating point value written using WriteSignedSingle()

ReadSingle ( ) : float

Reads a 32 bit floating point value written using Write(Single)

ReadString ( ) : string

Reads a string written using Write(string)

ReadTime ( bool highPrecision ) : double

Reads a value, in local time comparable to NetTime.Now, written using WriteTime() Must have a connected sender

ReadUInt16 ( ) : UInt16

Reads a 16 bit unsigned integer written using Write(UInt16)

ReadUInt32 ( ) : UInt32

Reads an 32 bit unsigned integer written using Write(UInt32)

ReadUInt32 ( int numberOfBits ) : UInt32

Reads an unsigned integer stored in 1 to 32 bits, written using Write(UInt32, Int32)

ReadUInt64 ( ) : System.UInt64

Reads a 64 bit unsigned integer written using Write(UInt64)

ReadUInt64 ( int numberOfBits ) : System.UInt64

Reads an unsigned integer stored in 1 to 64 bits, written using Write(UInt64, Int32)

ReadUnitSingle ( int numberOfBits ) : float

Reads a 32 bit floating point value written using WriteUnitSingle()

ReadVariableInt32 ( ) : int

Reads a variable sized Int32 written using WriteVariableInt32()

ReadVariableInt64 ( ) : System.Int64

Reads a variable sized Int64 written using WriteVariableInt64()

ReadVariableUInt32 ( ) : uint

Reads a variable sized UInt32 written using WriteVariableUInt32()

ReadVariableUInt64 ( ) : System.UInt64

Reads a variable sized UInt32 written using WriteVariableInt64()

SkipPadBits ( ) : void

Pads data with enough bits to reach a full byte. Decreases cpu usage for subsequent byte writes.

SkipPadBits ( int numberOfBits ) : void

Pads data with the specified number of bits.

Private Methods

Method Description
NetIncomingMessage ( ) : System

Method Details

PeekBoolean() public method

Reads a 1-bit Boolean without advancing the read pointer
public PeekBoolean ( ) : bool
return bool

PeekByte() public method

Reads a Byte without advancing the read pointer
public PeekByte ( ) : byte
return byte

PeekByte() public method

Reads the specified number of bits into a Byte without advancing the read pointer
public PeekByte ( int numberOfBits ) : byte
numberOfBits int
return byte

PeekBytes() public method

Reads the specified number of bytes without advancing the read pointer
public PeekBytes ( int numberOfBytes ) : byte[]
numberOfBytes int
return byte[]

PeekBytes() public method

Reads the specified number of bytes without advancing the read pointer
public PeekBytes ( byte into, int offset, int numberOfBytes ) : void
into byte
offset int
numberOfBytes int
return void

PeekDataBuffer() public method

Returns the internal data buffer, don't modify
public PeekDataBuffer ( ) : byte[]
return byte[]

PeekDouble() public method

Reads a 64-bit Double without advancing the read pointer
public PeekDouble ( ) : double
return double

PeekFloat() public method

Reads a 32-bit Single without advancing the read pointer
public PeekFloat ( ) : float
return float

PeekInt16() public method

Reads an Int16 without advancing the read pointer
public PeekInt16 ( ) : Int16
return System.Int16

PeekInt32() public method

Reads an Int32 without advancing the read pointer
public PeekInt32 ( ) : Int32
return System.Int32

PeekInt32() public method

Reads the specified number of bits into an Int32 without advancing the read pointer
public PeekInt32 ( int numberOfBits ) : Int32
numberOfBits int
return System.Int32

PeekInt64() public method

Reads an Int64 without advancing the read pointer
public PeekInt64 ( ) : System.Int64
return System.Int64

PeekInt64() public method

Reads the specified number of bits into an Int64 without advancing the read pointer
public PeekInt64 ( int numberOfBits ) : System.Int64
numberOfBits int
return System.Int64

PeekSByte() public method

Reads an SByte without advancing the read pointer
public PeekSByte ( ) : sbyte
return sbyte

PeekSingle() public method

Reads a 32-bit Single without advancing the read pointer
public PeekSingle ( ) : float
return float

PeekString() public method

Reads a string without advancing the read pointer
public PeekString ( ) : string
return string

PeekUInt16() public method

Reads a UInt16 without advancing the read pointer
public PeekUInt16 ( ) : UInt16
return System.UInt16

PeekUInt32() public method

Reads a UInt32 without advancing the read pointer
public PeekUInt32 ( ) : UInt32
return System.UInt32

PeekUInt32() public method

Reads the specified number of bits into a UInt32 without advancing the read pointer
public PeekUInt32 ( int numberOfBits ) : UInt32
numberOfBits int
return System.UInt32

PeekUInt64() public method

Reads a UInt64 without advancing the read pointer
public PeekUInt64 ( ) : System.UInt64
return System.UInt64

PeekUInt64() public method

Reads the specified number of bits into an UInt64 without advancing the read pointer
public PeekUInt64 ( int numberOfBits ) : System.UInt64
numberOfBits int
return System.UInt64

ReadBits() public method

Reads the specified number of bits into a preallocated array
public ReadBits ( byte into, int offset, int numberOfBits ) : void
into byte The destination array
offset int The offset where to start writing in the destination array
numberOfBits int The number of bits to read
return void

ReadBoolean() public method

Reads a boolean value (stored as a single bit) written using Write(bool)
public ReadBoolean ( ) : bool
return bool

ReadByte() public method

Reads a byte
public ReadByte ( ) : byte
return byte

ReadByte() public method

Reads 1 to 8 bits into a byte
public ReadByte ( int numberOfBits ) : byte
numberOfBits int
return byte

ReadBytes() public method

Reads the specified number of bytes
public ReadBytes ( int numberOfBytes ) : byte[]
numberOfBytes int
return byte[]

ReadBytes() public method

Reads the specified number of bytes into a preallocated array
public ReadBytes ( byte into, int offset, int numberOfBytes ) : void
into byte The destination array
offset int The offset where to start writing in the destination array
numberOfBytes int The number of bytes to read
return void

ReadDouble() public method

Reads a 64 bit floating point value written using Write(Double)
public ReadDouble ( ) : double
return double

ReadFloat() public method

Reads a 32 bit floating point value written using Write(Single)
public ReadFloat ( ) : float
return float

ReadIPEndpoint() public method

Reads a stored IPv4 endpoint description
public ReadIPEndpoint ( ) : IPEndPoint
return System.Net.IPEndPoint

ReadInt16() public method

Reads a 16 bit signed integer written using Write(Int16)
public ReadInt16 ( ) : Int16
return System.Int16

ReadInt32() public method

Reads a 32 bit signed integer written using Write(Int32)
public ReadInt32 ( ) : Int32
return System.Int32

ReadInt32() public method

Reads a signed integer stored in 1 to 32 bits, written using Write(Int32, Int32)
public ReadInt32 ( int numberOfBits ) : Int32
numberOfBits int
return System.Int32

ReadInt64() public method

Reads a 64 bit signed integer written using Write(Int64)
public ReadInt64 ( ) : System.Int64
return System.Int64

ReadInt64() public method

Reads a signed integer stored in 1 to 64 bits, written using Write(Int64, Int32)
public ReadInt64 ( int numberOfBits ) : System.Int64
numberOfBits int
return System.Int64

ReadPadBits() public method

Pads data with enough bits to reach a full byte. Decreases cpu usage for subsequent byte writes.
public ReadPadBits ( ) : void
return void

ReadRangedInteger() public method

Reads a 32 bit integer value written using WriteRangedInteger()
public ReadRangedInteger ( int min, int max ) : int
min int The minimum value used when writing the value
max int The maximum value used when writing the value
return int

ReadRangedSingle() public method

Reads a 32 bit floating point value written using WriteRangedSingle()
public ReadRangedSingle ( float min, float max, int numberOfBits ) : float
min float The minimum value used when writing the value
max float The maximum value used when writing the value
numberOfBits int The number of bits used when writing the value
return float

ReadSByte() public method

Reads a signed byte
public ReadSByte ( ) : sbyte
return sbyte

ReadSignedSingle() public method

Reads a 32 bit floating point value written using WriteSignedSingle()
public ReadSignedSingle ( int numberOfBits ) : float
numberOfBits int The number of bits used when writing the value
return float

ReadSingle() public method

Reads a 32 bit floating point value written using Write(Single)
public ReadSingle ( ) : float
return float

ReadString() public method

Reads a string written using Write(string)
public ReadString ( ) : string
return string

ReadTime() public method

Reads a value, in local time comparable to NetTime.Now, written using WriteTime() Must have a connected sender
public ReadTime ( bool highPrecision ) : double
highPrecision bool
return double

ReadUInt16() public method

Reads a 16 bit unsigned integer written using Write(UInt16)
public ReadUInt16 ( ) : UInt16
return System.UInt16

ReadUInt32() public method

Reads an 32 bit unsigned integer written using Write(UInt32)
public ReadUInt32 ( ) : UInt32
return System.UInt32

ReadUInt32() public method

Reads an unsigned integer stored in 1 to 32 bits, written using Write(UInt32, Int32)
public ReadUInt32 ( int numberOfBits ) : UInt32
numberOfBits int
return System.UInt32

ReadUInt64() public method

Reads a 64 bit unsigned integer written using Write(UInt64)
public ReadUInt64 ( ) : System.UInt64
return System.UInt64

ReadUInt64() public method

Reads an unsigned integer stored in 1 to 64 bits, written using Write(UInt64, Int32)
public ReadUInt64 ( int numberOfBits ) : System.UInt64
numberOfBits int
return System.UInt64

ReadUnitSingle() public method

Reads a 32 bit floating point value written using WriteUnitSingle()
public ReadUnitSingle ( int numberOfBits ) : float
numberOfBits int The number of bits used when writing the value
return float

ReadVariableInt32() public method

Reads a variable sized Int32 written using WriteVariableInt32()
public ReadVariableInt32 ( ) : int
return int

ReadVariableInt64() public method

Reads a variable sized Int64 written using WriteVariableInt64()
public ReadVariableInt64 ( ) : System.Int64
return System.Int64

ReadVariableUInt32() public method

Reads a variable sized UInt32 written using WriteVariableUInt32()
public ReadVariableUInt32 ( ) : uint
return uint

ReadVariableUInt64() public method

Reads a variable sized UInt32 written using WriteVariableInt64()
public ReadVariableUInt64 ( ) : System.UInt64
return System.UInt64

SkipPadBits() public method

Pads data with enough bits to reach a full byte. Decreases cpu usage for subsequent byte writes.
public SkipPadBits ( ) : void
return void

SkipPadBits() public method

Pads data with the specified number of bits.
public SkipPadBits ( int numberOfBits ) : void
numberOfBits int
return void