C# Class cyberh0me.Utilities.ByteExtensions

显示文件 Open project: cyberh0me/OTP

Public Methods

Method Description
Equal ( this b1, byte b2 ) : bool
Equal ( this b1, byte b2, int start ) : bool
Reverse ( this source ) : byte[]
ToHex ( this data, int offset, int count ) : string
ToInt16 ( this value, int index ) : short
ToInt32 ( this value, int index ) : int
ToString ( this bytes, int offset, int count ) : string

Method Details

Equal() public static method

public static Equal ( this b1, byte b2 ) : bool
b1 this
b2 byte
return bool

Equal() public static method

public static Equal ( this b1, byte b2, int start ) : bool
b1 this
b2 byte
start int
return bool

Reverse() public static method

public static Reverse ( this source ) : byte[]
source this
return byte[]

ToHex() public static method

public static ToHex ( this data, int offset, int count ) : string
data this
offset int
count int
return string

ToInt16() public static method

public static ToInt16 ( this value, int index ) : short
value this
index int
return short

ToInt32() public static method

public static ToInt32 ( this value, int index ) : int
value this
index int
return int

ToString() public static method

public static ToString ( this bytes, int offset, int count ) : string
bytes this
offset int
count int
return string