System.IO.BACnet.BacnetEthernetProtocolTransport._isOutboundPacket C# (CSharp) Метод

_isOutboundPacket() приватный Метод

private _isOutboundPacket ( byte buffer, int offset ) : bool
buffer byte
offset int
Результат bool
        private bool _isOutboundPacket(byte[] buffer, int offset)
        {
            // check to see if the source mac 100%
            // matches the device mac address of the local device

            for (int i = 0; i < 6; i++)
            {
                if (buffer[offset + i] != _deviceMac[i])
                    return false;
            }

            return true;
        }