C# 클래스 Lidgren.Network.NetIncomingMessage

파일 보기 프로젝트 열기: tomoprime/CrabBattle 1 사용 예제들

공개 메소드들

메소드 설명
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