Skip to main content

write

Function write 

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

Usercall write. See the ABI documentation for more information.

This will do a single write usercall and gather the written data from bufs. To write from a single buffer, just pass a slice of length one.