C# Class eveMarshal.Utility

Afficher le fichier Open project: stschake/eveMarshal

Méthodes publiques

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

Private Methods

Méthode Description
HexChar ( int value ) : char

Method Details

ByteArrayToString() public static méthode

public static ByteArrayToString ( byte data ) : string
data byte
Résultat string

HexDump() public static méthode

public static HexDump ( byte bytes ) : string
bytes byte
Résultat string

ReadAllBytes() public static méthode

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.
Résultat byte[]

ReadFully() public static méthode

public static ReadFully ( this stream, byte buffer ) : void
stream this
buffer byte
Résultat void

ReadFully() public static méthode

public static ReadFully ( this stream, byte buffer, int index, int length ) : void
stream this
buffer byte
index int
length int
Résultat void

ReadSizeEx() public static méthode

public static ReadSizeEx ( this reader ) : uint
reader this
Résultat uint

StringToByteArray() public static méthode

public static StringToByteArray ( string hex ) : byte[]
hex string
Résultat byte[]

ToBigEndian() public static méthode

public static ToBigEndian ( uint source ) : uint
source uint
Résultat uint

ToBigEndian() public static méthode

public static ToBigEndian ( ushort source ) : ushort
source ushort
Résultat ushort

WriteSizeEx() public static méthode

public static WriteSizeEx ( this writer, int len ) : void
writer this
len int
Résultat void

WriteSizeEx() public static méthode

public static WriteSizeEx ( this writer, uint len ) : void
writer this
len uint
Résultat void