C# Класс Lidgren.Network.NetIncomingMessage

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
NetIncomingMessage ( ) : System

Описание методов

PeekBoolean() публичный Метод

Reads a 1-bit Boolean without advancing the read pointer
public PeekBoolean ( ) : bool
Результат bool

PeekByte() публичный Метод

Reads a Byte without advancing the read pointer
public PeekByte ( ) : byte
Результат byte

PeekByte() публичный Метод

Reads the specified number of bits into a Byte without advancing the read pointer
public PeekByte ( int numberOfBits ) : byte
numberOfBits int
Результат byte

PeekBytes() публичный Метод

Reads the specified number of bytes without advancing the read pointer
public PeekBytes ( int numberOfBytes ) : byte[]
numberOfBytes int
Результат byte[]

PeekBytes() публичный Метод

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
Результат void

PeekDataBuffer() публичный Метод

Returns the internal data buffer, don't modify
public PeekDataBuffer ( ) : byte[]
Результат byte[]

PeekDouble() публичный Метод

Reads a 64-bit Double without advancing the read pointer
public PeekDouble ( ) : double
Результат double

PeekFloat() публичный Метод

Reads a 32-bit Single without advancing the read pointer
public PeekFloat ( ) : float
Результат float

PeekInt16() публичный Метод

Reads an Int16 without advancing the read pointer
public PeekInt16 ( ) : Int16
Результат System.Int16

PeekInt32() публичный Метод

Reads an Int32 without advancing the read pointer
public PeekInt32 ( ) : Int32
Результат System.Int32

PeekInt32() публичный Метод

Reads the specified number of bits into an Int32 without advancing the read pointer
public PeekInt32 ( int numberOfBits ) : Int32
numberOfBits int
Результат System.Int32

PeekInt64() публичный Метод

Reads an Int64 without advancing the read pointer
public PeekInt64 ( ) : System.Int64
Результат System.Int64

PeekInt64() публичный Метод

Reads the specified number of bits into an Int64 without advancing the read pointer
public PeekInt64 ( int numberOfBits ) : System.Int64
numberOfBits int
Результат System.Int64

PeekSByte() публичный Метод

Reads an SByte without advancing the read pointer
public PeekSByte ( ) : sbyte
Результат sbyte

PeekSingle() публичный Метод

Reads a 32-bit Single without advancing the read pointer
public PeekSingle ( ) : float
Результат float

PeekString() публичный Метод

Reads a string without advancing the read pointer
public PeekString ( ) : string
Результат string

PeekUInt16() публичный Метод

Reads a UInt16 without advancing the read pointer
public PeekUInt16 ( ) : UInt16
Результат System.UInt16

PeekUInt32() публичный Метод

Reads a UInt32 without advancing the read pointer
public PeekUInt32 ( ) : UInt32
Результат System.UInt32

PeekUInt32() публичный Метод

Reads the specified number of bits into a UInt32 without advancing the read pointer
public PeekUInt32 ( int numberOfBits ) : UInt32
numberOfBits int
Результат System.UInt32

PeekUInt64() публичный Метод

Reads a UInt64 without advancing the read pointer
public PeekUInt64 ( ) : System.UInt64
Результат System.UInt64

PeekUInt64() публичный Метод

Reads the specified number of bits into an UInt64 without advancing the read pointer
public PeekUInt64 ( int numberOfBits ) : System.UInt64
numberOfBits int
Результат System.UInt64

ReadBits() публичный Метод

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
Результат void

ReadBoolean() публичный Метод

Reads a boolean value (stored as a single bit) written using Write(bool)
public ReadBoolean ( ) : bool
Результат bool

ReadByte() публичный Метод

Reads a byte
public ReadByte ( ) : byte
Результат byte

ReadByte() публичный Метод

Reads 1 to 8 bits into a byte
public ReadByte ( int numberOfBits ) : byte
numberOfBits int
Результат byte

ReadBytes() публичный Метод

Reads the specified number of bytes
public ReadBytes ( int numberOfBytes ) : byte[]
numberOfBytes int
Результат byte[]

ReadBytes() публичный Метод

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
Результат void

ReadDouble() публичный Метод

Reads a 64 bit floating point value written using Write(Double)
public ReadDouble ( ) : double
Результат double

