Commit 01360a64 authored by Rob Pike's avatar Rob Pike

io: change the name of ReadAtSizer to SizedReaderAt

This is a proposal. The old name is pretty poor. The new one describes
it better and may be easier to remember. It does not start with Read,
though I think that inconsistency is worthwhile.

Reworded the comment a bit for clarity.

Change-Id: Icb4f9c663cc68958e0363d7ff78a0b29cc521f98
Reviewed-on: https://go-review.googlesource.com/21629Reviewed-by: default avatarAndrew Gerrand <adg@golang.org>
Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 8f2edf11
...@@ -274,10 +274,11 @@ type RuneScanner interface { ...@@ -274,10 +274,11 @@ type RuneScanner interface {
UnreadRune() error UnreadRune() error
} }
// ReadAtSizer is the interface that groups the basic ReadAt and Size // SizedReaderAt is the interface that groups the basic ReadAt method
// methods, representing a sized data source that supports random // with a Size method that reports the total size of the underlying
// object. It represents a fixed-size data source that supports random
// access by multiple concurrent goroutines. // access by multiple concurrent goroutines.
type ReadAtSizer interface { type SizedReaderAt interface {
ReaderAt ReaderAt
// Size reports the length of the data source in bytes. // Size reports the length of the data source in bytes.
Size() int64 Size() int64
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment