blob: 870ead57356cf0cb05d24fcec63a2c70a5936154 (
about) (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
package fetch
import (
"io"
objectid "lindenii.org/go/furgit/object/id"
)
// PeelToBlobReader returns a reader for the content of the peeled blob at id,
// together with its content size in bytes.
//
// Labels: Life-Parent, Close-Caller.
func (r *Fetcher) PeelToBlobReader(id objectid.ObjectID) (io.ReadCloser, int64, error) {
blobID, err := r.PeelToBlobID(id)
if err != nil {
return nil, 0, err
}
return r.ExactBlobReader(blobID)
}
|