(h plumbing.Hash)
| 122 | } |
| 123 | |
| 124 | func (o *ObjectStorage) EncodedObjectSize(h plumbing.Hash) ( |
| 125 | size int64, err error) { |
| 126 | obj, ok := o.Objects[h] |
| 127 | if !ok { |
| 128 | return 0, plumbing.ErrObjectNotFound |
| 129 | } |
| 130 | |
| 131 | return obj.Size(), nil |
| 132 | } |
| 133 | |
| 134 | func (o *ObjectStorage) EncodedObject(t plumbing.ObjectType, h plumbing.Hash) (plumbing.EncodedObject, error) { |
| 135 | obj, ok := o.Objects[h] |