C# Класс ArtemisComm.Utility

Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

BytesToDebugString() публичный статический метод

public static BytesToDebugString ( byte byteArray ) : string
byteArray byte
Результат string

BytesToDebugString() публичный статический метод

public static BytesToDebugString ( byte byteArray, int index ) : string
byteArray byte
index int
Результат string

CopyTo() публичный статический метод

public static CopyTo ( this sourceStream, Stream targetStream, int sourceIndex, long length ) : void
sourceStream this
targetStream Stream
sourceIndex int
length long
Результат void

DisposeProperties() публичный статический метод

public static DisposeProperties ( this disposableObject ) : void
disposableObject this
Результат void

GetBuffer() публичный статический метод

public static GetBuffer ( Stream stream, int index ) : byte[]
stream Stream
index int
Результат byte[]

GetMemoryStream() публичный статический метод

public static GetMemoryStream ( this stream, int index ) : MemoryStream
stream this
index int
Результат System.IO.MemoryStream

LoadProperties() публичный статический метод

public static LoadProperties ( object baseObject, Stream stream, int index, Collection errors ) : int
baseObject object
stream Stream
index int
errors Collection
Результат int

SetRawData() публичный статический метод

public static SetRawData ( this package ) : MemoryStream
package this
Результат System.IO.MemoryStream

ToInt16() публичный статический метод

public static ToInt16 ( this me ) : short
me this
Результат short

ToInt32() публичный статический метод

public static ToInt32 ( this me ) : int
me this
Результат int

ToInt64() публичный статический метод

public static ToInt64 ( this me ) : long
me this
Результат long

ToSingle() публичный статический метод

public static ToSingle ( this me ) : float
me this
Результат float

Write() публичный статический метод

public static Write ( this me, ArtemisString data ) : void
me this
data ArtemisString
Результат void

Write() публичный статический метод

public static Write ( this me, Enum enumeration ) : void
me this
enumeration System.Enum
Результат void

Write() публичный статический метод

public static Write ( this me, byte data ) : void
me this
data byte
Результат void

Write() публичный статический метод

public static Write ( this me, float data ) : void
me this
data float
Результат void

Write() публичный статический метод

public static Write ( this me, int data ) : void
me this
data int
Результат void

Write() публичный статический метод

public static Write ( this me, long data ) : void
me this
data long
Результат void

Write() публичный статический метод

public static Write ( this me, short data ) : void
me this
data short
Результат void