MCPcopy Create free account
hub / github.com/go-git/go-git / EncodedObjectSize

Method EncodedObjectSize

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

Source from the content-addressed store, hash-verified

122}
123
124func (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
134func (o *ObjectStorage) EncodedObject(t plumbing.ObjectType, h plumbing.Hash) (plumbing.EncodedObject, error) {
135 obj, ok := o.Objects[h]

Callers

nothing calls this directly

Calls 1

SizeMethod · 0.65

Tested by

no test coverage detected