Skip to content

Conversation

kulcsaradam
Copy link
Contributor

Also update read_from_file.wast test to include pread too.

F(fd_write, I32I32I32I32_RI32) \
F(fd_tell, I32I32_RI32) \
F(fd_read, I32I32I32I32_RI32) \
F(fd_pread, I32I32I32I64I32_RI32) \
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the difference between pread and read?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only difference is that pread does not modify or use the file descriptor's offset when reading.

Also update read_from_file.wast test to include pread too.

Signed-off-by: Ádám László Kulcsár <[email protected]>
Copy link
Collaborator

@zherczeg zherczeg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants