Function rustix::net::recvfrom_uninit
source · pub fn recvfrom_uninit<Fd: AsFd>(
fd: Fd,
buf: &mut [MaybeUninit<u8>],
flags: RecvFlags
) -> Result<(&mut [u8], &mut [MaybeUninit<u8>], Option<SocketAddrAny>)>
Expand description
recvfrom(fd, buf, flags, addr, len)
—Reads data from a socket and
returns the sender address.
This is equivalent to recvfrom
, except that it can read into
uninitialized memory. It returns the slice that was initialized by this
function and the slice that remains uninitialized.