pub fn serialize_srv(priority: u16, weight: u16, port: u16, target: &Name, buf: &mut Vec<u8>) {
    buf.reserve(6 + target.wire_repr().len());
    buf.extend_from_slice(&priority.to_be_bytes());
    buf.extend_from_slice(&weight.to_be_bytes());
    buf.extend_from_slice(&port.to_be_bytes());
    buf.extend_from_slice(target.wire_repr());
}
/// Serializes an SRV record into the provided buffer.
Serializes an SRV record into the provided buffer.
Serializes an SRV record into the provided buffer .
pub fn serialize_srv(priority: u16, weight: u16, port: u16, target: &Name, buf: &mut Vec<u8>) {
    buf.reserve(6 + target.wire_repr().len());
    buf.extend_from_slice(&priority.to_be_bytes());
    buf.extend_from_slice(&weight.to_be_bytes());
    buf.extend_from_slice(&port.to_be_bytes());
    buf.extend_from_slice(target.wire_repr());
}
pub fn serialize_srv ( priority : u16 , weight : u16 , port : u16 , target : & Name , buf : & mut Vec < u8 > ) { buf . reserve ( 6 + target . wire_repr ( ) . len ( ) ) ; buf . extend_from_slice ( & priority . to_be_bytes ( ) ) ; buf . extend_from_slice ( & weight . to_be_bytes ( ) ) ; buf . extend_from_slice ( & port . to_be_bytes ( ) ) ; buf . extend_from_slice ( target . wire_repr ( ) ) ; }
Serializes an SRV record into the provided buffer.
Serializes an SRV record into the provided buffer .
priority
u16
weight
u16
port
u16
target
&Name
buf
&mut Vec<u8>
priority
u16
weight
u16
port
u16
target
&Name
buf
&mut Vec<u8>