void
rrToWire(DNSOutput out, Compression c, boolean canonical) {
	out.writeU8(hashAlg);
	out.writeU8(flags);
	out.writeU16(iterations);

	if (salt != null) {
		out.writeU8(salt.length);
		out.writeByteArray(salt);
	} else
		out.writeU8(0);

	out.writeU8(next.length);
	out.writeByteArray(next);
	types.toWire(out);
}
Creates an NSEC3 record from the given data.

@param name The ownername of the NSEC3 record (base32'd hash plus zonename).
@param dclass The class.
@param ttl The TTL.
@param hashAlg The hash algorithm.
@param flags The value of the flags field.
@param iterations The number of hash iterations.
@param salt The salt to use (may be null).
@param next The next hash (may not be null).
@param types The types present at the original ownername.
src/main/java/core/org/xbill/DNS/NSEC3Record.java