Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Azure/peerd
/ Size
Method
Size
pkg/cache/interface.go:8–8 ·
view source on GitHub ↗
Size gets the size of the file.
(path string)
Source
from the content-addressed store, hash-verified
6
type
Cache
interface
{
7
// Size gets the size of the file.
8
Size(path string) (int64, bool)
9
10
// PutSize sets size of the file.
11
PutSize(path string, length int64) bool
Callers
6
TestPutAndGetSize
Function · 0.95
readFromStart
Function · 0.65
Exists
Method · 0.65
GetOrCreate
Method · 0.65
Fstat
Method · 0.65
Scanner
Function · 0.65
Implementers
1
fileCache
pkg/cache/filecache.go
Calls
no outgoing calls
Tested by
1
TestPutAndGetSize
Function · 0.76