Hmm @rustlang doesn't have pwrite/pread equivalents in the stdlib. Does anyone really do separate file seeks any more?
-
-
Replying to @andyprice
Does https://doc.rust-lang.org/std/io/trait.Seek.html … fit the bill?
1 reply 0 retweets 4 likes -
Replying to @rustlang
Nah the whole point of pwrite/pread is to avoid doing a separate seek (i.e. leave the current offset untouched). This third party lib looks promising https://github.com/vasi/positioned-io … . They are POSIX interfaces btw: http://pubs.opengroup.org/onlinepubs/9699919799/functions/write.html …
2 replies 0 retweets 0 likes
Replying to @andyprice
Also, the nix crate is nice for anything POSIX; a low level but rust-y wrapper
9:23 AM - 7 Apr 2018
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.