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 {
42
42
}
43
43
44
44
/// 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.
45
47
fn write < ' tcx > (
46
48
& self ,
47
49
_self_ref : & FileDescriptionRef ,
@@ -55,6 +57,9 @@ pub trait FileDescription: std::fmt::Debug + Any {
55
57
56
58
/// Reads as much as possible into the given buffer from a given offset,
57
59
/// 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.
58
63
fn pread < ' tcx > (
59
64
& self ,
60
65
_communicate_allowed : bool ,
@@ -69,6 +74,8 @@ pub trait FileDescription: std::fmt::Debug + Any {
69
74
70
75
/// Writes as much as possible from the given buffer starting at a given offset,
71
76
/// 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.
72
79
fn pwrite < ' tcx > (
73
80
& self ,
74
81
_communicate_allowed : bool ,
You can’t perform that action at this time.
0 commit comments