Function c_ares_sys::ares_dns_rr_get_bin

source ยท
pub unsafe extern "C" fn ares_dns_rr_get_bin(
    dns_rr: *const ares_dns_rr_t,
    key: ares_dns_rr_key_t,
    len: *mut usize,
) -> *const c_uchar
Expand description

Retrieve a pointer to the binary data. Can only be used on keys with datatype ARES_DATATYPE_BIN or ARES_DATATYPE_BINP. If BINP, the data is guaranteed to have a NULL terminator which is NOT included in the length.

\param[in] dns_rr Pointer to resource record \param[in] key DNS Resource Record Key \param[out] len Length of binary data returned \return pointer binary data or NULL on error