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

ParseTsFpColorPointerAttribute() private method

Parse TS_FP_COLORPOINTERATTRIBUTE
private ParseTsFpColorPointerAttribute ( byte updateHeader, compressedType_Values compressionFlags, UInt16 size, byte updateData ) : TS_FP_COLORPOINTERATTRIBUTE
updateHeader byte update header
compressionFlags compressedType_Values compression flags
size UInt16 update data size(before decompression)
updateData byte update data(decompressed)
return TS_FP_COLORPOINTERATTRIBUTE
        private TS_FP_COLORPOINTERATTRIBUTE ParseTsFpColorPointerAttribute(
            byte updateHeader,
            compressedType_Values compressionFlags,
            UInt16 size,
            byte[] updateData)
        {
            TS_FP_COLORPOINTERATTRIBUTE attribute = new TS_FP_COLORPOINTERATTRIBUTE();

            // TS_FP_COLORPOINTERATTRIBUTE: updateHeader
            attribute.updateHeader = updateHeader;

            // TS_FP_COLORPOINTERATTRIBUTE: compressionFlags
            attribute.compressionFlags = compressionFlags;

            // TS_FP_COLORPOINTERATTRIBUTE: size
            attribute.size = size;

            // TS_FP_COLORPOINTERATTRIBUTE: colorPointerUpdateData
            int index = 0;
            attribute.colorPointerUpdateData = ParseTsColorPointerAttribute(updateData, ref index);

            // Check if data length exceeded expectation
            VerifyDataLength(updateData.Length, index, ConstValue.ERROR_MESSAGE_DATA_LENGTH_EXCEEDED);
            return attribute;
        }
RdpbcgrDecoder