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

Method SetSize

plumbing/object/tree_test.go:187–187  ·  view source on GitHub ↗
(s int64)

Source from the content-addressed store, hash-verified

185func (o *SortReadObject) SetType(t plumbing.ObjectType) { o.t = t }
186func (o *SortReadObject) Size() int64 { return o.sz }
187func (o *SortReadObject) SetSize(s int64) { o.sz = s }
188func (o *SortReadObject) Content() []byte { return o.cont }
189func (o *SortReadObject) Reader() (io.ReadCloser, error) {
190 return &SortReadCloser{pos: 0, data: o.cont}, nil

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected