File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,8 @@ pub trait FileDescription: std::fmt::Debug + Any {
4242 }
4343
4444 /// Writes as much as possible from the given buffer, and returns the number of bytes written.
45+ /// `bytes` is the buffer of bytes supplied by the caller to be written.
46+ /// `dest` is where the return value should be stored.
4547 fn write < ' tcx > (
4648 & self ,
4749 _self_ref : & FileDescriptionRef ,
@@ -55,6 +57,9 @@ pub trait FileDescription: std::fmt::Debug + Any {
5557
5658 /// Reads as much as possible into the given buffer from a given offset,
5759 /// and returns the number of bytes read.
60+ /// `ptr` is the pointer to the user supplied read buffer.
61+ /// `len` indicates how many bytes the user requested.
62+ /// `dest` is where the return value should be stored.
5863 fn pread < ' tcx > (
5964 & self ,
6065 _communicate_allowed : bool ,
@@ -69,6 +74,8 @@ pub trait FileDescription: std::fmt::Debug + Any {
6974
7075 /// Writes as much as possible from the given buffer starting at a given offset,
7176 /// and returns the number of bytes written.
77+ /// `bytes` is the buffer of bytes supplied by the caller to be written.
78+ /// `dest` is where the return value should be stored.
7279 fn pwrite < ' tcx > (
7380 & self ,
7481 _communicate_allowed : bool ,
You can’t perform that action at this time.
0 commit comments