-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pread, pwrite: do not error out if {p,g}{read,write}_with if the offs…
…et is equal to slice len (#94) We now allow reading zero-sized types (like possibly an empty array) from empty slice, or the exact end of a byte array, and similarly, one can write a empty string or byte array into the tail end of a byte array (i.e., write nothing to nothing). Co-authored-by: Nickie S <DCNick3@users.noreply.github.com>
- Loading branch information
1 parent
30f49c7
commit aa8df8e
Showing
3 changed files
with
20 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters