shithub: furgit

ref: 2a5c12f0152240f54d01653b70b7605103393afd
dir: /object/resolve/exact_blob_reader.go/

View raw version
package resolve

import (
	"io"

	objectid "codeberg.org/lindenii/furgit/object/id"
	objecttype "codeberg.org/lindenii/furgit/object/type"
)

// ExactBlobReader returns a reader for the content of the blob at id,
// together with its content size in bytes.
func (r *Resolver) ExactBlobReader(id objectid.ObjectID) (io.ReadCloser, int64, error) {
	return r.exactReader(id, objecttype.TypeBlob, "blob")
}