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

ParseTsPlaySoundPduData() private method

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

            // TS_PLAY_SOUND_PDU_DATA: shareDataHeader
            pdu.shareDataHeader = ParseTsShareDataHeader(data, ref currentIndex);

            // TS_PLAY_SOUND_PDU_DATA: duration
            pdu.duration = ParseUInt32(data, ref currentIndex, false);

            // TS_PLAY_SOUND_PDU_DATA: frequency
            pdu.frequency = ParseUInt32(data, ref currentIndex, false);

            return pdu;
        }
RdpbcgrDecoder