C# Class Lidgren.Network.NetIncomingMessage

Afficher le fichier Open project: tomoprime/CrabBattle Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
NetIncomingMessage ( ) : System

Method Details

PeekBoolean() public méthode

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

PeekByte() public méthode

Reads a Byte without advancing the read pointer
public PeekByte ( ) : byte
Résultat byte

PeekByte() public méthode

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

PeekBytes() public méthode

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

PeekBytes() public méthode

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
Résultat void

PeekDataBuffer() public méthode

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

PeekDouble() public méthode

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

PeekFloat() public méthode

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

PeekInt16() public méthode

Reads an Int16 without advancing the read pointer
public PeekInt16 ( ) : Int16
Résultat System.Int16

PeekInt32() public méthode

Reads an Int32 without advancing the read pointer
public PeekInt32 ( ) : Int32
Résultat System.Int32

PeekInt32() public méthode

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

PeekInt64() public méthode

Reads an Int64 without advancing the read pointer
public PeekInt64 ( ) : System.Int64
Résultat System.Int64

PeekInt64() public méthode

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

PeekSByte() public méthode

Reads an SByte without advancing the read pointer
public PeekSByte ( ) : sbyte
Résultat sbyte

PeekSingle() public méthode

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

PeekString() public méthode

Reads a string without advancing the read pointer
public PeekString ( ) : string
Résultat string

PeekUInt16() public méthode

Reads a UInt16 without advancing the read pointer
public PeekUInt16 ( ) : UInt16
Résultat System.UInt16

PeekUInt32() public méthode

Reads a UInt32 without advancing the read pointer
public PeekUInt32 ( ) : UInt32
Résultat System.UInt32

PeekUInt32() public méthode

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

PeekUInt64() public méthode

Reads a UInt64 without advancing the read pointer
public PeekUInt64 ( ) : System.UInt64
Résultat System.UInt64

PeekUInt64() public méthode

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

ReadBits() public méthode

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
Résultat void

ReadBoolean() public méthode

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

ReadByte() public méthode

Reads a byte
public ReadByte ( ) : byte
Résultat byte

ReadByte() public méthode

Reads 1 to 8 bits into a byte
public ReadByte ( int numberOfBits ) : byte
numberOfBits int
Résultat byte

ReadBytes() public méthode

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

ReadBytes() public méthode

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
Résultat void

ReadDouble() public méthode

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

ReadFloat() public méthode

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

ReadIPEndpoint() public méthode

Reads a stored IPv4 endpoint description
public ReadIPEndpoint ( ) : IPEndPoint
Résultat System.Net.IPEndPoint

ReadInt16() public méthode

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

ReadInt32() public méthode

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

ReadInt32() public méthode

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

ReadInt64() public méthode

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

ReadInt64() public méthode

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

ReadPadBits() public méthode

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

ReadRangedInteger() public méthode

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
Résultat int

ReadRangedSingle() public méthode

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
Résultat float

ReadSByte() public méthode

Reads a signed byte
public ReadSByte ( ) : sbyte
Résultat sbyte

ReadSignedSingle() public méthode

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
Résultat float

ReadSingle() public méthode

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

ReadString() public méthode

Reads a string written using Write(string)
public ReadString ( ) : string
Résultat string

ReadTime() public méthode

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
Résultat double

ReadUInt16() public méthode

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

ReadUInt32() public méthode

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

ReadUInt32() public méthode

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

ReadUInt64() public méthode

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

ReadUInt64() public méthode

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

ReadUnitSingle() public méthode

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
Résultat float

ReadVariableInt32() public méthode

Reads a variable sized Int32 written using WriteVariableInt32()
public ReadVariableInt32 ( ) : int
Résultat int

ReadVariableInt64() public méthode

Reads a variable sized Int64 written using WriteVariableInt64()
public ReadVariableInt64 ( ) : System.Int64
Résultat System.Int64

ReadVariableUInt32() public méthode

Reads a variable sized UInt32 written using WriteVariableUInt32()
public ReadVariableUInt32 ( ) : uint
Résultat uint

ReadVariableUInt64() public méthode

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

SkipPadBits() public méthode

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

SkipPadBits() public méthode

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