Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
167
func
(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
CacheFullAndWriter
Method · 0.95
RangeRead
Method · 0.95
TestRangeRead
Function · 0.95
Calls
no outgoing calls
Tested by
1
TestRangeRead
Function · 0.76