MCPcopy
hub / github.com/syncthing/syncthing / encryptionTrailerSize

Function encryptionTrailerSize

lib/model/sharedpullerstate.go:407–409  ·  view source on GitHub ↗
(file protocol.FileInfo)

Source from the content-addressed store, hash-verified

405}
406
407func encryptionTrailerSize(file protocol.FileInfo) int64 {
408 return int64(proto.Size(file.ToWire(false))) + 4 // XXX: Inefficient
409}
410
411// Progress returns the momentarily progress for the puller
412func (s *sharedPullerState) Progress() *PullerProgress {

Callers 2

tempFileInWritableDirMethod · 0.85
writeEncryptionTrailerFunction · 0.85

Calls 2

SizeMethod · 0.65
ToWireMethod · 0.45

Tested by

no test coverage detected