Method | Description | |
---|---|---|
ArraysEqual ( Byte ba1, Byte ba2 ) : System.Boolean |
Checks if Arrays are Equal
|
|
BitsToHoldUInt ( uint value ) : int |
Returns how many bits are necessary to hold a certain number
|
|
BytesToHoldBits ( int numBits ) : int |
Returns how many bytes are required to hold a certain number of bits
|
|
GetMacAddress ( ) : System.Net.NetworkInformation.PhysicalAddress |
Returns the physical (MAC) address for the first usable network interface
|
|
GetMyAddress ( |
Gets my local IP address (not necessarily external) and subnet mask
|
|
IsLocal ( |
Returns true if the IPAddress supplied is on the same subnet as this host
|
|
IsLocal ( |
Returns true if the IPEndPoint supplied is on the same subnet as this host
|
|
JoinArrays ( Byte b1, Byte b2 ) : Byte[] |
Joins two arrays using Buffer.Blockcopy
|
|
JoinArrays ( System byteArrays ) : Byte[] |
Joins all arrays in arraylist using MemoryStream
|
|
Resolve ( string ipOrHost ) : |
Get IPv4 address from notation (xxx.xxx.xxx.xxx) or hostname
|
|
Resolve ( string ipOrHost, int port ) : |
Get IPv4 endpoint from notation (xxx.xxx.xxx.xxx) or hostname and port number
|
|
ToByteArray ( String hexString ) : byte[] |
Convert a hexadecimal string to a byte array
|
|
ToHexString ( byte data ) : string |
Create a hex string from an array of bytes
|
|
ToHexString ( long data ) : string |
Create a hex string from an Int64 value
|
|
ToHumanReadable ( long bytes ) : string |
Converts a number of bytes to a shorter, more readable string representation
|
Method | Description | |
---|---|---|
CompareElements ( byte one, byte two ) : bool | ||
GetNetworkInterface ( ) : |
||
SortMembersList ( System list ) : void | ||
SwapByteOrder ( |
||
SwapByteOrder ( System.UInt64 value ) : System.UInt64 |
public static ArraysEqual ( Byte ba1, Byte ba2 ) : System.Boolean | ||
ba1 | Byte | |
ba2 | Byte | |
return | System.Boolean |
public static BitsToHoldUInt ( uint value ) : int | ||
value | uint | |
return | int |
public static BytesToHoldBits ( int numBits ) : int | ||
numBits | int | |
return | int |
public static GetMacAddress ( ) : System.Net.NetworkInformation.PhysicalAddress | ||
return | System.Net.NetworkInformation.PhysicalAddress |
public static GetMyAddress ( |
||
mask | ||
return |
public static IsLocal ( |
||
remote | ||
return | bool |
public static IsLocal ( |
||
endpoint | ||
return | bool |
public static JoinArrays ( Byte b1, Byte b2 ) : Byte[] | ||
b1 | Byte | |
b2 | Byte | |
return | Byte[] |
public static JoinArrays ( System byteArrays ) : Byte[] | ||
byteArrays | System | list of arrays to join |
return | Byte[] |
public static Resolve ( string ipOrHost ) : |
||
ipOrHost | string | |
return |
public static Resolve ( string ipOrHost, int port ) : |
||
ipOrHost | string | |
port | int | |
return |
public static ToByteArray ( String hexString ) : byte[] | ||
hexString | String | |
return | byte[] |
public static ToHexString ( byte data ) : string | ||
data | byte | |
return | string |
public static ToHexString ( long data ) : string | ||
data | long | |
return | string |
public static ToHumanReadable ( long bytes ) : string | ||
bytes | long | |
return | string |