Skip to content

Commit

Permalink
feat: Implement fd_tell
Browse files Browse the repository at this point in the history
  • Loading branch information
kateinoigakukun committed Dec 5, 2023
1 parent 485d9e5 commit 1c8b15b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/fs_fd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ export class OpenFile extends Fd {
return { ret: 0, offset: this.file_pos };
}

fd_tell(): { ret: number; offset: bigint } {
return { ret: 0, offset: this.file_pos };
}

fd_write(
view8: Uint8Array,
iovs: Array<wasi.Ciovec>,
Expand Down

0 comments on commit 1c8b15b

Please sign in to comment.