Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpbcgr.TS_BITMAPCACHE_CAPABILITYSET_REV2.ToBytes C# (CSharp) Method

ToBytes() public method

convert this structure to byte array
public ToBytes ( ) : byte[]
return byte[]
        public byte[] ToBytes()
        {
            List<byte> encodeBuffer = new List<byte>();

            RdpbcgrEncoder.EncodeStructure(encodeBuffer, (ushort)capabilitySetType);
            RdpbcgrEncoder.EncodeStructure(encodeBuffer, lengthCapability);
            RdpbcgrEncoder.EncodeStructure(encodeBuffer, (ushort)CacheFlags);
            RdpbcgrEncoder.EncodeStructure(encodeBuffer, pad2);
            RdpbcgrEncoder.EncodeStructure(encodeBuffer, NumCellCaches);
            RdpbcgrEncoder.EncodeStructure(encodeBuffer, BitmapCache1CellInfo);
            RdpbcgrEncoder.EncodeStructure(encodeBuffer, BitmapCache2CellInfo);
            RdpbcgrEncoder.EncodeStructure(encodeBuffer, BitmapCache3CellInfo);
            RdpbcgrEncoder.EncodeStructure(encodeBuffer, BitmapCache4CellInfo);
            RdpbcgrEncoder.EncodeStructure(encodeBuffer, BitmapCache5CellInfo);
            RdpbcgrEncoder.EncodeBytes(encodeBuffer, Pad3);
            return encodeBuffer.ToArray();
        }
TS_BITMAPCACHE_CAPABILITYSET_REV2