C# Class ArtemisComm.Utility

Afficher le fichier Open project: russjudge/ArtemisSBS-ProtocolSharp

Méthodes publiques

Méthode Description
BytesToDebugString ( byte byteArray ) : string
BytesToDebugString ( byte byteArray, int index ) : string
CopyTo ( this sourceStream, Stream targetStream, int sourceIndex, long length ) : void
DisposeProperties ( this disposableObject ) : void
GetBuffer ( Stream stream, int index ) : byte[]
GetMemoryStream ( this stream, int index ) : MemoryStream
LoadProperties ( object baseObject, Stream stream, int index, Collection errors ) : int
SetRawData ( this package ) : MemoryStream
ToInt16 ( this me ) : short
ToInt32 ( this me ) : int
ToInt64 ( this me ) : long
ToSingle ( this me ) : float
Write ( this me, ArtemisString data ) : void
Write ( this me, Enum enumeration ) : void
Write ( this me, byte data ) : void
Write ( this me, float data ) : void
Write ( this me, int data ) : void
Write ( this me, long data ) : void
Write ( this me, short data ) : void

Private Methods

Méthode Description
GetIntermediateType ( Type CastType, int index, Stream stream ) : object>.KeyValuePair
LoadProperty ( object baseObject, MemoryStream stream, PropertyInfo prop, Collection errors ) : int
SetProperty ( Type toType, object baseObject, object intermediateObject, PropertyInfo prop ) : void
WriteToStream ( Type targetType, object item, MemoryStream stream ) : void

Method Details

BytesToDebugString() public static méthode

public static BytesToDebugString ( byte byteArray ) : string
byteArray byte
Résultat string

BytesToDebugString() public static méthode

public static BytesToDebugString ( byte byteArray, int index ) : string
byteArray byte
index int
Résultat string

CopyTo() public static méthode

public static CopyTo ( this sourceStream, Stream targetStream, int sourceIndex, long length ) : void
sourceStream this
targetStream Stream
sourceIndex int
length long
Résultat void

DisposeProperties() public static méthode

public static DisposeProperties ( this disposableObject ) : void
disposableObject this
Résultat void

GetBuffer() public static méthode

public static GetBuffer ( Stream stream, int index ) : byte[]
stream Stream
index int
Résultat byte[]

GetMemoryStream() public static méthode

public static GetMemoryStream ( this stream, int index ) : MemoryStream
stream this
index int
Résultat System.IO.MemoryStream

LoadProperties() public static méthode

public static LoadProperties ( object baseObject, Stream stream, int index, Collection errors ) : int
baseObject object
stream Stream
index int
errors Collection
Résultat int

SetRawData() public static méthode

public static SetRawData ( this package ) : MemoryStream
package this
Résultat System.IO.MemoryStream

ToInt16() public static méthode

public static ToInt16 ( this me ) : short
me this
Résultat short

ToInt32() public static méthode

public static ToInt32 ( this me ) : int
me this
Résultat int

ToInt64() public static méthode

public static ToInt64 ( this me ) : long
me this
Résultat long

ToSingle() public static méthode

public static ToSingle ( this me ) : float
me this
Résultat float

Write() public static méthode

public static Write ( this me, ArtemisString data ) : void
me this
data ArtemisString
Résultat void

Write() public static méthode

public static Write ( this me, Enum enumeration ) : void
me this
enumeration System.Enum
Résultat void

Write() public static méthode

public static Write ( this me, byte data ) : void
me this
data byte
Résultat void

Write() public static méthode

public static Write ( this me, float data ) : void
me this
data float
Résultat void

Write() public static méthode

public static Write ( this me, int data ) : void
me this
data int
Résultat void

Write() public static méthode

public static Write ( this me, long data ) : void
me this
data long
Résultat void

Write() public static méthode

public static Write ( this me, short data ) : void
me this
data short
Résultat void