MCPcopy
hub / github.com/perkeep/perkeep / SizedRef

Struct SizedRef

pkg/blob/ref.go:45–48  ·  view source on GitHub ↗

SizedRef is like a Ref but includes a size. It should also be used as a value type and supports equality.

Source from the content-addressed store, hash-verified

43// SizedRef is like a Ref but includes a size.
44// It should also be used as a value type and supports equality.
45type SizedRef struct {
46 Ref Ref `json:"blobRef"`
47 Size uint32 `json:"size"`
48}
49
50// Less reports whether sr sorts before o. Invalid references blobs sort first.
51func (sr SizedRef) Less(o SizedRef) bool {

Callers 1

verifySizeAndHashFunction · 0.92

Calls

no outgoing calls

Tested by 1

verifySizeAndHashFunction · 0.74