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

Function NewPartialFileReader

internal/caches/reader_partial_file.go:20–25  ·  view source on GitHub ↗
(fp *fsutils.File)

Source from the content-addressed store, hash-verified

18}
19
20func NewPartialFileReader(fp *fsutils.File) *PartialFileReader {
21 return &PartialFileReader{
22 FileReader: NewFileReader(fp),
23 rangePath: PartialRangesFilePath(fp.Name()),
24 }
25}
26
27func (this *PartialFileReader) Init() error {
28 return this.InitAutoDiscard(true)

Callers 2

openReaderMethod · 0.85
openWriterMethod · 0.85

Calls 3

PartialRangesFilePathFunction · 0.85
NewFileReaderFunction · 0.70
NameMethod · 0.65

Tested by

no test coverage detected