MCPcopy 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

6type 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

TestPutAndGetSizeFunction · 0.95
readFromStartFunction · 0.65
ExistsMethod · 0.65
GetOrCreateMethod · 0.65
FstatMethod · 0.65
ScannerFunction · 0.65

Implementers 1

fileCachepkg/cache/filecache.go

Calls

no outgoing calls

Tested by 1

TestPutAndGetSizeFunction · 0.76