/// <inheritdoc /> public override void WriteData(PresentationWriter writer) { writer.WriteByte((byte)HashAlgorithm); writer.WriteByte((byte)Flags); writer.WriteUInt16(Iterations); if (Salt == null || Salt.Length == 0) { writer.WriteString("-"); } else { writer.WriteBase16String(Salt); } writer.WriteString(Base32.ExtendedHex.Encode(NextHashedOwnerName, padding: false).ToLowerInvariant()); bool next = false; foreach (var type in Types) { if (next) { writer.WriteSpace(); } writer.WriteDnsType(type, appendSpace: false); next = true; } }
/// <inheritdoc /> public override void WriteData(PresentationWriter writer) { bool next = false; foreach (var s in Strings) { if (next) { writer.WriteSpace(); } writer.WriteString(s, appendSpace: false); next = true; } }
/// <inheritdoc /> public override void WriteData(PresentationWriter writer) { writer.WriteDomainName(NextOwnerName); bool next = false; foreach (var type in Types) { if (next) { writer.WriteSpace(); } writer.WriteDnsType(type, appendSpace: false); next = true; } }