void
toWire(DNSOutput out) {
	out.writeU16(code);
	int lengthPosition = out.current();
	out.writeU16(0); /* until we know better */
	optionToWire(out);
	int length = out.current() - lengthPosition - 2;
	out.writeU16At(length, lengthPosition);
}
Converts an EDNS Option (including code and length) into wire format.
@param out The output stream.
src/main/java/core/org/xbill/DNS/EDNSOption.java