Class MACAddress
Inheritance
System.Object
MACAddress
Implements
System.IComparable
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: Cosmos.HAL2.dll
Syntax
public class MACAddress : IComparable
Constructors
|
Improve this Doc
View Source
MACAddress(MACAddress)
Declaration
public MACAddress(MACAddress m)
Parameters
|
Improve this Doc
View Source
MACAddress(Byte[])
Declaration
public MACAddress(byte[] address)
Parameters
Type |
Name |
Description |
System.Byte[] |
address |
|
|
Improve this Doc
View Source
MACAddress(Byte[], Int32)
Create a MAC address from a byte buffer starting at the specified offset
Declaration
public MACAddress(byte[] buffer, int offset)
Parameters
Type |
Name |
Description |
System.Byte[] |
buffer |
byte buffer
|
System.Int32 |
offset |
offset in buffer to start from
|
Fields
|
Improve this Doc
View Source
Broadcast
Declaration
public static MACAddress Broadcast
Field Value
|
Improve this Doc
View Source
bytes
Declaration
Field Value
Type |
Description |
System.Byte[] |
|
|
Improve this Doc
View Source
None
Declaration
public static MACAddress None
Field Value
Properties
|
Improve this Doc
View Source
Hash
Hash value for this mac. Used to uniquely identify each mac
Declaration
public uint Hash { get; }
Property Value
Type |
Description |
System.UInt32 |
|
Methods
|
Improve this Doc
View Source
CompareTo(Object)
Declaration
public int CompareTo(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
|
Improve this Doc
View Source
IsValid()
Declaration
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
To32BitNumber()
Declaration
public uint To32BitNumber()
Returns
Type |
Description |
System.UInt32 |
|
|
Improve this Doc
View Source
ToNumber()
Declaration
Returns
Type |
Description |
System.UInt64 |
|
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
Implements
System.IComparable