MCPcopy Create free account
hub / github.com/go-git/go-git / NewReaderUsingReaderAt

Function NewReaderUsingReaderAt

utils/ioutil/common.go:118–123  ·  view source on GitHub ↗
(r io.ReaderAt, offset int64)

Source from the content-addressed store, hash-verified

116}
117
118func NewReaderUsingReaderAt(r io.ReaderAt, offset int64) io.Reader {
119 return &readerAtAsReader{
120 ReaderAt: r,
121 offset: offset,
122 }
123}
124
125// CheckClose calls Close on the given io.Closer. If the given *error points to
126// nil, it will be assigned the error returned by Close. Otherwise, any error

Callers 1

asyncReaderFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected