SizedRef is like a Ref but includes a size. It should also be used as a value type and supports equality.
| 43 | // SizedRef is like a Ref but includes a size. |
| 44 | // It should also be used as a value type and supports equality. |
| 45 | type 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. |
| 51 | func (sr SizedRef) Less(o SizedRef) bool { |
no outgoing calls