C# Class Sharpcraft.Networking.NetworkTools

Provides various networking tools.
Exibir arquivo Open project: SijmenSchoon/Sharpcraft Class Usage Examples

Public Methods

Method Description
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

Method Details

NetworkTools() public method

public NetworkTools ( NetworkStream stream ) : System
stream NetworkStream
return System

ReadBoolean() public method

public ReadBoolean ( ) : bool
return bool

ReadByte() public method

public ReadByte ( ) : byte
return byte

ReadBytes() public method

public ReadBytes ( int length ) : byte[]
length int
return byte[]

ReadBytes() public method

public ReadBytes ( short length ) : byte[]
length short
return byte[]

ReadDouble() public method

public ReadDouble ( ) : double
return double

ReadEntityMetadata() public method

public ReadEntityMetadata ( ) : object>.Dictionary
return object>.Dictionary

ReadInt16() public method

public ReadInt16 ( ) : short
return short

ReadInt32() public method

public ReadInt32 ( ) : int
return int

ReadInt64() public method

public ReadInt64 ( ) : long
return long

ReadSignedByte() public method

public ReadSignedByte ( ) : sbyte
return sbyte

ReadSignedBytes() public method

public ReadSignedBytes ( int length ) : sbyte[]
length int
return sbyte[]

ReadSignedBytes() public method

public ReadSignedBytes ( short length ) : sbyte[]
length short
return sbyte[]

ReadSingle() public method

public ReadSingle ( ) : System.Single
return System.Single

ReadSlotData() public method

public ReadSlotData ( ) : SlotData
return SlotData

ReadString() public method

public ReadString ( ) : string
return string

Skip() public method

public Skip ( int amount = 1 ) : void
amount int
return void

WriteBoolean() public method

public WriteBoolean ( bool b ) : void
b bool
return void

WriteByte() public method

public WriteByte ( byte i ) : void
i byte
return void

WriteBytes() public method

public WriteBytes ( byte b ) : void
b byte
return void

WriteDouble() public method

public WriteDouble ( double d ) : void
d double
return void

WriteInt16() public method

public WriteInt16 ( Int16 i ) : void
i System.Int16
return void

WriteInt32() public method

public WriteInt32 ( Int32 i ) : void
i System.Int32
return void

WriteInt64() public method

public WriteInt64 ( System.Int64 i ) : void
i System.Int64
return void

WriteSingle() public method

public WriteSingle ( System.Single s ) : void
s System.Single
return void

WriteString() public method

public WriteString ( string s ) : void
s string
return void