Microsoft.Protocols.TestTools.StackSdk.BranchCache.Pchc.DecodeMessage.ReverseByFlag C# (CSharp) Method

ReverseByFlag() private static method

reverse the bytes if it's not big endian.
private static ReverseByFlag ( bool isBigEndian, byte byteTemp ) : void
isBigEndian bool order of bytes. If it's big endian, set it to true, else set it to false.
byteTemp byte the bytes will be re-order
return void
        private static void ReverseByFlag(bool isBigEndian, byte[] byteTemp)
        {
            if (!isBigEndian)
            {
                Array.Reverse(byteTemp);
            }
        }