[][src]Function wasi::fd_tell

pub unsafe fn fd_tell(fd: Fd) -> Result<Filesize>

Return the current offset of a file descriptor. Note: This is similar to lseek(fd, 0, SEEK_CUR) in POSIX.

Return

  • offset - The current offset of the file descriptor, relative to the start of the file.