commit | f277ebfc7615f6b18856919917bc62e7628109bb | [log] [tgz] |
---|---|---|
author | Russ Cox <rsc@golang.org> | Tue Sep 01 16:11:17 2009 -0700 |
committer | Russ Cox <rsc@golang.org> | Tue Sep 01 16:11:17 2009 -0700 |
tree | 176c5eb8213fe7caf5b417a59b10fafbb817a068 | |
parent | 3dfbfdabce926630af51f68cb2f6d7aec6491ec1 [diff] [blame] |
import debug/gosym from usr/austin/sym R=austin DELTA=958 (956 added, 0 deleted, 2 changed) OCL=34180 CL=34212
diff --git a/src/pkg/io/io.go b/src/pkg/io/io.go index 5462038..be6614b 100644 --- a/src/pkg/io/io.go +++ b/src/pkg/io/io.go
@@ -321,3 +321,7 @@ return s.r.ReadAt(p, off); } +// Size returns the size of the section in bytes. +func (s *SectionReader) Size() int64 { + return s.limit - s.base +}