()
| 58 | } |
| 59 | |
| 60 | func (tb *Blob) BlobRef() blob.Ref { |
| 61 | h := blob.NewHash() |
| 62 | io.WriteString(h, tb.Contents) |
| 63 | return blob.RefFromHash(h) |
| 64 | } |
| 65 | |
| 66 | func (tb *Blob) SizedRef() blob.SizedRef { |
| 67 | return blob.SizedRef{Ref: tb.BlobRef(), Size: tb.Size()} |