Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpbcgr.Client_Font_List_Pdu.EncodeFontListData C# (CSharp) Method

EncodeFontListData() private static method

Encode controlPduData field.
private static EncodeFontListData ( TS_FONT_LIST_PDU fontListPduData ) : byte[]
fontListPduData TS_FONT_LIST_PDU The data to be encoded.
return byte[]
        private static byte[] EncodeFontListData(TS_FONT_LIST_PDU fontListPduData)
        {
            List<byte> dataBuffer = new List<byte>();

            if (fontListPduData != null)
            {
                RdpbcgrEncoder.EncodeStructure(dataBuffer, fontListPduData.shareDataHeader);
                RdpbcgrEncoder.EncodeStructure(dataBuffer, fontListPduData.numberFonts);
                RdpbcgrEncoder.EncodeStructure(dataBuffer, fontListPduData.totalNumFonts);
                RdpbcgrEncoder.EncodeStructure(dataBuffer, fontListPduData.listFlags);
                RdpbcgrEncoder.EncodeStructure(dataBuffer, fontListPduData.entrySize);
            }

            return dataBuffer.ToArray();
        }