MCPcopy Index your code
hub / github.com/GoEdgeLab/EdgeNode / NewFileReader

Function NewFileReader

internal/caches/reader_file.go:32–34  ·  view source on GitHub ↗
(fp *fsutils.File)

Source from the content-addressed store, hash-verified

30}
31
32func NewFileReader(fp *fsutils.File) *FileReader {
33 return &FileReader{fp: fp}
34}
35
36func (this *FileReader) Init() error {
37 return this.InitAutoDiscard(true)

Callers 5

openReaderMethod · 0.70
NewPartialFileReaderFunction · 0.70
TestFileReaderFunction · 0.70
TestFileReader_RangeFunction · 0.70

Calls

no outgoing calls

Tested by 3

TestFileReaderFunction · 0.56
TestFileReader_RangeFunction · 0.56