private int BvlcLength(byte[] message)
{
int bvlcLength = 0;
if (message != null)
{
if (message[1] == (byte)BacNetEnums.BACNET_BVLC_FUNCTION.BVLC_ORIGINAL_UNICAST_NPDU)
bvlcLength = 4;
if (message[1] == (byte)BacNetEnums.BACNET_BVLC_FUNCTION.BVLC_ORIGINAL_BROADCAST_NPDU)
bvlcLength = 4;
if (message[1] == (byte)BacNetEnums.BACNET_BVLC_FUNCTION.BVLC_FORWARDED_NPDU)
bvlcLength = 10;
}
return bvlcLength;
}