Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpbcgr.RdpbcgrServerDecoder.ParseCapsTypeBitmapCacheRev2 C# (CSharp) Method

ParseCapsTypeBitmapCacheRev2() private method

Parse TS_BITMAPCACHE_CAPABILITYSET_REV2
private ParseCapsTypeBitmapCacheRev2 ( byte data ) : TS_BITMAPCACHE_CAPABILITYSET_REV2
data byte data to be parsed
return TS_BITMAPCACHE_CAPABILITYSET_REV2
        private TS_BITMAPCACHE_CAPABILITYSET_REV2 ParseCapsTypeBitmapCacheRev2(byte[] data)
        {
            int currentIndex = 0;
            TS_BITMAPCACHE_CAPABILITYSET_REV2 set = new TS_BITMAPCACHE_CAPABILITYSET_REV2();
            set.capabilitySetType = (capabilitySetType_Values)ParseUInt16(data, ref currentIndex, false);
            set.lengthCapability = ParseUInt16(data, ref currentIndex, false);
            set.CacheFlags = (CacheFlags_Values)ParseUInt16(data, ref currentIndex, false);
            set.pad2 = ParseByte(data, ref currentIndex);
            set.NumCellCaches = ParseByte(data, ref currentIndex);
            set.BitmapCache1CellInfo = ParseBitmapCacheCellInfo(data, ref currentIndex);
            set.BitmapCache2CellInfo = ParseBitmapCacheCellInfo(data, ref currentIndex);
            set.BitmapCache3CellInfo = ParseBitmapCacheCellInfo(data, ref currentIndex);
            set.BitmapCache4CellInfo = ParseBitmapCacheCellInfo(data, ref currentIndex);
            set.BitmapCache5CellInfo = ParseBitmapCacheCellInfo(data, ref currentIndex);
            set.Pad3 = GetBytes(data, ref currentIndex, 12);

            // Check if data length is consistent with the decoded struct length
            VerifyDataLength(data.Length, currentIndex, ConstValue.ERROR_MESSAGE_DATA_LENGTH_INCONSISTENT);
            return set;
        }
RdpbcgrServerDecoder