/// <inheritdoc /> public override void Write(WireWriter writer) { writer.WriteDomainName(Name); writer.WriteUInt16((ushort)Type); writer.WriteUInt16((ushort)Class); writer.WriteTimeSpan32(TTL); writer.PushLengthPrefixedScope(); WriteData(writer); writer.PopLengthPrefixedScope(); }
/// <inheritdoc /> public override void WriteData(WireWriter writer) { foreach (var option in Options) { writer.WriteUInt16((ushort)option.Type); writer.PushLengthPrefixedScope(); option.WriteData(writer); writer.PopLengthPrefixedScope(); } }