C# Class Sharpcraft.Networking.NetworkTools

Provides various networking tools.
Afficher le fichier Open project: SijmenSchoon/Sharpcraft Class Usage Examples

Méthodes publiques

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

public NetworkTools ( NetworkStream stream ) : System
stream NetworkStream
Résultat System

ReadBoolean() public méthode

public ReadBoolean ( ) : bool
Résultat bool

ReadByte() public méthode

public ReadByte ( ) : byte
Résultat byte

ReadBytes() public méthode

public ReadBytes ( int length ) : byte[]
length int
Résultat byte[]

ReadBytes() public méthode

public ReadBytes ( short length ) : byte[]
length short
Résultat byte[]

ReadDouble() public méthode

public ReadDouble ( ) : double
Résultat double

ReadEntityMetadata() public méthode

public ReadEntityMetadata ( ) : object>.Dictionary
Résultat object>.Dictionary

ReadInt16() public méthode

public ReadInt16 ( ) : short
Résultat short

ReadInt32() public méthode

public ReadInt32 ( ) : int
Résultat int

ReadInt64() public méthode

public ReadInt64 ( ) : long
Résultat long

ReadSignedByte() public méthode

public ReadSignedByte ( ) : sbyte
Résultat sbyte

ReadSignedBytes() public méthode

public ReadSignedBytes ( int length ) : sbyte[]
length int
Résultat sbyte[]

ReadSignedBytes() public méthode

public ReadSignedBytes ( short length ) : sbyte[]
length short
Résultat sbyte[]

ReadSingle() public méthode

public ReadSingle ( ) : System.Single
Résultat System.Single

ReadSlotData() public méthode

public ReadSlotData ( ) : SlotData
Résultat SlotData

ReadString() public méthode

public ReadString ( ) : string
Résultat string

Skip() public méthode

public Skip ( int amount = 1 ) : void
amount int
Résultat void

WriteBoolean() public méthode

public WriteBoolean ( bool b ) : void
b bool
Résultat void

WriteByte() public méthode

public WriteByte ( byte i ) : void
i byte
Résultat void

WriteBytes() public méthode

public WriteBytes ( byte b ) : void
b byte
Résultat void

WriteDouble() public méthode

public WriteDouble ( double d ) : void
d double
Résultat void

WriteInt16() public méthode

public WriteInt16 ( Int16 i ) : void
i System.Int16
Résultat void

WriteInt32() public méthode

public WriteInt32 ( Int32 i ) : void
i System.Int32
Résultat void

WriteInt64() public méthode

public WriteInt64 ( System.Int64 i ) : void
i System.Int64
Résultat void

WriteSingle() public méthode

public WriteSingle ( System.Single s ) : void
s System.Single
Résultat void

WriteString() public méthode

public WriteString ( string s ) : void
s string
Résultat void