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

ReverseByFlag() private static method

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