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