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

ParseTsBitmapCodec() private method

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

            // TS_BITMAPCODEC: codecGUID
            codec.codecGUID = ParseTsBitmapCodecGuid(data, ref currentIndex);

            // TS_BITMAPCODEC: codecID
            codec.codecID = ParseByte(data, ref currentIndex);

            // TS_BITMAPCODEC: codecPropertiesLength
            codec.codecPropertiesLength = ParseUInt16(data, ref currentIndex, false);

            // TS_BITMAPCODEC: codecProperties
            codec.codecProperties = GetBytes(data, ref currentIndex, (int)codec.codecPropertiesLength);

            return codec;
        }
RdpbcgrDecoder