C# Class BACnet.Core.Datalink.Mac

Mostra file Open project: LorenVS/bacstack Class Usage Examples

Public Properties

Property Type Description
Broadcast Mac

Public Methods

Method Description
Equals ( object obj ) : bool

Tests to see if this object equals another

GetHashCode ( ) : int

Computes a hash code for the mac address

IsBroadcast ( ) : bool

Checks to see if this mac address contains a broadcast address

Mac ( byte bytes, bool copy = true ) : System

Constructs a new mac address instance

Mac ( byte bytes, int offset, int length ) : System

Constructs a new mac address instance by copying bytes from a buffer

operator ( ) : bool

Compares two mac addresses for inequality

this ( int index ) : byte

Retrieves the index-th byte of the mac address

Method Details

Equals() public method

Tests to see if this object equals another
public Equals ( object obj ) : bool
obj object The object to compare this object with
return bool

GetHashCode() public method

Computes a hash code for the mac address
public GetHashCode ( ) : int
return int

IsBroadcast() public method

Checks to see if this mac address contains a broadcast address
public IsBroadcast ( ) : bool
return bool

Mac() public method

Constructs a new mac address instance
public Mac ( byte bytes, bool copy = true ) : System
bytes byte The bytes of the mac address
copy bool True if the bytes must be copied to a new array, false otherwise
return System

Mac() public method

Constructs a new mac address instance by copying bytes from a buffer
public Mac ( byte bytes, int offset, int length ) : System
bytes byte The buffer containing the bytes to copy
offset int The offset of the mac address bytes
length int The length of the mac address bytes
return System

operator() public static method

Compares two mac addresses for inequality
public static operator ( ) : bool
return bool

this() public method

Retrieves the index-th byte of the mac address
public this ( int index ) : byte
index int The index of the byte to retrieve
return byte

Property Details

Broadcast public_oe static_oe property

Shared instance of the broadcast mac
public static Mac,BACnet.Core.Datalink Broadcast
return Mac