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

ParseTsSecurityHeaderBasic() private method

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

            // TS_SECURITY_HEADER: flags
            header.flags = (TS_SECURITY_HEADER_flags_Values)ParseUInt16(data, ref currentIndex, false);

            // TS_SECURITY_HEADER: flagsHi
            header.flagsHi = ParseUInt16(data, ref currentIndex, false);

            return header;
        }
RdpbcgrDecoder