Specified what empty means.

geesefs-0-30-9
Aaron Jacobs 2015-02-27 11:11:12 +11:00
parent 86e5486756
commit 9ec5569ff0
1 changed files with 4 additions and 1 deletions

View File

@ -296,7 +296,8 @@ type ReadDirRequest struct {
// offset, and return array offsets into that cached listing.
Offset DirOffset
// The maximum number of bytes to return in ReadDirResponse.Data.
// The maximum number of bytes to return in ReadDirResponse.Data. A smaller
// number is acceptable.
Size uint64
}
@ -313,6 +314,8 @@ type ReadDirResponse struct {
// Each entry returned exposes a directory offset to the user that may later
// show up in ReadDirRequest.Offset. See notes on that field for more
// information.
//
// An empty buffer indicates the end of the directory has been reached.
Data []byte
}