Function openthread_sys::otIp6AddressToString

source ·
pub unsafe extern "C" fn otIp6AddressToString(
    aAddress: *const otIp6Address,
    aBuffer: *mut c_char,
    aSize: u16,
)
Expand description

Converts a given IPv6 address to a human-readable string.

The IPv6 address string is formatted as 16 hex values separated by ‘:’ (i.e., “%x:%x:%x:…:%x”).

If the resulting string does not fit in @p aBuffer (within its @p aSize characters), the string will be truncated but the outputted string is always null-terminated.

@param[in] aAddress A pointer to an IPv6 address (MUST NOT be NULL). @param[out] aBuffer A pointer to a char array to output the string (MUST NOT be NULL). @param[in] aSize The size of @p aBuffer (in bytes). Recommended to use OT_IP6_ADDRESS_STRING_SIZE.