示例#1
0
				public void PrepareForDeserialize(int size, byte[] data, Converter converter)
				{
					module_serial_number = new byte[32];
					system_serial_number = new byte[16];
				}
示例#2
0
				public void PrepareForDeserialize(int size, byte[] data, Converter converter)
				{
					m_releaseInfo = new ReleaseInfo();
					m_OemModelInfo = new OEM_MODEL_SKU();
					m_OemSerialNumbers = new OEM_SERIAL_NUMBERS();
				}
示例#3
0
			public void PrepareForDeserialize(int size, byte[] data, Converter converter)
			{
				m_header = new Header();

				converter.Deserialize(m_header, data);

				int sizeData = m_header.m_heightInPixels * m_header.m_widthInWords;

				m_data = new uint[sizeData];
			}
示例#4
0
				public void PrepareForDeserialize(int size, byte[] data, Converter converter)
				{
					m_data = new byte[size];
				}
示例#5
0
        public OutgoingMessage( IController parent, Converter converter, uint cmd, uint flags, object payload )
        {
            InitializeForSend( parent, converter, cmd, flags, payload );

            UpdateCRC( converter );
        }
示例#6
0
        internal void InitializeForSend( IController parent, Converter converter, uint cmd, uint flags, object payload )
        {
            Packet header = parent.NewPacket();

            header.m_cmd   = cmd;
            header.m_flags = flags;

            m_parent              = parent;

            m_raw                 = new MessageRaw ();
            m_base                = new MessageBase();
            m_base.m_header       = header;
            m_base.m_payload      = payload;

            if(payload != null)
            {                
                m_raw.m_payload = converter.Serialize( payload );

                m_base.m_header.m_size    = (uint)m_raw.m_payload.Length;
                m_base.m_header.m_crcData = CRC.ComputeCRC( m_raw.m_payload, 0 );
            }
        }
示例#7
0
				public void PrepareForDeserialize(int size, byte[] data, Converter converter)
				{
					int num = size / (3 * 4);

					m_map = new Range[num];

					for(int i = 0; i < num; i++)
					{
						m_map[i] = new Range();
					}
				}
示例#8
0
				public void PrepareForDeserialize(int size, byte[] data, Converter converter)
				{
					if(converter.Capabilities.AppDomains)
					{
						m_data = new CallEx[(size - 12) / 16];
					}
					else
					{
						m_data = new Call[(size - 12) / 8];
					}
				}
示例#9
0
				public void PrepareForDeserialize(int size, byte[] data, Converter converter)
				{
					int num = size / (3 * 4);  // size divided by size of FlashSectorData struct (3*sizeof(uint))

					m_map = new FlashSectorData[num];
				}
示例#10
0
				public void PrepareForDeserialize(int size, byte[] data, Converter converter)
				{
					m_releaseInfo = new ReleaseInfo();
				}
示例#11
0
			public void PrepareForDeserialize(int size, byte[] data, Converter converter)
			{
				payload = new byte[size - 4];
			}
示例#12
0
				public void PrepareForDeserialize(int size, byte[] data, Converter converter)
				{
					m_data = new FlashSector[(size - 6 * 4) / (3 * 4)];
				}
示例#13
0
			public void PrepareForDeserialize(int size, byte[] data, Converter converter)
			{
				m_data = new byte[size - Debugging_Messaging_Address.c_size];
			}
示例#14
0
				public void PrepareForDeserialize(int size, byte[] data, Converter converter)
				{
					m_clrReleaseInfo = new ReleaseInfo();
					m_TargetFrameworkVersion = new VersionStruct();
				}
示例#15
0
				public void PrepareForDeserialize(int size, byte[] data, Converter converter)
				{
					int num = (size - 4) / (3 * 4);  // size - sizof(m_count) divided by size of deplpoymentdata struct (3*sizeof(uint))

					m_map = new DeploymentData[num];
				}
示例#16
0
				public void PrepareForDeserialize(int size, byte[] data, Converter converter)
				{
					m_pids = new uint[(size - 4) / 4];
				}
示例#17
0
		public void PrepareForDeserialize(int size, byte[] data, Converter converter)
		{
			m_info = new byte[64 - 8];
		}
示例#18
0
        public bool Reply( Converter converter, uint flags, object payload )
        {
            
            OutgoingMessage msgReply = new OutgoingMessage( this, converter, flags, payload );

            return msgReply.Send();
        }
示例#19
0
				public void  PrepareForDeserialize(int size, byte[] data, Converter converter)
				{
					m_response = new byte[(size - 8)]; // subtract sizeof(m_success) and sizeof(m_responseSize)
				}
示例#20
0
        internal OutgoingMessage( IncomingMessage req, Converter converter, uint flags, object payload )
        {
            InitializeForSend( req.Parent, converter, req.Header.m_cmd, flags, payload );

            m_base.m_header.m_seqReply  = req.Header.m_seq;
            m_base.m_header.m_flags    |= Flags.c_Reply;

            UpdateCRC( converter );
        }
示例#21
0
				public void PrepareForDeserialize(int size, byte[] data, Converter converter)
				{
					m_missingPkts = new uint[(size - 8) / 4]; // subtract sizeof(m_success) and sizeof(m_missingPktCount)
				}
示例#22
0
        private void UpdateCRC( Converter converter )
        {
            Packet header = m_base.m_header;

            //
            // The CRC for the header is computed setting the CRC field to zero and then running the CRC algorithm.
            //
            header.m_crcHeader = 0;
            header.m_crcHeader = CRC.ComputeCRC( converter.Serialize( header ), 0 );

            m_raw.m_header = converter.Serialize( header );
        }
示例#23
0
			public void PrepareForDeserialize(int size, byte[] data, Converter converter)
			{
				m_values = Debugging_Value.Allocate(size, data);
			}