()
| 57 | func (sr SizedRef) HashMatches(h hash.Hash) bool { return sr.Ref.HashMatches(h) } |
| 58 | |
| 59 | func (sr SizedRef) String() string { |
| 60 | return fmt.Sprintf("[%s; %d bytes]", sr.Ref.String(), sr.Size) |
| 61 | } |
| 62 | |
| 63 | // digestType is an interface type, but any type implementing it must |
| 64 | // be of concrete type [N]byte, so it supports equality with ==, |