Method lrs::socket::SockAddr::from_mut_bytes_unchecked

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

Syntax

impl SockAddr {
    unsafe fn from_mut_bytes_unchecked(bytes: &mut [u8]) -> &mut 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.