C# Class SharpPcap.Util.Convert

Summary description for Convert.
Exibir arquivo Open project: Zepheus/Fiesta_Utils

Public Methods

Method Description
BytesToHex ( byte bytes ) : string
BytesToHex ( byte bytes, int start, int len ) : string
IpStringToInt32 ( string DottedIP ) : uint
MaskStringToBits ( string mask ) : Int32

Converts a network mask string represntation into an integer representing the number of network bits

Time_T2DateTime ( uint time_t ) : System.DateTime

Converts a time_t to DateTime

Method Details

BytesToHex() public static method

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

BytesToHex() public static method

public static BytesToHex ( byte bytes, int start, int len ) : string
bytes byte
start int
len int
return string

IpStringToInt32() public static method

public static IpStringToInt32 ( string DottedIP ) : uint
DottedIP string
return uint

MaskStringToBits() public static method

Converts a network mask string represntation into an integer representing the number of network bits
public static MaskStringToBits ( string mask ) : Int32
mask string
return System.Int32

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