@Override
    protected void rrToWire(DNSOutput out, Compression c, boolean canonical) {
        out.writeU16(svcPriority);
        targetName.toWire(out, null, canonical);
        for (Integer key : svcParams.keySet()) {
            out.writeU16(key);
            ParameterBase param = svcParams.get(key);
            byte[] value = param.toWire();
            out.writeU16(value.length);
            out.writeByteArray(value);
        }
    }
Implements common functionality for SVCB and HTTPS records
src/main/java/core/org/xbill/DNS/SVCBBase.java