MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / GetFile

Method GetFile

internal/stream/stream.go:167–172  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

165}
166
167func (f *FileStream) GetFile() model.File {
168 if file, ok := f.Reader.(model.File); ok {
169 return file
170 }
171 return nil
172}
173
174// 从流读取指定范围的一块数据,并且不消耗流。
175// 当读取的边界超过内部设置大小后会缓存整个流。

Callers 3

CacheFullAndWriterMethod · 0.95
RangeReadMethod · 0.95
TestRangeReadFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestRangeReadFunction · 0.76