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

ParseTsUdCsMon() private method

Parse TS_UD_CS_MONITOR (parser index is updated according to parsed length)
private ParseTsUdCsMon ( byte data, int &currentIndex ) : TS_UD_CS_MONITOR
data byte data to be parsed
currentIndex int current parser index
return TS_UD_CS_MONITOR
        private TS_UD_CS_MONITOR ParseTsUdCsMon(byte[] data, ref int currentIndex)
        {
            TS_UD_CS_MONITOR monData = new TS_UD_CS_MONITOR();
            monData.header.type = (TS_UD_HEADER_type_Values)ParseUInt16(data, ref currentIndex, false);
            monData.header.length = ParseUInt16(data, ref currentIndex, false);
            monData.Flags = ParseUInt32(data, ref currentIndex, false);
            monData.monitorCount = ParseUInt32(data, ref currentIndex, false);
            monData.monitorDefArray = new Collection<TS_MONITOR_DEF>();
            for (int i = 0; i < monData.monitorCount; ++i)
            {
                TS_MONITOR_DEF monDef;
                monDef.left = ParseUInt32(data, ref currentIndex, false);
                monDef.top = ParseUInt32(data, ref currentIndex, false);
                monDef.right = ParseUInt32(data, ref currentIndex, false);
                monDef.bottom = ParseUInt32(data, ref currentIndex, false);
                monDef.flags = (Flags_TS_MONITOR_DEF)(ParseUInt32(data, ref currentIndex, false));
                monData.monitorDefArray.Add(monDef);
            }

            return monData;
        }
RdpbcgrServerDecoder