Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenListTeam/OpenList
/ GetSize
Method
GetSize
internal/stream/stream.go:37–42 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
35
}
36
37
func
(f *FileStream) GetSize() int64 {
38
if
f.size > 0 {
39
return
f.size
40
}
41
return
f.Obj.GetSize()
42
}
43
44
func
(f *FileStream) GetMimetype() string {
45
return
f.Mimetype
Callers
4
Put
Method · 0.95
CacheFullAndWriter
Method · 0.95
RangeRead
Method · 0.95
ensureCache
Method · 0.95
Calls
1
GetSize
Method · 0.65
Tested by
no test coverage detected