BACnet.Core.Datalink.Mac.Mac C# (CSharp) Метод

Mac() публичный Метод

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
Результат System
        public Mac(byte[] bytes, bool copy = true)
        {
            if(copy)
            {
                if (bytes == null || bytes.Length == 0)
                    this.bytes = null;
                else
                {
                    this.bytes = new byte[bytes.Length];
                    Buffer.BlockCopy(bytes, 0, this.bytes, 0, bytes.Length);
                }
            }
            else
            {
                this.bytes = bytes;
            }
        }

Same methods

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