MCPcopy Create free account
hub / github.com/Azure/peerd / PutSize

Method PutSize

pkg/cache/interface.go:11–11  ·  view source on GitHub ↗

PutSize sets size of the file.

(path string, length int64)

Source from the content-addressed store, hash-verified

9
10 // PutSize sets size of the file.
11 PutSize(path string, length int64) bool
12
13 // Exists checks if the given chunk of the file is already cached.
14 Exists(name string, offset int64) bool

Callers 4

TestPutAndGetSizeFunction · 0.95
FstatMethod · 0.65
TestOpenNonP2pFunction · 0.65

Implementers 1

fileCachepkg/cache/filecache.go

Calls

no outgoing calls

Tested by 3

TestPutAndGetSizeFunction · 0.76
TestOpenNonP2pFunction · 0.52