public void PrepareForDeserialize(int size, byte[] data, Converter converter) { module_serial_number = new byte[32]; system_serial_number = new byte[16]; }
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(); }
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]; }
public void PrepareForDeserialize(int size, byte[] data, Converter converter) { m_data = new byte[size]; }
public OutgoingMessage( IController parent, Converter converter, uint cmd, uint flags, object payload ) { InitializeForSend( parent, converter, cmd, flags, payload ); UpdateCRC( converter ); }
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 ); } }
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(); } }
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]; } }
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]; }
public void PrepareForDeserialize(int size, byte[] data, Converter converter) { m_releaseInfo = new ReleaseInfo(); }
public void PrepareForDeserialize(int size, byte[] data, Converter converter) { payload = new byte[size - 4]; }
public void PrepareForDeserialize(int size, byte[] data, Converter converter) { m_data = new FlashSector[(size - 6 * 4) / (3 * 4)]; }
public void PrepareForDeserialize(int size, byte[] data, Converter converter) { m_data = new byte[size - Debugging_Messaging_Address.c_size]; }
public void PrepareForDeserialize(int size, byte[] data, Converter converter) { m_clrReleaseInfo = new ReleaseInfo(); m_TargetFrameworkVersion = new VersionStruct(); }
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]; }
public void PrepareForDeserialize(int size, byte[] data, Converter converter) { m_pids = new uint[(size - 4) / 4]; }
public void PrepareForDeserialize(int size, byte[] data, Converter converter) { m_info = new byte[64 - 8]; }
public bool Reply( Converter converter, uint flags, object payload ) { OutgoingMessage msgReply = new OutgoingMessage( this, converter, flags, payload ); return msgReply.Send(); }
public void PrepareForDeserialize(int size, byte[] data, Converter converter) { m_response = new byte[(size - 8)]; // subtract sizeof(m_success) and sizeof(m_responseSize) }
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 ); }
public void PrepareForDeserialize(int size, byte[] data, Converter converter) { m_missingPkts = new uint[(size - 8) / 4]; // subtract sizeof(m_success) and sizeof(m_missingPktCount) }
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 ); }
public void PrepareForDeserialize(int size, byte[] data, Converter converter) { m_values = Debugging_Value.Allocate(size, data); }