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

Method Read

utils/ioutil/common.go:112–116  ·  view source on GitHub ↗
(bs []byte)

Source from the content-addressed store, hash-verified

110}
111
112func (r *readerAtAsReader) Read(bs []byte) (int, error) {
113 n, err := r.ReaderAt.ReadAt(bs, r.offset)
114 r.offset += int64(n)
115 return n, err
116}
117
118func NewReaderUsingReaderAt(r io.ReaderAt, offset int64) io.Reader {
119 return &readerAtAsReader{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected