[#131] client: Add docs to io.Reader
implementations
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
85db22eea4
commit
b557aa0e2d
1 changed files with 2 additions and 0 deletions
|
@ -239,6 +239,7 @@ func (x *ObjectReader) Close() (*ResObjectGet, error) {
|
||||||
return x.close(true)
|
return x.close(true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Read implements io.Reader of the object payload.
|
||||||
func (x *ObjectReader) Read(p []byte) (int, error) {
|
func (x *ObjectReader) Read(p []byte) (int, error) {
|
||||||
n, ok := x.readChunk(p)
|
n, ok := x.readChunk(p)
|
||||||
if !ok {
|
if !ok {
|
||||||
|
@ -613,6 +614,7 @@ func (x *ObjectRangeReader) Close() (*ResObjectRange, error) {
|
||||||
return x.close(true)
|
return x.close(true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Read implements io.Reader of the object payload.
|
||||||
func (x *ObjectRangeReader) Read(p []byte) (int, error) {
|
func (x *ObjectRangeReader) Read(p []byte) (int, error) {
|
||||||
n, ok := x.readChunk(p)
|
n, ok := x.readChunk(p)
|
||||||
if !ok {
|
if !ok {
|
||||||
|
|
Loading…
Reference in a new issue