C# Class FileFind.Common

Show file Open project: codebutler/meshwork

Public Methods

Method Description
AddLineBreaks ( string strIn ) : string
BytesToString ( byte b ) : string
FormatBytes ( decimal bytes ) : string
FormatFingerprint ( string fingerprint ) : string
FormatFingerprint ( string fingerprint, int sectionsPerLine ) : string
FormatNumber ( long number ) : string
GetUnixTimestamp ( ) : ulong
IsInternalIP ( IPAddress address ) : bool
IsNumeric ( string N ) : bool
IsValidEmail ( string inputEmail ) : bool
IsValidIP ( string ip ) : bool
MD5 ( byte bytesIn ) : string
MD5 ( string stringIn ) : string
ParseSizeString ( string str, ulong &num, string &unitName ) : bool
ParseUnixTimestamp ( ulong time ) : System.DateTime
SHA ( byte bytesIn ) : string
SHA512 ( string stringIn ) : byte[]
SHA512Str ( byte bytesIn ) : string
SHA512Str ( string stringIn ) : string
SetProcessName ( string name ) : void
SizeStringToBytes ( string str ) : ulong
StringToBytes ( string str ) : byte[]
ValidateSizeStr ( string str ) : bool
WildcardMatch ( string text, string pattern ) : bool

Private Methods

Method Description
ToRegexPattern ( string dosPattern ) : string
prctl ( int option, byte arg2, IntPtr arg3, IntPtr arg4, IntPtr arg5 ) : int
setproctitle ( byte fmt, byte str_arg ) : void

Method Details

AddLineBreaks() public static method

public static AddLineBreaks ( string strIn ) : string
strIn string
return string

BytesToString() public static method

public static BytesToString ( byte b ) : string
b byte
return string

FormatBytes() public static method

public static FormatBytes ( decimal bytes ) : string
bytes decimal
return string

FormatFingerprint() public static method

public static FormatFingerprint ( string fingerprint ) : string
fingerprint string
return string

FormatFingerprint() public static method

public static FormatFingerprint ( string fingerprint, int sectionsPerLine ) : string
fingerprint string
sectionsPerLine int
return string

FormatNumber() public static method

public static FormatNumber ( long number ) : string
number long
return string

GetUnixTimestamp() public static method

public static GetUnixTimestamp ( ) : ulong
return ulong

IsInternalIP() public static method

public static IsInternalIP ( IPAddress address ) : bool
address System.Net.IPAddress
return bool

IsNumeric() public static method

public static IsNumeric ( string N ) : bool
N string
return bool

IsValidEmail() public static method

public static IsValidEmail ( string inputEmail ) : bool
inputEmail string
return bool

IsValidIP() public static method

public static IsValidIP ( string ip ) : bool
ip string
return bool

MD5() public static method

public static MD5 ( byte bytesIn ) : string
bytesIn byte
return string

MD5() public static method

public static MD5 ( string stringIn ) : string
stringIn string
return string

ParseSizeString() public static method

public static ParseSizeString ( string str, ulong &num, string &unitName ) : bool
str string
num ulong
unitName string
return bool

ParseUnixTimestamp() public static method

public static ParseUnixTimestamp ( ulong time ) : System.DateTime
time ulong
return System.DateTime

SHA() public static method

public static SHA ( byte bytesIn ) : string
bytesIn byte
return string

SHA512() public static method

public static SHA512 ( string stringIn ) : byte[]
stringIn string
return byte[]

SHA512Str() public static method

public static SHA512Str ( byte bytesIn ) : string
bytesIn byte
return string

SHA512Str() public static method

public static SHA512Str ( string stringIn ) : string
stringIn string
return string

SetProcessName() public static method

public static SetProcessName ( string name ) : void
name string
return void

SizeStringToBytes() public static method

public static SizeStringToBytes ( string str ) : ulong
str string
return ulong

StringToBytes() public static method

public static StringToBytes ( string str ) : byte[]
str string
return byte[]

ValidateSizeStr() public static method

public static ValidateSizeStr ( string str ) : bool
str string
return bool

WildcardMatch() public static method

public static WildcardMatch ( string text, string pattern ) : bool
text string
pattern string
return bool