C# Class Smoothget.Utils

Show file Open project: pinglossy/smoothget

Public Methods

Method Description
ArePrefixBytesEqual ( byte a, byte b, int size ) : bool
CombineByteArrays ( IList arrays ) : byte[]
CombineByteArraysAndArraySegments ( IList arrays, IList arraySegments ) : byte[]
CombineBytes ( byte a, byte b ) : byte[]
CombineBytes ( byte a, byte b, byte c ) : byte[]
EscapeString ( string s ) : string
GetSubBytes ( byte bytes, int start, int end ) : byte[]
HexDecodeBytes ( byte hexEncodedData, int start, int end ) : byte[]
HexDecodeString ( string hexEncodedData ) : byte[]
HexEncodeString ( byte bytes ) : string
InplaceReverseBytes ( byte a ) : byte[]

Method Details

ArePrefixBytesEqual() public static method

public static ArePrefixBytesEqual ( byte a, byte b, int size ) : bool
a byte
b byte
size int
return bool

CombineByteArrays() public static method

public static CombineByteArrays ( IList arrays ) : byte[]
arrays IList
return byte[]

CombineByteArraysAndArraySegments() public static method

public static CombineByteArraysAndArraySegments ( IList arrays, IList arraySegments ) : byte[]
arrays IList
arraySegments IList
return byte[]

CombineBytes() public static method

public static CombineBytes ( byte a, byte b ) : byte[]
a byte
b byte
return byte[]

CombineBytes() public static method

public static CombineBytes ( byte a, byte b, byte c ) : byte[]
a byte
b byte
c byte
return byte[]

EscapeString() public static method

public static EscapeString ( string s ) : string
s string
return string

GetSubBytes() public static method

public static GetSubBytes ( byte bytes, int start, int end ) : byte[]
bytes byte
start int
end int
return byte[]

HexDecodeBytes() public static method

public static HexDecodeBytes ( byte hexEncodedData, int start, int end ) : byte[]
hexEncodedData byte
start int
end int
return byte[]

HexDecodeString() public static method

public static HexDecodeString ( string hexEncodedData ) : byte[]
hexEncodedData string
return byte[]

HexEncodeString() public static method

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

InplaceReverseBytes() public static method

public static InplaceReverseBytes ( byte a ) : byte[]
a byte
return byte[]