C# Class Tamir.SharpSsh.jsch.Util

Mostra file Open project: soywiz/csharputils Class Usage Examples

Public Methods

Method Description
ArrayContains ( Object arr, Object o ) : bool
ArrayContains ( char arr, char c ) : bool
ArrayContains ( char arr, char c, int count ) : bool
Dump ( string fileName, byte bytes ) : void
FixDsaSig ( byte sig ) : byte[]
Time_T2DateTime ( uint time_t ) : System.DateTime

Converts a time_t to DateTime

ToInt32 ( byte ptr, int Index ) : int
ToUInt16 ( byte ptr, int Index ) : ushort
ToUInt32 ( byte ptr, int Index ) : uint
getBytes ( String str ) : byte[]
getBytesUTF8 ( String str ) : byte[]
getString ( byte arr ) : string
getString ( byte arr, int offset, int len ) : string
getStringUTF8 ( byte arr ) : string
getStringUTF8 ( byte arr, int offset, int len ) : string
hex ( byte arr ) : string
print ( string name, byte data ) : void
regionMatches ( String orig, bool ignoreCase, int toffset, String other, int ooffset, int len ) : bool
stripLeadingZeros ( byte a ) : byte[]

Private Methods

Method Description
array_equals ( byte foo, byte bar ) : bool
createSocket ( String host, int port, int timeout ) : Socket
fromBase64 ( byte buf, int start, int length ) : byte[]
getFingerPrint ( Tamir.SharpSsh.jsch.HASH hash, byte data ) : String
glob ( byte pattern, byte name ) : bool
glob ( byte pattern, int pattern_index, byte name, int name_index ) : bool
split ( String foo, String split ) : String[]
toBase64 ( byte buf, int start, int length ) : byte[]
unquote ( String path ) : String
val ( byte foo ) : byte

Method Details

ArrayContains() public static method

public static ArrayContains ( Object arr, Object o ) : bool
arr Object
o Object
return bool

ArrayContains() public static method

public static ArrayContains ( char arr, char c ) : bool
arr char
c char
return bool

ArrayContains() public static method

public static ArrayContains ( char arr, char c, int count ) : bool
arr char
c char
count int
return bool

Dump() public static method

public static Dump ( string fileName, byte bytes ) : void
fileName string
bytes byte
return void

FixDsaSig() public static method

public static FixDsaSig ( byte sig ) : byte[]
sig byte
return byte[]

Time_T2DateTime() public static method

Converts a time_t to DateTime
public static Time_T2DateTime ( uint time_t ) : System.DateTime
time_t uint
return System.DateTime

ToInt32() public static method

public static ToInt32 ( byte ptr, int Index ) : int
ptr byte
Index int
return int

ToUInt16() public static method

public static ToUInt16 ( byte ptr, int Index ) : ushort
ptr byte
Index int
return ushort

ToUInt32() public static method

public static ToUInt32 ( byte ptr, int Index ) : uint
ptr byte
Index int
return uint

getBytes() public static method

public static getBytes ( String str ) : byte[]
str String
return byte[]

getBytesUTF8() public static method

public static getBytesUTF8 ( String str ) : byte[]
str String
return byte[]

getString() public static method

public static getString ( byte arr ) : string
arr byte
return string

getString() public static method

public static getString ( byte arr, int offset, int len ) : string
arr byte
offset int
len int
return string

getStringUTF8() public static method

public static getStringUTF8 ( byte arr ) : string
arr byte
return string

getStringUTF8() public static method

public static getStringUTF8 ( byte arr, int offset, int len ) : string
arr byte
offset int
len int
return string

hex() public static method

public static hex ( byte arr ) : string
arr byte
return string

print() public static method

public static print ( string name, byte data ) : void
name string
data byte
return void

regionMatches() public static method

public static regionMatches ( String orig, bool ignoreCase, int toffset, String other, int ooffset, int len ) : bool
orig String
ignoreCase bool
toffset int
other String
ooffset int
len int
return bool

stripLeadingZeros() public static method

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