protected void Serialize(DnsResponse response, DnsBuffer buffer, int maxResponse) { buffer.Clear(); response.Serialize(buffer); if (buffer.Count > maxResponse) { response.Truncate(); buffer.Clear(); response.Serialize(buffer); } }
public void Send(DnsResponse response) { DnsBuffer buffer = new DnsBuffer(); response.Serialize(buffer); this.SendBuffer(buffer); }
void Serialize(DnsResponse response) { m_buffer.Clear(); response.Serialize(m_buffer); }