ReadFloat() публичный Метод

Reads a 32 bit floating point value written using Write(Single)
public ReadFloat ( ) : float
Результат float

ReadIPEndpoint() публичный Метод

Reads a stored IPv4 endpoint description
public ReadIPEndpoint ( ) : IPEndPoint
Результат System.Net.IPEndPoint

ReadInt16() публичный Метод

Reads a 16 bit signed integer written using Write(Int16)
public ReadInt16 ( ) : Int16
Результат System.Int16

ReadInt32() публичный Метод

Reads a 32 bit signed integer written using Write(Int32)
public ReadInt32 ( ) : Int32
Результат System.Int32

ReadInt32() публичный Метод

Reads a signed integer stored in 1 to 32 bits, written using Write(Int32, Int32)
public ReadInt32 ( int numberOfBits ) : Int32
numberOfBits int
Результат System.Int32

ReadInt64() публичный Метод

Reads a 64 bit signed integer written using Write(Int64)
public ReadInt64 ( ) : System.Int64
Результат System.Int64

ReadInt64() публичный Метод

Reads a signed integer stored in 1 to 64 bits, written using Write(Int64, Int32)
public ReadInt64 ( int numberOfBits ) : System.Int64
numberOfBits int
Результат System.Int64

ReadPadBits() публичный Метод

Pads data with enough bits to reach a full byte. Decreases cpu usage for subsequent byte writes.
public ReadPadBits ( ) : void
Результат void

ReadRangedInteger() публичный Метод

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
Результат int

ReadRangedSingle() публичный Метод

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
Результат float

ReadSByte() публичный Метод

Reads a signed byte
public ReadSByte ( ) : sbyte
Результат sbyte

ReadSignedSingle() публичный Метод

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
Результат float

ReadSingle() публичный Метод

Reads a 32 bit floating point value written using Write(Single)
public ReadSingle ( ) : float
Результат float

ReadString() публичный Метод

Reads a string written using Write(string)
public ReadString ( ) : string
Результат string

ReadTime() публичный Метод

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
Результат double

ReadUInt16() публичный Метод

Reads a 16 bit unsigned integer written using Write(UInt16)
public ReadUInt16 ( ) : UInt16
Результат System.UInt16

ReadUInt32() публичный Метод

Reads an 32 bit unsigned integer written using Write(UInt32)
public ReadUInt32 ( ) : UInt32
Результат System.UInt32

ReadUInt32() публичный Метод

Reads an unsigned integer stored in 1 to 32 bits, written using Write(UInt32, Int32)
public ReadUInt32 ( int numberOfBits ) : UInt32
numberOfBits int
Результат System.UInt32

ReadUInt64() публичный Метод

Reads a 64 bit unsigned integer written using Write(UInt64)
public ReadUInt64 ( ) : System.UInt64
Результат System.UInt64

ReadUInt64() публичный Метод

Reads an unsigned integer stored in 1 to 64 bits, written using Write(UInt64, Int32)
public ReadUInt64 ( int numberOfBits ) : System.UInt64
numberOfBits int
Результат System.UInt64

ReadUnitSingle() публичный Метод

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
Результат float

ReadVariableInt32() публичный Метод

Reads a variable sized Int32 written using WriteVariableInt32()
public ReadVariableInt32 ( ) : int
Результат int

ReadVariableInt64() публичный Метод

Reads a variable sized Int64 written using WriteVariableInt64()
public ReadVariableInt64 ( ) : System.Int64
Результат System.Int64

ReadVariableUInt32() публичный Метод

Reads a variable sized UInt32 written using WriteVariableUInt32()
public ReadVariableUInt32 ( ) : uint
Результат uint

ReadVariableUInt64() публичный Метод

Reads a variable sized UInt32 written using WriteVariableInt64()
public ReadVariableUInt64 ( ) : System.UInt64
Результат System.UInt64

SkipPadBits() публичный Метод

Pads data with enough bits to reach a full byte. Decreases cpu usage for subsequent byte writes.
public SkipPadBits ( ) : void
Результат void

SkipPadBits() публичный Метод

Pads data with the specified number of bits.
public SkipPadBits ( int numberOfBits ) : void
numberOfBits int
Результат void