Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpbcgr.RdpbcgrDecoder.ParseUInt64 C# (CSharp) Method

ParseUInt64() private method

Parse UInt64
private ParseUInt64 ( byte data, int &index, bool isBigEndian = false ) : UInt64
data byte data to be parsed
index int parser index
isBigEndian bool big endian format flag
return UInt64
        private UInt64 ParseUInt64(byte[] data, ref int index, bool isBigEndian = false)
        {
            byte[] bytes = GetBytes(data, ref index, sizeof(UInt64));
            if(isBigEndian)
            {
                Array.Reverse(bytes, 0, sizeof(UInt64));
            }

            return BitConverter.ToUInt64(bytes, 0);
        }
RdpbcgrDecoder