C# Класс eveMarshal.Utility

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

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

Метод Описание
ByteArrayToString ( byte data ) : string
HexDump ( byte bytes ) : string
ReadAllBytes ( this source ) : byte[]

Reads the contents of the stream into a byte array. data is returned as a byte array. An IOException is thrown if any of the underlying IO calls fail.

ReadFully ( this stream, byte buffer ) : void
ReadFully ( this stream, byte buffer, int index, int length ) : void
ReadSizeEx ( this reader ) : uint
StringToByteArray ( string hex ) : byte[]
ToBigEndian ( uint source ) : uint
ToBigEndian ( ushort source ) : ushort
WriteSizeEx ( this writer, int len ) : void
WriteSizeEx ( this writer, uint len ) : void

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

Метод Описание
HexChar ( int value ) : char

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

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

public static ByteArrayToString ( byte data ) : string
data byte
Результат string

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

public static HexDump ( byte bytes ) : string
bytes byte
Результат string

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

Reads the contents of the stream into a byte array. data is returned as a byte array. An IOException is thrown if any of the underlying IO calls fail.
The stream does not support reading. Methods were called after the stream was closed. An I/O error occurs.
public static ReadAllBytes ( this source ) : byte[]
source this The stream to read.
Результат byte[]

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

public static ReadFully ( this stream, byte buffer ) : void
stream this
buffer byte
Результат void

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

public static ReadFully ( this stream, byte buffer, int index, int length ) : void
stream this
buffer byte
index int
length int
Результат void

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

public static ReadSizeEx ( this reader ) : uint
reader this
Результат uint

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

public static StringToByteArray ( string hex ) : byte[]
hex string
Результат byte[]

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

public static ToBigEndian ( uint source ) : uint
source uint
Результат uint

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

public static ToBigEndian ( ushort source ) : ushort
source ushort
Результат ushort

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

public static WriteSizeEx ( this writer, int len ) : void
writer this
len int
Результат void

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

public static WriteSizeEx ( this writer, uint len ) : void
writer this
len uint
Результат void