Function wasmer_wasix::syscalls::wasi::fd_allocate::fd_allocate

source ·
pub fn fd_allocate(
    ctx: FunctionEnvMut<'_, WasiEnv>,
    fd: Fd,
    offset: Filesize,
    len: Filesize,
) -> Result<Errno, WasiError>
Expand description

§fd_allocate

Allocate extra space for a file descriptor Inputs:

  • Fd fd The file descriptor to allocate for
  • Filesize offset The offset from the start marking the beginning of the allocation
  • Filesize len The length from the offset marking the end of the allocation