Method lrs::socket::SockAddr::from_bytes_unchecked

Creates a socket address from a sequence of bytes without validation.

Syntax

impl SockAddr {
    unsafe fn from_bytes_unchecked(bytes: &[u8]) -> &SockAddr
}

Arguments

NameDescription
bytes

The buffer containing the address.

Remarks

If bytes does not contain a valid and wrapped socket address, the behavior is undefined.