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