C# 클래스 Sharpcraft.Networking.NetworkTools

Provides various networking tools.
파일 보기 프로젝트 열기: SijmenSchoon/Sharpcraft 1 사용 예제들

공개 메소드들

메소드 설명
NetworkTools ( NetworkStream stream ) : System
ReadBoolean ( ) : bool
ReadByte ( ) : byte
ReadBytes ( int length ) : byte[]
ReadBytes ( short length ) : byte[]
ReadDouble ( ) : double
ReadEntityMetadata ( ) : object>.Dictionary
ReadInt16 ( ) : short
ReadInt32 ( ) : int
ReadInt64 ( ) : long
ReadSignedByte ( ) : sbyte
ReadSignedBytes ( int length ) : sbyte[]
ReadSignedBytes ( short length ) : sbyte[]
ReadSingle ( ) : System.Single
ReadSlotData ( ) : SlotData
ReadString ( ) : string
Skip ( int amount = 1 ) : void
WriteBoolean ( bool b ) : void
WriteByte ( byte i ) : void
WriteBytes ( byte b ) : void
WriteDouble ( double d ) : void
WriteInt16 ( Int16 i ) : void
WriteInt32 ( Int32 i ) : void
WriteInt64 ( System.Int64 i ) : void
WriteSingle ( System.Single s ) : void
WriteString ( string s ) : void

메소드 상세

NetworkTools() 공개 메소드

public NetworkTools ( NetworkStream stream ) : System
stream NetworkStream
리턴 System

ReadBoolean() 공개 메소드

public ReadBoolean ( ) : bool
리턴 bool

ReadByte() 공개 메소드

public ReadByte ( ) : byte
리턴 byte

ReadBytes() 공개 메소드

public ReadBytes ( int length ) : byte[]
length int
리턴 byte[]

ReadBytes() 공개 메소드

public ReadBytes ( short length ) : byte[]
length short
리턴 byte[]

ReadDouble() 공개 메소드

public ReadDouble ( ) : double
리턴 double

ReadEntityMetadata() 공개 메소드

public ReadEntityMetadata ( ) : object>.Dictionary
리턴 object>.Dictionary

ReadInt16() 공개 메소드

public ReadInt16 ( ) : short
리턴 short

ReadInt32() 공개 메소드

public ReadInt32 ( ) : int
리턴 int

ReadInt64() 공개 메소드

public ReadInt64 ( ) : long
리턴 long

ReadSignedByte() 공개 메소드

public ReadSignedByte ( ) : sbyte
리턴 sbyte

ReadSignedBytes() 공개 메소드

public ReadSignedBytes ( int length ) : sbyte[]
length int
리턴 sbyte[]

ReadSignedBytes() 공개 메소드

public ReadSignedBytes ( short length ) : sbyte[]
length short
리턴 sbyte[]

ReadSingle() 공개 메소드

public ReadSingle ( ) : System.Single
리턴 System.Single

ReadSlotData() 공개 메소드

public ReadSlotData ( ) : SlotData
리턴 SlotData

ReadString() 공개 메소드

public ReadString ( ) : string
리턴 string

Skip() 공개 메소드

public Skip ( int amount = 1 ) : void
amount int
리턴 void

WriteBoolean() 공개 메소드

public WriteBoolean ( bool b ) : void
b bool
리턴 void

WriteByte() 공개 메소드

public WriteByte ( byte i ) : void
i byte
리턴 void

WriteBytes() 공개 메소드

public WriteBytes ( byte b ) : void
b byte
리턴 void

WriteDouble() 공개 메소드

public WriteDouble ( double d ) : void
d double
리턴 void

WriteInt16() 공개 메소드

public WriteInt16 ( Int16 i ) : void
i System.Int16
리턴 void

WriteInt32() 공개 메소드

public WriteInt32 ( Int32 i ) : void
i System.Int32
리턴 void

WriteInt64() 공개 메소드

public WriteInt64 ( System.Int64 i ) : void
i System.Int64
리턴 void

WriteSingle() 공개 메소드

public WriteSingle ( System.Single s ) : void
s System.Single
리턴 void

WriteString() 공개 메소드

public WriteString ( string s ) : void
s string
리턴 void