pub fn serialize_mx(preference: u16, name: &Name, buf: &mut Vec<u8>) {
    buf.reserve(2 + name.wire_repr().len());
    buf.extend_from_slice(&preference.to_be_bytes());
    buf.extend_from_slice(name.wire_repr());
}
/// Serializes an MX record into the provided buffer.
Serializes an MX record into the provided buffer.
Serializes an MX record into the provided buffer .
pub fn serialize_mx(preference: u16, name: &Name, buf: &mut Vec<u8>) {
    buf.reserve(2 + name.wire_repr().len());
    buf.extend_from_slice(&preference.to_be_bytes());
    buf.extend_from_slice(name.wire_repr());
}
pub fn serialize_mx ( preference : u16 , name : & Name , buf : & mut Vec < u8 > ) { buf . reserve ( 2 + name . wire_repr ( ) . len ( ) ) ; buf . extend_from_slice ( & preference . to_be_bytes ( ) ) ; buf . extend_from_slice ( name . wire_repr ( ) ) ; }
Serializes an MX record into the provided buffer.
Serializes an MX record into the provided buffer .
preference
u16
name
&Name
buf
&mut Vec<u8>
preference
u16
name
&Name
buf
&mut Vec<u8>