C# Class eveMarshal.Utility

ファイルを表示 Open project: stschake/eveMarshal

Public Methods

Method 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

Method Description
HexChar ( int value ) : char

Method Details

ByteArrayToString() public static method

public static ByteArrayToString ( byte data ) : string
data byte
return string

HexDump() public static method

public static HexDump ( byte bytes ) : string
bytes byte
return string

ReadAllBytes() public static method

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.
return byte[]

ReadFully() public static method

public static ReadFully ( this stream, byte buffer ) : void
stream this
buffer byte
return void

ReadFully() public static method

public static ReadFully ( this stream, byte buffer, int index, int length ) : void
stream this
buffer byte
index int
length int
return void

ReadSizeEx() public static method

public static ReadSizeEx ( this reader ) : uint
reader this
return uint

StringToByteArray() public static method

public static StringToByteArray ( string hex ) : byte[]
hex string
return byte[]

ToBigEndian() public static method

public static ToBigEndian ( uint source ) : uint
source uint
return uint

ToBigEndian() public static method

public static ToBigEndian ( ushort source ) : ushort
source ushort
return ushort

WriteSizeEx() public static method

public static WriteSizeEx ( this writer, int len ) : void
writer this
len int
return void

WriteSizeEx() public static method

public static WriteSizeEx ( this writer, uint len ) : void
writer this
len uint
return void