Function wasi::fd_advise

source · []
pub unsafe fn fd_advise(
    fd: Fd,
    offset: Filesize,
    len: Filesize,
    advice: Advice
) -> Result<(), Errno>
Expand description

Provide file advisory information on a file descriptor. Note: This is similar to posix_fadvise in POSIX.

Parameters

  • offset - The offset within the file to which the advisory applies.
  • len - The length of the region to which the advisory applies.
  • advice - The advice.