MCPcopy Index your code
hub / github.com/go-git/go-git / EncodedObjectSize

Method EncodedObjectSize

storage/memory/storage.go:128–136  ·  view source on GitHub ↗
(h plumbing.Hash)

Source from the content-addressed store, hash-verified

126}
127
128func (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
138func (o *ObjectStorage) EncodedObject(t plumbing.ObjectType, h plumbing.Hash) (plumbing.EncodedObject, error) {
139 obj, ok := o.Objects[h]

Callers

nothing calls this directly

Calls 1

SizeMethod · 0.65

Tested by

no test coverage detected