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

ParseTsCdHeader() private method

Parse TS_CD_HEADER (parser index is updated according to parsed length)
private ParseTsCdHeader ( byte data, int &currentIndex ) : TS_CD_HEADER
data byte data to be parsed
currentIndex int current parser index
return TS_CD_HEADER
        private TS_CD_HEADER ParseTsCdHeader(byte[] data, ref int currentIndex)
        {
            TS_CD_HEADER header = new TS_CD_HEADER();

            // TS_CD_HEADER: cbCompFirstRowSize
            header.cbCompFirstRowSize = (cbCompFirstRowSize_Values)ParseUInt16(data, ref currentIndex, false);

            // TS_CD_HEADER: cbCompMainBodySize
            header.cbCompMainBodySize = ParseUInt16(data, ref currentIndex, false);

            // TS_CD_HEADER: cbScanWidth
            header.cbScanWidth = ParseUInt16(data, ref currentIndex, false);

            // TS_CD_HEADER: cbUncompressedSize
            header.cbUncompressedSize = ParseUInt16(data, ref currentIndex, false);

            return header;
        }
RdpbcgrDecoder