Skip to main content

read

Function read 

Source
pub fn read(fd: Fd, bufs: &mut [IoSliceMut<'_>]) -> Result<usize>
🔬This is a nightly-only experimental API. (sgx_platform #56975)
Available on Fortanix and SGX only.
Expand description

Usercall read. See the ABI documentation for more information.

This will do a single read usercall and scatter the read data among bufs. To read to a single buffer, just pass a slice of length one.