MCPcopy Index your code
hub / github.com/perkeep/perkeep / ReadAt

Method ReadAt

pkg/blob/fetcher.go:126–133  ·  view source on GitHub ↗
(p []byte, off int64)

Source from the content-addressed store, hash-verified

124}
125
126func (ra readerAt) ReadAt(p []byte, off int64) (n int, err error) {
127 rc, err := ra.sf.SubFetch(ra.ctx, ra.br, off, int64(len(p)))
128 if err != nil {
129 return 0, err
130 }
131 defer rc.Close()
132 return io.ReadFull(rc, p)
133}

Callers 6

deleteMethod · 0.45
ReadMethod · 0.45
ReadMethod · 0.45
HasID3v1TagFunction · 0.45
GetMPEGAudioDurationFunction · 0.45
MIMETypeFromReaderAtFunction · 0.45

Calls 2

SubFetchMethod · 0.65
CloseMethod · 0.65

Tested by

no test coverage detected